summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve comment for TypeDecl::getTypeForDecl(), from Sean Silva!Douglas Gregor2012-07-171-1/+4
| | | | llvm-svn: 160405
* Eliminating the GCC_CAST hack, take two.Douglas Gregor2012-07-171-11/+3
| | | | llvm-svn: 160404
* Comment AST nodes: rename Num*Bitfields to Num*Bits to be consistent with ↵Dmitri Gribenko2012-07-171-3/+3
| | | | | | Stmt AST nodes. llvm-svn: 160402
* Reinstate the GCC_CAST hack; I apparently did not appease GCC with r160397.Douglas Gregor2012-07-171-2/+11
| | | | llvm-svn: 160401
* Implement an optimization for finding the comment that occurs just after aDmitri Gribenko2012-07-171-6/+24
| | | | | | | | | | given declaration. It is based on the observation that during parsing the comment that should be attached to the decl is usually among the last two documentation comments parsed. llvm-svn: 160400
* Robustify test in the face of no assertions.Eric Christopher2012-07-171-2/+3
| | | | llvm-svn: 160399
* Try to eliminate GCC_CAST hack in a manner that should work for bothDouglas Gregor2012-07-171-11/+2
| | | | | | GCC and MSVC. llvm-svn: 160397
* CommentBriefParser: use StringSwitch::Cases to group synonyms. Thanks Jordan!Dmitri Gribenko2012-07-171-9/+4
| | | | llvm-svn: 160396
* Teach the ASTImporter how to handle anonymous structs/unionsDouglas Gregor2012-07-173-25/+55
| | | | | | | better. Fixes <rdar://problem/11466212>; the test (and back-ported version of this code) were committed to LLDB in r160186. llvm-svn: 160395
* Don't treat overflow in floating-point conversions as a hard error in ↵Eli Friedman2012-07-174-10/+12
| | | | | | constant evaluation. <rdar://problem/11874571>. llvm-svn: 160394
* Handle the case where the base type is not dependent, but the derived one is.Rafael Espindola2012-07-173-2/+16
| | | | | | Fixes pr13353.cpp. llvm-svn: 160393
* Fixed whitespace issue introduced in r160373.Joao Matos2012-07-171-8/+7
| | | | llvm-svn: 160388
* Minor cleanups and additions to the users manual. UsersManual.html now ↵Dmitri Gribenko2012-07-171-12/+18
| | | | | | | | validates as HTML 4.01 Strict. Patch by Jonathan Sauer! (With minor edits from me.) llvm-svn: 160386
* Fix regexp for this test to properly check.Eric Christopher2012-07-171-2/+2
| | | | | | Patch by Eli Bendersky. llvm-svn: 160385
* CommentBriefParser: make \short should equivalent to \brief, per Doxygen manual.Dmitri Gribenko2012-07-172-4/+16
| | | | llvm-svn: 160383
* Issue warning when assigning out-of-range integer values to enums.Fariborz Jahanian2012-07-175-1/+92
| | | | | | | Due to performance cost, this is an opt-in option placed under -Wassign-enum. // rdar://11824807 llvm-svn: 160382
* -Wobjc-literal-compare: don't warn when comparing against nil.Jordan Rose2012-07-172-4/+33
| | | | | | | | | | | | | | Checks against nil often appear as guards in macros, and comparing Objective-C literals to nil has well-defined behavior (if tautological). On OS X, 'nil' has not been typed as 'id' since 10.6 (possibly earlier), so the warning was already not firing, but other runtimes continue to use ((id)0) or some variant. This change accepts comparisons to any null pointer; to keep it simple, it looks through all casts (not just casts to 'id'). PR13276 llvm-svn: 160379
* Add -Wobjc-string-compare under -Wobjc-literal-compare.Jordan Rose2012-07-174-15/+53
| | | | | | | | | Suggested by Ted, since string literal comparison is at least slightly more sensible than comparison of runtime literals. (Ambiguous language on developer.apple.com implies that strings are guaranteed to be uniqued within a translation unit and possibly across a linked binary.) llvm-svn: 160378
* Now that -Wobjc-literal-compare is a warning, put the fixit on a note.Jordan Rose2012-07-174-145/+87
| | | | | | | | Recovering as if the user had actually called -isEqual: is a bit too far from the semantics of the program as written, /even though/ it's probably what they intended. llvm-svn: 160377
* [analyzer] Remove stale result type lvalue code.Jordan Rose2012-07-171-10/+2
| | | | | | | This code has been moved around multiple times, but seems to have been obsolete ever since we started handled references like pointers. llvm-svn: 160375
* [Windows] Abstract pure virtual method calls in the ABI. Fix the Windows ABI ↵Joao Matos2012-07-174-8/+15
| | | | | | to forward to the correct function. llvm-svn: 160373
* Add a custom initialize hook for clang tools + minor fixes in ↵Alexander Kornienko2012-07-174-3/+50
| | | | | | CustomCompilationDatabase.h llvm-svn: 160369
* Merge visibility from previous decls before looking at visibility pragma. ThisRafael Espindola2012-07-172-4/+24
| | | | | | | is a bit fuzzy, but matches gcc behavior and existing code bases seem to depend on it. llvm-svn: 160364
* test/Driver/crash-report.c: Remove "REQUIRES: shell". env(1) can be used ↵NAKAMURA Takumi2012-07-171-2/+1
| | | | | | also with gnuwin32. llvm-svn: 160362
* Fix unit test dependency in Makefile and remove unneccessary dependencyDaniel Jasper2012-07-172-2/+1
| | | | | | again. llvm-svn: 160358
* Add missing dependency for unit test.Daniel Jasper2012-07-171-0/+1
| | | | llvm-svn: 160356
* Finishing the move of RefactoringCallbacks and fixing the correspondingDaniel Jasper2012-07-173-20/+25
| | | | | | buildbot failures. llvm-svn: 160355
* Revert commit r160308. We decide to move builtins selection to the backend.Simon Atanasyan2012-07-173-43/+0
| | | | llvm-svn: 160353
* Move RefactoringCallbacks to Tooling to avoid dependency fromDaniel Jasper2012-07-177-9/+10
| | | | | | | ASTMatchers (lower level abstraction) to Tooling (higher level abstraction). llvm-svn: 160351
* Fixup for r160345 - uintptr_t is not always unsignedAlexey Samsonov2012-07-171-3/+3
| | | | llvm-svn: 160349
* Make the isDerivedFrom matcher more generic.Daniel Jasper2012-07-174-50/+54
| | | | | | | It now accepts an arbitrary inner matcher but is fully backwards compatible. llvm-svn: 160348
* Fixed few warnings.Galina Kistanova2012-07-171-3/+9
| | | | llvm-svn: 160345
* [Win32] Rework crash-report since r145389.NAKAMURA Takumi2012-07-173-8/+10
| | | | | | | | | | | - lib/Driver/Driver.cpp, tools/driver/driver.cpp: Exit status should not be propagated, although clang driver should catch exceptions. - test/Driver/crash-report.c: Add REQUIRES:shell for now. FIXME: setenv should work also on Lit.InternalShellRunner. - test/Driver/crash-report.c: Remove XFAIL. Thanks to Chad, To point out the issue. llvm-svn: 160343
* test/Driver/crash-report.c: Small tweaks. 1) Use %t instead %T for TMP. 2) ↵NAKAMURA Takumi2012-07-171-4/+5
| | | | | | Set all of $TMPDIR, $TEMP and $TMP, or a certain host might set $TEMP. llvm-svn: 160342
* Record visibility pragmas when we see a tag declaration. We might use itRafael Espindola2012-07-172-0/+20
| | | | | | to build a type before seeing the definition. llvm-svn: 160339
* Uninitialized variables: two little changes:Richard Smith2012-07-173-9/+17
| | | | | | | * Treat compound assignment as a use, at Jordy's request. * Always add compound assignments into the CFG, so we can correctly diagnose the use in 'return x += 1;' llvm-svn: 160334
* clang/test/Tooling/clang-ast-dump.cpp: Mark it as REQUIRES: asserts, for now.NAKAMURA Takumi2012-07-171-0/+3
| | | | llvm-svn: 160332
* Move clang_Cursor_getBriefCommentText implementation under `extern "C"'.Dmitri Gribenko2012-07-171-2/+2
| | | | llvm-svn: 160331
* -Wuninitialized: Split the classification of DeclRefExprs as initialization orRichard Smith2012-07-173-230/+244
| | | | | | | | | | use out of TransferFunctions, and compute it in advance rather than on-the-fly. This allows us to handle compound assignments with DeclRefExprs on the RHS correctly, and also makes it trivial to treat const& function parameters as not initializing the argument. The patch also makes both of those changes. llvm-svn: 160330
* [analyzer] Handle new-expressions with initializers for scalars.Jordan Rose2012-07-163-19/+50
| | | | | | <rdar://problem/11818967> llvm-svn: 160328
* Weaken Unicode fixit test to work even if the character is printed escaped.Jordan Rose2012-07-161-4/+5
| | | | | | This should fix the failure on Windows. llvm-svn: 160324
* Fix BlockCommandComment::classof() to return true for objects of derived ↵Dmitri Gribenko2012-07-161-1/+2
| | | | | | classes. llvm-svn: 160323
* This test appears to fail on win32.Ted Kremenek2012-07-161-0/+1
| | | | llvm-svn: 160322
* Add hack (provided by Jonathan Sauer) to fall back to assuming Xcode is ↵Ted Kremenek2012-07-161-1/+5
| | | | | | | | | | installed in /Developer when using Python < 2.7.0. This is the case on Snow Leopard, where the tools are always installed in /Developer. This isn't a proper fix for really figuring out where Xcode is installed, but should work to fix an obvious problem on Snow Leopard. llvm-svn: 160321
* This test appears to be passing on win32.Ted Kremenek2012-07-161-4/+3
| | | | llvm-svn: 160320
* Don't crash when emitting fixits following Unicode characters.Jordan Rose2012-07-163-28/+52
| | | | | | | | | | | | | | | This code is very sensitive to the difference between "columns" as printed and "bytes" (SourceManager columns). All variables are now named explicitly and our assumptions are (hopefully) documented as both comment and assertion. Whether parseable fixits should use byte offsets or Unicode character counts is pending discussion on the mailing list; currently the implementation uses bytes (and has no problems on lines containing multibyte characters). This has been added to the user manual. <rdar://problem/11877454> llvm-svn: 160319
* Simplify float comparison checks by using early return.David Blaikie2012-07-161-24/+16
| | | | | | Found while investigating PR13330 llvm-svn: 160318
* Fix copy-paste mistake for CMake dependency.Ted Kremenek2012-07-161-1/+1
| | | | llvm-svn: 160315
* [analyzer] Make CmpRuns external-user friendly.Anna Zaks2012-07-162-45/+63
| | | | | | | | | CmpRuns can be used for static analyzer bug report comparison. However, we want to make sure external users do not rely on the way bugs are represented (plist files). Make sure that we have a user friendly/documented API for CmpRuns script. llvm-svn: 160314
* Looks like libTooling might also depend on ClangDiagnosticCommon.Ted Kremenek2012-07-161-0/+4
| | | | llvm-svn: 160313
OpenPOWER on IntegriCloud