summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Use the correct function info for constructors when applying function ↵Anders Carlsson2010-02-065-6/+26
| | | | | | attributes. Fixes PR6245. llvm-svn: 95474
* Implement a warning diagnostic for weak vtables. Fixes PR6116.Anders Carlsson2010-02-061-2/+9
| | | | llvm-svn: 95472
* Teach Sema how to instantiate a local function declaration properly. FixesJohn McCall2010-02-061-3/+8
| | | | | | PR 5517. llvm-svn: 95470
* Assert when we try to mangle a dependent template name, rather thanDouglas Gregor2010-02-061-1/+3
| | | | | | crashing unceremoniously. llvm-svn: 95464
* Per discussion, remove the explicit restriction on static const data members ↵John McCall2010-02-061-10/+3
| | | | | | | | with out-of-line initializers as integer constant expressions. Fixes PR6206. llvm-svn: 95463
* Teach RegionStore::InvalidateRegions() to also invalidate static variables ↵Ted Kremenek2010-02-063-7/+26
| | | | | | referenced by blocks. llvm-svn: 95459
* Rearrange some checks to avoid call to isCopyConstructor() and clarify pathJohn McCall2010-02-061-12/+14
| | | | | | taken for non-trivial constructors. llvm-svn: 95457
* Fix a bogus assertion after adjusting the type of a substitutedDouglas Gregor2010-02-051-1/+3
| | | | | | | non-type template argument for a non-type template parameter of pointer type. Fixes PR6244. llvm-svn: 95447
* Cope with finding the "instantiated" declaration when we areDouglas Gregor2010-02-051-21/+36
| | | | | | | | type-checking within a template definition. In this case, the "instantiated" declaration is just the declaration itself, found within the current instantiation. Fixes PR6239. llvm-svn: 95442
* Standardize the parsing of function type attributes in a way thatJohn McCall2010-02-0521-337/+328
| | | | | | | | | | | | follows (as conservatively as possible) gcc's current behavior: attributes written on return types that don't apply there are applied to the function instead, etc. Only parse CC attributes as type attributes, not as decl attributes; don't accepet noreturn as a decl attribute on ValueDecls, either (it still needs to apply to other decls, like blocks). Consistently consume CC/noreturn information throughout codegen; enforce this by removing their default values in CodeGenTypes::getFunctionInfo(). llvm-svn: 95436
* Add guard in RewriteObjC::HandleTopLevelSingleDecl() to not doTed Kremenek2010-02-051-5/+3
| | | | | | | anything when Sema has issued an error. This matches the behavior in RewriteObjC::HandleTranslationUnit(). llvm-svn: 95434
* Revert r95393, which broke Clang's self-host.Douglas Gregor2010-02-053-14/+22
| | | | llvm-svn: 95430
* Implement name mangling for template template parametersDouglas Gregor2010-02-051-2/+15
| | | | llvm-svn: 95427
* IRgen: A few more ConvertType cleanups.Daniel Dunbar2010-02-051-11/+6
| | | | llvm-svn: 95423
* Fix two issues with the substitution of template template parametersDouglas Gregor2010-02-052-9/+9
| | | | | | | | | | | | | | | | when instantiating the declaration of a member template: - Only check if the have a template template argument at a specific position when we already know that we have template arguments at that level; otherwise, we're substituting for a level-reduced template template parameter. - When trying to find an instantiated declaration for a template template parameter, look into the instantiated scope. This was a typo, where we had two checks for TemplateTypeParmDecl, one of which should have been a TemplateTemplateParmDecl. With these changes, tramp3d-v4 passes -fsyntax-only. llvm-svn: 95421
* IRgen: Factor out EmitAggExprToLValue.Daniel Dunbar2010-02-053-14/+20
| | | | llvm-svn: 95416
* Fix a code gen bug accessing 'isa' field via a message callFariborz Jahanian2010-02-051-5/+14
| | | | | | (Fixes radar 7609722). llvm-svn: 95406
* When we're parsing an expression that may have looked like aDouglas Gregor2010-02-052-3/+41
| | | | | | | | | declaration, we can end up with template-id annotation tokens for types that have not been converted into type annotation tokens. When this is the case, translate the template-id into a type and parse as an expression. llvm-svn: 95404
* IRgen: Fix some CreateTempAlloca calls to use ConvertTypeForMem when that isDaniel Dunbar2010-02-054-6/+9
| | | | | | conceptually correct. Review appreciated (Chris, Eli, Anders). llvm-svn: 95401
* Fix the bug that was breaking self-host, and re-land the static ctor fixes.Anders Carlsson2010-02-051-1/+12
| | | | llvm-svn: 95400
* Now that we store calling conventions in the types, use them instead ofCharles Davis2010-02-051-6/+10
| | | | | | | getting the calling convention from the target function, which may or may not exist. Fixes PR5280. llvm-svn: 95399
* Initial skeleton of an AST "importer", which will take AST elements fromDouglas Gregor2010-02-052-0/+510
| | | | | | | | one context and import them into another context, merging them according to language-specific rules. This is a skeleton. It doesn't work, it isn't testable, but I want it in version control. llvm-svn: 95395
* Testing, 1, 2, 3...Charles Davis2010-02-051-2/+4
| | | | | | Also make the comments I added in r95291 consistent. llvm-svn: 95394
* IRgen: Use hasAggregateLLVMType instead of isSingleValueType() for cases thatDaniel Dunbar2010-02-053-22/+14
| | | | | | | | need to deal with aggregates specially; this is consistent with the rest of IRgen. Also, simplify EmitParmDecl and don't worry about using Decl::getNameAsString. llvm-svn: 95393
* Fixes a minor rewriter bug messaging inside a function call.Fariborz Jahanian2010-02-051-1/+5
| | | | | | Fixes radar 7617047. llvm-svn: 95392
* Some clean up of replacement text API no longer needed byFariborz Jahanian2010-02-052-5/+4
| | | | | | my recent changes. llvm-svn: 95391
* Revert r95363 and r95375, which broke self-host.Douglas Gregor2010-02-051-11/+1
| | | | llvm-svn: 95389
* A dependent initializer with zero arguments should return a NULLDouglas Gregor2010-02-052-1/+5
| | | | | | | initializer (for no initialization) rather than a ParenListExpr with zero arguments in it. llvm-svn: 95382
* Revert the unused TST_pixel entry from r95335 as it is not listed in the SemaChandler Carruth2010-02-051-1/+0
| | | | | | switch, triggering warnings. llvm-svn: 95381
* Default function arguments for function template specializationsDouglas Gregor2010-02-053-5/+16
| | | | | | | always come from the primary template, so gather the instantiation template arguments from the primary template. llvm-svn: 95380
* Tweak inliner thresholds to match llvm-gcc, see r95321.Daniel Dunbar2010-02-051-3/+3
| | | | llvm-svn: 95379
* Check in a mangle checker that's turned off by default.Anders Carlsson2010-02-051-0/+18
| | | | llvm-svn: 95377
* Teach C++ name lookup that it's okay to look in a scope without aDouglas Gregor2010-02-051-8/+10
| | | | | | | | context. This happens fairly rarely (which is why we got away with this bug). Fixes PR6184, where we skipped over the template parameter scope while tentatively parsing. llvm-svn: 95376
* Fix array initialization test.Anders Carlsson2010-02-051-1/+2
| | | | llvm-svn: 95375
* A function declarator with a non-identifier name in an anonymous classDouglas Gregor2010-02-052-2/+3
| | | | | | is a constructor for that class, right? Fixes PR6238. llvm-svn: 95367
* More GRState* -> Store changes.Zhongxing Xu2010-02-054-23/+15
| | | | llvm-svn: 95365
* Remove unused parameter.Zhongxing Xu2010-02-052-5/+3
| | | | llvm-svn: 95364
* If a global initializer has a non-trivial destructor it can't be emitted as ↵Anders Carlsson2010-02-051-1/+10
| | | | | | a constant (even if it has a trivial constructor). llvm-svn: 95363
* More GRState* -> Store changes.Zhongxing Xu2010-02-054-14/+9
| | | | llvm-svn: 95362
* When adding ADL candidates for overloadedDouglas Gregor2010-02-051-1/+1
| | | | | | | post-increment/post-decrement operators, be sure to consider both arguments. Fixes PR6237. llvm-svn: 95361
* More GRState* -> Store changes.Zhongxing Xu2010-02-055-173/+144
| | | | llvm-svn: 95360
* When determining whether a scope specifier is complete, consider aDouglas Gregor2010-02-051-0/+4
| | | | | | dependent DeclContext to be "complete". Fixes PR6236. llvm-svn: 95359
* More GRState* -> Store changes.Zhongxing Xu2010-02-053-37/+32
| | | | llvm-svn: 95357
* Change LazyCompoundVal to a <Store, MemRegion*> pair. We really don't need toZhongxing Xu2010-02-053-55/+54
| | | | | | spread GRState* everywhere. llvm-svn: 95354
* Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'.Ted Kremenek2010-02-052-7/+7
| | | | llvm-svn: 95348
* Rename -cc1 option '-warn-objc-missing-dealloc' to ↵Ted Kremenek2010-02-051-1/+1
| | | | | | '-analyzer-check-objc-missing-dealloc'. llvm-svn: 95347
* Rename -cc1 option '-warn-objc-methodsigs' to '-analyzer-check-objc-methodsigs'.Ted Kremenek2010-02-051-1/+1
| | | | llvm-svn: 95346
* Rename -cc1 option '-warn-objc-unused-ivars' to ↵Ted Kremenek2010-02-051-1/+1
| | | | | | '-analyzer-check-objc-unused-ivars'. llvm-svn: 95345
* Rename -cc1 option '-warn-dead-stores' to '-analyzer-check-dead-stores'.Ted Kremenek2010-02-051-1/+1
| | | | llvm-svn: 95343
* Rename -cc1 option '-warn-security-syntactic' to ↵Ted Kremenek2010-02-051-1/+1
| | | | | | '-analyzer-check-security-syntactic'. llvm-svn: 95342
OpenPOWER on IntegriCloud