summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Perform access control when template lookup finds a class template.John McCall2010-08-131-4/+11
| | | | | | This is *really* hacky. llvm-svn: 110997
* Zap unused UnaryOperator::OffsetOf.Eli Friedman2010-08-1310-80/+1
| | | | llvm-svn: 110996
* The Sema object will get destroyed before all of the others anyway. We don't ↵Douglas Gregor2010-08-131-1/+0
| | | | | | need to force it llvm-svn: 110993
* Instead of modifying the ObjC AST to not modify existing declarations, teach ↵Sebastian Redl2010-08-135-18/+74
| | | | | | chained PCH to overwrite declarations from earlier PCH files in dependent ones. Tell Sema to note when it changes AST nodes so that they have to be reserialized. Finally, the ObjCProtocolDecls created in forward decls, like the ObjCInterfaceDecls in @class forward decls, are not lexically part of the decl context; only the definition is. llvm-svn: 110989
* Make use of __func__ in a block actually refer toFariborz Jahanian2010-08-131-6/+17
| | | | | | block's helper function. Fixes radar 7860965. llvm-svn: 110988
* Just disable the hidden-visibility optimization for now by hiding it behindJohn McCall2010-08-124-5/+17
| | | | | | | | a -cc1 option. The Darwin linker complains about mixed visibility when linking gcc-built objects with clang-built objects, and the optimization isn't really that valuable. Platforms with less ornery linkers can feel free to enable this. llvm-svn: 110979
* Teach CompilerInstance to create and hold on to the Sema object usedDouglas Gregor2010-08-122-6/+24
| | | | | | | for parsing, so that it can persist beyond the lifetime of the parsing call. llvm-svn: 110978
* 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-122-38/+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: 110973
* Improved IdempotentOperationChecker false positives and false negatives.Tom Care2010-08-121-98/+203
| | | | | | | | | - 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-121-0/+21
| | | | | | | does not implement 'countByEnumeratingWithState' API. Implements radar 7634669. llvm-svn: 110964
* Implement -Wcast-align. The initial design of this diagnostic diverges John McCall2010-08-123-0/+55
| | | | | | | | 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-122-47/+40
| | | | llvm-svn: 110958
* dgregor should write code that compiles.John McCall2010-08-122-7/+9
| | | | llvm-svn: 110956
* Add a ParseAST overload that takes a Sema object, so that the callerDouglas Gregor2010-08-122-36/+41
| | | | | | | | | 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-121-1/+1
| | | | llvm-svn: 110950
* Move Sema's headers into include/clang/Sema, renaming a few along the way.Douglas Gregor2010-08-1242-7403/+66
| | | | llvm-svn: 110945
* first test commitAnton Yartsev2010-08-121-8/+8
| | | | llvm-svn: 110941
* Downgrade error about nonnull attribute bbeing applied to a function ↵Douglas Gregor2010-08-121-1/+1
| | | | | | without point arguments to a warning llvm-svn: 110939
* Don't emit end-of-file diagnostics like "unterminated conditional" orDouglas Gregor2010-08-123-8/+13
| | | | | | "unterminated string" when we're performing code completion. llvm-svn: 110933
* Added locations and type source info for DeclarationName inside UsingDecl.Abramo Bagnara2010-08-125-37/+41
| | | | llvm-svn: 110912
* Remove OwnershipAttr::Kind, since it's essentially redundant with attr::Kind ↵Jordy Rose2010-08-123-61/+57
| | | | | | 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
* Handle the obvious case for diagnosing redeclarations of extern "C" functions.John McCall2010-08-121-0/+5
| | | | | | 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-122-0/+155
| | | | | | ExecuteCompilerInvocation in libFrontend. llvm-svn: 110903
* 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-121-16/+73
| | | | llvm-svn: 110900
* Fix a crash on invalid when declaring an implicit member of a class with anJohn McCall2010-08-121-1/+7
| | | | | | invalid destructor. llvm-svn: 110891
* Driver: Use the compile time linker version as the default for -mlinker-version,Daniel Dunbar2010-08-121-0/+10
| | | | | | | | 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-121-2/+25
| | | | llvm-svn: 110885
* 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-111-6/+2
| | | | llvm-svn: 110879
* Driver/Darwin: Pass -demangle when linking, if the linker supports it.Daniel Dunbar2010-08-111-0/+16
| | | | llvm-svn: 110873
* Driver: Add -mlinker-version=, which forwards to -target-linker-version.Daniel Dunbar2010-08-111-0/+6
| | | | llvm-svn: 110872
* Frontend: Add -target-linker-version, for specifying the version string of theDaniel Dunbar2010-08-111-1/+6
| | | | | | 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-114-7/+11
| | | | | | | | -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-111-0/+4
| | | | | | 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-1125-364/+659
| | | | llvm-svn: 110860
* Once code completion has completed, pass a "completion context" on toDouglas Gregor2010-08-119-117/+226
| | | | | | | the code-completion consumer. The consumer can use this information to augument, filter, or display the code-completion results. llvm-svn: 110858
* Emit a stop point for delegate constructor call. This gives user a chance to ↵Devang Patel2010-08-111-0/+3
| | | | | | step into constructor body. llvm-svn: 110853
* When re-raising an exception after a cleanup, we need to call ↵John McCall2010-08-111-1/+1
| | | | | | | | | | | | | | | | | | _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
* Reintroduce the ASTConsumer/ASTUnit fix from r110610, it has nothing to do ↵Sebastian Redl2010-08-113-2/+8
| | | | | | with the breakage. llvm-svn: 110840
* Fix define inserting a comma :)Bruno Cardoso Lopes2010-08-111-1/+1
| | | | llvm-svn: 110839
* IRGen support for functions returning objc objectFariborz Jahanian2010-08-112-10/+1
| | | | | | types. Fixes PR7865. llvm-svn: 110832
* Random temporary string cleanup.Benjamin Kramer2010-08-117-12/+10
| | | | llvm-svn: 110807
* If name lookup finds different type declarations in different scopesDouglas Gregor2010-08-111-21/+39
| | | | | | | | that actually refer to the same underlying type, it is not an ambiguity; add uniquing support based on the canonical type of type declarations. Fixes <rdar://problem/8296180>. llvm-svn: 110806
OpenPOWER on IntegriCloud