summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Small changes to UnreachableCodeCheckerTom Care2010-08-121-3/+20
| | | | | | | - Added detection of Empty CFGBlocks (artificial blocks) - Relaxed an assertion based on an incorrect assumption until further investigation llvm-svn: 110974
* Add a ParseAST overload that takes a Sema object, so that the callerDouglas Gregor2010-08-124-40/+62
| | | | | | | | | can create (and hold on to) the Sema object. Also, move Sema-related initialization/finalization with its various consumers and external sources into the Sema constructor and destructor, rather than placing it in ParseAST. llvm-svn: 110973
* Improved IdempotentOperationChecker false positives and false negatives.Tom Care2010-08-128-134/+268
| | | | | | | | | - Unfinished analysis may still report valid warnings if the path was completely analyzed - New 'CanVary' heuristic to recursively determine if a subexpression has a varying element - Updated test cases, including one known bug - Exposed GRCoreEngine through GRExprEngine llvm-svn: 110970
* Typo.Fariborz Jahanian2010-08-121-1/+1
| | | | llvm-svn: 110965
* Patch to issue warning when colllection expresion's typeFariborz Jahanian2010-08-124-2/+26
| | | | | | | does not implement 'countByEnumeratingWithState' API. Implements radar 7634669. llvm-svn: 110964
* Implement -Wcast-align. The initial design of this diagnostic diverges John McCall2010-08-128-1/+147
| | | | | | | | from GCC's in that we warn on *any* increase in alignment requirements, not just those that are enforced by hardware. Please let us know if this causes major problems for you (which it shouldn't, since it's an optional warning). llvm-svn: 110959
* Fixing the build isn't good enough; back out r110956 and r110953.John McCall2010-08-124-55/+41
| | | | llvm-svn: 110958
* dgregor should write code that compiles.John McCall2010-08-122-7/+9
| | | | llvm-svn: 110956
* Update Xcode projectDouglas Gregor2010-08-121-76/+26
| | | | llvm-svn: 110953
* Add a ParseAST overload that takes a Sema object, so that the callerDouglas Gregor2010-08-124-37/+49
| | | | | | | | | can create (and hold on to) the Sema object. Also, move Sema-related initialization/finalization with its various consumers and external sources into the Sema constructor and destructor, rather than placing it in ParseAST. llvm-svn: 110952
* Fixes block type matching bug. Radar 8302845.Fariborz Jahanian2010-08-123-3/+20
| | | | llvm-svn: 110950
* Move Sema's headers into include/clang/Sema, renaming a few along the way.Douglas Gregor2010-08-1242-76/+76
| | | | llvm-svn: 110945
* Revert r110936; this fails on clang-i686-darwin10 too.Dan Gohman2010-08-121-2/+3
| | | | llvm-svn: 110942
* first test commitAnton Yartsev2010-08-121-8/+8
| | | | llvm-svn: 110941
* Downgrade error about nonnull attribute bbeing applied to a function ↵Douglas Gregor2010-08-123-2/+4
| | | | | | without point arguments to a warning llvm-svn: 110939
* Make this test darwin only.Devang Patel2010-08-121-3/+2
| | | | llvm-svn: 110936
* Don't emit end-of-file diagnostics like "unterminated conditional" orDouglas Gregor2010-08-124-8/+43
| | | | | | "unterminated string" when we're performing code completion. llvm-svn: 110933
* Temporarily disable this failing test, until it can be properlyDan Gohman2010-08-121-1/+2
| | | | | | investigated. llvm-svn: 110917
* Add a comment.Argyrios Kyrtzidis2010-08-121-1/+5
| | | | llvm-svn: 110913
* Added locations and type source info for DeclarationName inside UsingDecl.Abramo Bagnara2010-08-126-56/+75
| | | | llvm-svn: 110912
* Remove OwnershipAttr::Kind, since it's essentially redundant with attr::Kind ↵Jordy Rose2010-08-124-81/+66
| | | | | | the way it's being used. Also fix isa<OwnershipAttr> support, break more-than-80-char lines, and other miscellaneous ownership attr cleanup. llvm-svn: 110908
* Test for rdar://problem/8073696.John McCall2010-08-121-0/+11
| | | | llvm-svn: 110907
* Handle the obvious case for diagnosing redeclarations of extern "C" functions.John McCall2010-08-122-0/+16
| | | | | | Fixes PR7859. llvm-svn: 110906
* Actually use reduced set of checkers in EvalAssume.Jordy Rose2010-08-121-2/+1
| | | | llvm-svn: 110904
* Frontend: Move the bulk of the cc1_main() processing intoDaniel Dunbar2010-08-124-129/+166
| | | | | | ExecuteCompilerInvocation in libFrontend. llvm-svn: 110903
* clang -cc1: Move real diagnostics client initialization to earlier.Daniel Dunbar2010-08-121-13/+14
| | | | llvm-svn: 110902
* Bail out of MaybeBindToTemporary if the record type is invalid. Test caseJohn McCall2010-08-121-1/+1
| | | | | | is 8.5MB, sorry. llvm-svn: 110901
* Implement RTTI generation for Objective C types. Fixes PR7864.John McCall2010-08-122-16/+125
| | | | llvm-svn: 110900
* Fix a crash on invalid when declaring an implicit member of a class with anJohn McCall2010-08-122-1/+21
| | | | | | invalid destructor. llvm-svn: 110891
* Driver: Use the compile time linker version as the default for -mlinker-version,Daniel Dunbar2010-08-122-1/+11
| | | | | | | | if detected. - This is a hack, we really want the linker version at execution time, but we don't have any infrastructure for getting that. Yet. llvm-svn: 110886
* Emit debug info for static const class member.Devang Patel2010-08-122-2/+37
| | | | llvm-svn: 110885
* update test to reflect r110876 change.Devang Patel2010-08-121-1/+1
| | | | llvm-svn: 110884
* Don't try to implicitly declare special members of an invalid class.John McCall2010-08-111-0/+4
| | | | | | Fixes a crash in a rather large and difficult-to-reduce test case. llvm-svn: 110882
* Fix a bug where child statements could not be identified as being in a ↵Tom Care2010-08-111-1/+1
| | | | | | CFGBlock in CFGStmtMap::getBlock. llvm-svn: 110881
* Switch on PCH for C++. C++ fans all over the world rejoice.Argyrios Kyrtzidis2010-08-112-18/+2
| | | | llvm-svn: 110879
* Driver/Darwin: Pass -demangle when linking, if the linker supports it.Daniel Dunbar2010-08-112-0/+39
| | | | llvm-svn: 110873
* Driver: Add -mlinker-version=, which forwards to -target-linker-version.Daniel Dunbar2010-08-112-0/+7
| | | | llvm-svn: 110872
* Frontend: Add -target-linker-version, for specifying the version string of theDaniel Dunbar2010-08-113-1/+11
| | | | | | linker in use. llvm-svn: 110871
* Fix oversight with symbolic names in TargetInfo::validateInputConstraint.Eli Friedman2010-08-111-0/+1
| | | | llvm-svn: 110870
* -Make TokenID of IdentifierInfo read-only, remove setTokenID().Argyrios Kyrtzidis2010-08-117-10/+51
| | | | | | | | -There are 2 instances that change the TokenID for GNU libstdc++ 4.2 compatibility. To handler those cases introduce a RevertedTokenID bitfield, RevertTokenIDToIdentifier() and hasRevertedTokenIDToIdentifier() methods. Store the bitfield in PCH. llvm-svn: 110868
* Revise r110163: don't mark weak functions nounwind, because the optimizerJohn McCall2010-08-112-0/+11
| | | | | | treats that as a contract to be fulfilled by any replacements. llvm-svn: 110864
* Added locations and type source info for DeclarationName.Abramo Bagnara2010-08-1131-454/+961
| | | | llvm-svn: 110860
* Once code completion has completed, pass a "completion context" on toDouglas Gregor2010-08-1112-135/+331
| | | | | | | the code-completion consumer. The consumer can use this information to augument, filter, or display the code-completion results. llvm-svn: 110858
* Change text of diagnostics on user request.Fariborz Jahanian2010-08-112-4/+4
| | | | | | radar 7948654. llvm-svn: 110857
* Emit a stop point for delegate constructor call. This gives user a chance to ↵Devang Patel2010-08-112-0/+16
| | | | | | step into constructor body. llvm-svn: 110853
* When re-raising an exception after a cleanup, we need to call ↵John McCall2010-08-112-2/+2
| | | | | | | | | | | | | | | | | | _Unwind_Resume_or_Rethrow instead of _Unwind_Resume. With SJLJ exceptions, this is spelled "_Unwind_SjLj_Resume_or_Rethrow", not "_Unwind_SjLj_Resume", which has significantly different semantics. We should actually never be generating a call to _Unwind_SjLj_Resume directly; even if we were generating true cleanups (which we aren't because of the horrible hack), we should be calling __cxa_end_cleanup() on ARM. I haven't implemented this because there's little point as long as the HH is present. I believe this fixes <rdar://problem/8281377>. llvm-svn: 110851
* Work in progress for PR7864. Someone more familiar with ObjC++ needs to fillEli Friedman2010-08-111-3/+24
| | | | | | in the code after the "FIXME: Needs to be written". llvm-svn: 110849
* Remove rsqrtps_nr256 and sqrtps_nr256 builtins, at least until we need themBruno Cardoso Lopes2010-08-112-4/+0
| | | | llvm-svn: 110844
* Update documentation regarding use of 'class' inFariborz Jahanian2010-08-111-0/+25
| | | | | | property-dot syntax. llvm-svn: 110841
* Reintroduce the ASTConsumer/ASTUnit fix from r110610, it has nothing to do ↵Sebastian Redl2010-08-114-2/+13
| | | | | | with the breakage. llvm-svn: 110840
OpenPOWER on IntegriCloud