summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Change wording of 'memcpy' type mismatch warning and remove fixit.Anna Zaks2012-05-304-55/+29
| | | | | | As per comments following r157659. llvm-svn: 157722
* [analyzer]Fix another occurrence of iterator invalidation (LocalTUDecls)Anna Zaks2012-05-301-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Follow up in r155693, r155680. Prevents a hard to reproduce crash with the following stack trace: 3 libsystem_c.dylib 0x00007ff55a835050 _sigtramp + 18446744029881443184 4 clang 0x0000000106218e97 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) + 519 5 clang 0x0000000105cf3002 clang::ParseAST(clang::Sema&, bool, bool) + 690 6 clang 0x00000001059a41d8 clang::ASTFrontendAction::ExecuteAction() + 312 7 clang 0x00000001059a3df7 clang::FrontendAction::Execute() + 231 8 clang 0x00000001059b0ecc clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 860 9 clang 0x000000010595e451 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 961 10 clang 0x0000000105947f29 cc1_main(char const**, char const**, char const*, void*) + 969 11 clang 0x0000000105958259 main + 473 12 clang 0x0000000105947b34 start + 52 llvm-svn: 157721
* Add a test for '%@' suggestion for classes.Jordan Rose2012-05-301-0/+11
| | | | llvm-svn: 157718
* Suggest '%@' for Objective-C objects in ObjC format strings.Jordan Rose2012-05-303-1/+123
| | | | llvm-svn: 157716
* Disable -Wunique-enum for anonymous enums.David Blaikie2012-05-303-5/+7
| | | | | | | | | | | | | This is a large class of false positives where anonymous enums are used to declare constants (see Clang's Diagnostics.h for example). A small number of true positives could probably be found in this bucket by still warning if the anonymous enum is used in a declarator (enum { ... } x;) but so far we don't believe this to be a source of significant benefit so I haven't bothered to preserve those cases. General offline review/acknowledgment by rtrieu. llvm-svn: 157713
* TableGen: Remove extraneous '\' at EOL in generated tests.Jim Grosbach2012-05-301-1/+1
| | | | llvm-svn: 157700
* objective-c: revert r157407. It broke a projectFariborz Jahanian2012-05-302-8/+22
| | | | | | and reported as PR12959. // rdar://11499742 llvm-svn: 157697
* Adds a toString method to Replacement, which helps debugging.Manuel Klimek2012-05-302-0/+17
| | | | | | Adds missing header guards to Refactoring.h. llvm-svn: 157694
* Fixed a memory leak in clang/Tooling.Alexander Kornienko2012-05-301-2/+1
| | | | llvm-svn: 157687
* supply a simple-minded testcase for r156813, to check whether the embedded ↵Gabor Greif2012-05-303-0/+11
| | | | | | montavista gcc toolchain is recognized llvm-svn: 157686
* Clang docs update: list command-line flags that control the size of ↵Alexey Samsonov2012-05-301-0/+24
| | | | | | generated debug information. Reviewed by chandlerc@ and echristo@. llvm-svn: 157681
* SSE4A should not imply LZCNT and POPCNT. FMA4 should imply SSE4A. Add ↵Craig Topper2012-05-301-3/+5
| | | | | | missing break at the end of btver1 feature list. llvm-svn: 157680
* Update FIXME. ABM is already covered by LZCNT and POPCNT.Craig Topper2012-05-301-1/+1
| | | | llvm-svn: 157676
* Mark extrqi and insertqi immediate arguments as being ICE.Craig Topper2012-05-301-2/+2
| | | | llvm-svn: 157675
* Test commit - Fix typo in comment.Daniel Jasper2012-05-301-1/+1
| | | | llvm-svn: 157674
* Remove some extra braces.Eric Christopher2012-05-301-3/+2
| | | | llvm-svn: 157667
* Add new -Wunique-enum which will warn on enums which all elements have theRichard Trieu2012-05-304-1/+64
| | | | | | | | | | | | same value and were initialized with literals. Clang will warn on code like this: enum A { FIRST = 1, SECOND = 1 }; llvm-svn: 157666
* Add fixits for memory access warnings.Anna Zaks2012-05-303-6/+60
| | | | | | | Also, do not display the builtin name and macro expansion when the function is a builtin. llvm-svn: 157659
* objc: position of 'fixit' was off by one.Fariborz Jahanian2012-05-292-2/+2
| | | | | | This patch fixes it. // rdar://11488351 llvm-svn: 157646
* fixes radar no. in this test.Fariborz Jahanian2012-05-291-2/+2
| | | | llvm-svn: 157642
* objective-c: fix a sema and IRGen crash when propertyFariborz Jahanian2012-05-295-15/+54
| | | | | | | | getter result type is safe but does not match with property type resulting in spurious warning followed by crash in IRGen. // rdar://11515196 llvm-svn: 157641
* Install ammintrin.h in the cmake build.Benjamin Kramer2012-05-291-0/+1
| | | | llvm-svn: 157639
* Add an ammintrin.h header for SSE4a intrinsics.Benjamin Kramer2012-05-294-1/+120
| | | | | | | This is a clean-room implementation based on public documentation and I tried to validate it as much as possible against gcc. llvm-svn: 157638
* MIPS: Pass -KPIC argument to MIPS assembler if necessary.Simon Atanasyan2012-05-292-0/+19
| | | | llvm-svn: 157635
* Factor out the code retrieves the last PIC related argument fromSimon Atanasyan2012-05-293-16/+75
| | | | | | | the Clang::ConstructJob() to the new ArgList::getLastArg() routine with eight argument. That simplifies reusing of this code. llvm-svn: 157633
* Define __SSE4A__ when targeting new AMD CPUs.Benjamin Kramer2012-05-292-1/+53
| | | | | | This doesn't really fit the existing SSELevel so it gets an extra flag. llvm-svn: 157630
* Fix indenting.David Blaikie2012-05-291-25/+25
| | | | llvm-svn: 157628
* Revert r155737, restoring the MaxDepth in the BalancedDelimiterTracker to 256.Chad Rosier2012-05-291-1/+1
| | | | | | r155737 turned out to be a temporary work around. The correct fix was in r155823. llvm-svn: 157627
* Sparc is bigendian.Roman Divacky2012-05-291-1/+0
| | | | llvm-svn: 157626
* Make Clang driver pass the last option from -g group to the compiler.Alexey Samsonov2012-05-292-7/+32
| | | | | | Leave a better fixme for different debug info flags llvm-svn: 157602
* Use fewer temporaries mangling APSInt objects. The performance differenceCharles Davis2012-05-291-6/+7
| | | | | | | is negligible, but it makes the code clearer. Based on a suggestion by Jordy Rose. llvm-svn: 157601
* OpenCL: Fix vector conditional operator CodeGen for the case wherePeter Collingbourne2012-05-291-1/+1
| | | | | | the operands are vectors of doubles. llvm-svn: 157596
* Fix suspicous isIntegerType() check, found by PVS Studio (PR12357).Benjamin Kramer2012-05-281-1/+1
| | | | llvm-svn: 157593
* Address minor FIXME in RedeclLink to contain a PointerIntPair instead of ↵David Blaikie2012-05-282-26/+24
| | | | | | | | derive from it. Use actual factory functions rather than derived classes acting as named constructors/factories. llvm-svn: 157588
* Fix mangling of integral template arguments between 1 and 10. Add a test caseCharles Davis2012-05-282-2/+5
| | | | | | for this. Reported by Timur Iskhodzhanov. llvm-svn: 157583
* Fix Lang's fix. This should fix the tests for +Asserts builds.Charles Davis2012-05-281-1/+1
| | | | llvm-svn: 157561
* adjust to mainline llvm API change.Chris Lattner2012-05-282-6/+3
| | | | llvm-svn: 157557
* Fix PR12960 by not attempting to correct cases when we're not actually ↵David Blaikie2012-05-282-1/+11
| | | | | | | | | | instantiatiating a template. This comes up in the begin/end calls of a range-for (see the included test case). Other suggestions are welcome, though this seems to do the trick without regressing anything. llvm-svn: 157553
* Test case for 157547. Before that patch, all the digits would be mangledCharles Davis2012-05-281-0/+12
| | | | | | as zeroes. Now the digits are properly non-zero. llvm-svn: 157552
* PR12962: Fix a rare use after free when collecting virtual overrides.Benjamin Kramer2012-05-272-2/+60
| | | | | | | The DenseMap reallocates after 64 insertions so this only happened in large test cases under very specific circumstances. llvm-svn: 157549
* Fix call to APSInt constructor - it doesn't take an initial value, just aLang Hames2012-05-271-3/+4
| | | | | | | | bitwidth and signedness. Also rename the variable to reflect its purpose. No test case - discovered during random code exploration. llvm-svn: 157547
* -Wdeprecated warning to include reference (as a note)Fariborz Jahanian2012-05-279-42/+46
| | | | | | to the declaration in this patch. // rdar://10893232 llvm-svn: 157537
* Pass ProgramStateRef by reference.Benjamin Kramer2012-05-271-1/+1
| | | | | | Retain + Release on a ref counted pointer is cheap, but not free (it adds a function call in this case). llvm-svn: 157534
* Close HTML tag properly.Dmitri Gribenko2012-05-271-1/+1
| | | | llvm-svn: 157533
* Use the SelectorSet typedef more widely throughout Sema.Benjamin Kramer2012-05-273-13/+13
| | | | | | While there make it a SmallPtrSet. llvm-svn: 157532
* Replace some custom hash combines with the standard stuff from DenseMapInfo.Benjamin Kramer2012-05-273-15/+10
| | | | llvm-svn: 157531
* clang/unittests/Tooling/RewriterTestContext.h: Don't try to remove ↵NAKAMURA Takumi2012-05-271-5/+0
| | | | | | TemporaryDirectory. llvm-svn: 157530
* clang/lib/Rewrite/Rewriter.cpp: Don't try to rename opened files on Win32. ↵NAKAMURA Takumi2012-05-271-0/+4
| | | | | | Win32 doesn't allow rename/removing opened files. llvm-svn: 157528
* Mangle template instantiations properly (as of VC 7.x) when compiling forCharles Davis2012-05-262-7/+175
| | | | | | | the Microsoft Visual C++ ABI. Currently limited to type and integral non-type arguments. Based on a patch by Timur Iskhodzhanov! llvm-svn: 157524
* Only emit one set of braces for __VERSION__, getClangFullRepositoryVersion ↵Benjamin Kramer2012-05-261-2/+1
| | | | | | | | already adds some. No test as the output is highly dependend on the local configuration. llvm-svn: 157520
OpenPOWER on IntegriCloud