summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Early ir-gen for constructor prologue. This is on going.Fariborz Jahanian2009-07-202-0/+37
| | | | llvm-svn: 76493
* Reuse VarDecl::Init to store the default argument of a ParmVarDecl,Douglas Gregor2009-07-202-4/+0
| | | | | | | reducing the size of ParmVarDecl by one pointer. Also means that we'll properly (de-)serialize default arguments in C++ PCH files. llvm-svn: 76487
* Enhance GRExprEngine::EvalBind to handle some implicit casts from nonlocs toTed Kremenek2009-07-201-1/+18
| | | | | | locs and vis versa. llvm-svn: 76483
* Enhance SimpleSValuator to handle nonloc::LocAsInteger -> location casts.Ted Kremenek2009-07-201-3/+8
| | | | llvm-svn: 76481
* Remove an apparently unused header.Mike Stump2009-07-201-1/+0
| | | | llvm-svn: 76473
* Add FIXME.Ted Kremenek2009-07-201-0/+5
| | | | llvm-svn: 76466
* When a field is variable-sized or is an array with a negative size,Douglas Gregor2009-07-201-1/+0
| | | | | | don't replace the type of the field with 'int', from Enea Zaffanella! llvm-svn: 76454
* Improve GCC compatibility by allowing static tentative definitions ofDouglas Gregor2009-07-201-16/+19
| | | | | | incomplete type (with a warning), from Enea Zaffanella! llvm-svn: 76451
* Enhance GRBranchNodeBuilderImpl (part of GRCoreEngine) to understand the caseTed Kremenek2009-07-202-11/+22
| | | | | | | | where the true or false CFGBlock* for a branch could be NULL. This will handle the case where we can determine during CFG construction that a branch is infeasible. llvm-svn: 76450
* 5 cleanups to ObjCObjectPointerType work:Steve Naroff2009-07-205-68/+35
| | | | | | | | | | - Remove Sema::CheckPointeeTypesForAssignment(), a temporary API I added to ease migration to ObjCObjectPointerType. Convert Sema::CheckAssignmentConstraints() to no longer depend on the temporary API. - Sema::ConvertDeclSpecToType(): Replace a couple FIXME's with an important comment/example. - Sema::GetTypeForDeclarator(): Get the protocol's from the interface, NOT the declspec (to support the following C typedef idiom: "typedef C<P> T; T *obj"). - Sema::ObjCQualifiedIdTypesAreCompatible(): Removed some dead code. - ASTContext::getObjCEncodingForTypeImpl(): Some minor cleanups. llvm-svn: 76443
* Issue a more descriptive diagnostics when mis-declaringFariborz Jahanian2009-07-202-4/+6
| | | | | | a destructor. llvm-svn: 76436
* The children statements might be NULL. Check for this case in Zhongxing Xu2009-07-201-2/+3
| | | | | | isContainedInStatement(). llvm-svn: 76408
* Implement FIXME in pretty-printing for StringRegions.Ted Kremenek2009-07-191-3/+2
| | | | llvm-svn: 76381
* Improve debug pretty-printing for ObjCIVarRegions.Ted Kremenek2009-07-191-0/+4
| | | | llvm-svn: 76380
* enhance the goto checker to reject jumps across __block variable definitions.Chris Lattner2009-07-192-1/+4
| | | | llvm-svn: 76376
* Catch another trivial case where we can avoid emitting a separate return blcok.Daniel Dunbar2009-07-191-4/+5
| | | | llvm-svn: 76365
* Detect when the current generation point is unreachable after emittingDaniel Dunbar2009-07-191-3/+12
| | | | | | | | | | expressions. - This generally catches the important case of noreturn functions. - With the last two changes, we are down to 152 unreachable blocks emitted on 403.gcc, vs the 1805 we started with. llvm-svn: 76364
* Fix thinko.Daniel Dunbar2009-07-192-4/+8
| | | | llvm-svn: 76362
* Avoid generation of dead code in a few more situations.Daniel Dunbar2009-07-194-15/+66
| | | | | | | | | | | | | - Emit variable declarations as "simple", we want to avoid forcing the creation of a dummy basic block, but still need to make the variable available for later use. - With that, we can now skip IRgen for other unreachable statements (which don't define a label). - Anders, I added two fixmes on calls to EmitVLASize, can you check them? llvm-svn: 76361
* Add include needed for MSVC.Daniel Dunbar2009-07-191-0/+1
| | | | llvm-svn: 76359
* Update CMakeDaniel Dunbar2009-07-191-0/+1
| | | | llvm-svn: 76351
* Handle layout of non-virtual base classes.Anders Carlsson2009-07-192-4/+65
| | | | llvm-svn: 76348
* Refactor field layout into a separate function.Anders Carlsson2009-07-182-5/+10
| | | | llvm-svn: 76343
* Rename NextOffset to DataSize, which better matches the Itanium C++ ABIAnders Carlsson2009-07-182-2/+2
| | | | llvm-svn: 76339
* Migrate over to the record layout builder.Anders Carlsson2009-07-182-158/+13
| | | | llvm-svn: 76338
* Re-enable 'test/SemaTemplate/temp_class_spec_neg.cpp', after commenting out ↵Argyrios Kyrtzidis2009-07-181-1/+3
| | | | | | the cause of the crash. llvm-svn: 76337
* Introduce ASTLocation::getReferencedDecl(), for getting the declaration that ↵Argyrios Kyrtzidis2009-07-181-0/+24
| | | | | | the ASTLocation references. llvm-svn: 76336
* Handle invalid ASTLocations instead of asserting.Argyrios Kyrtzidis2009-07-181-1/+6
| | | | llvm-svn: 76335
* More layout builder work.Anders Carlsson2009-07-182-1/+54
| | | | llvm-svn: 76333
* Add a new ASTRecordLayoutBuilder class. Not used yet.Anders Carlsson2009-07-182-0/+213
| | | | llvm-svn: 76330
* Revert r75641.Anders Carlsson2009-07-189-7/+9
| | | | llvm-svn: 76327
* Fix typo from r76321.Steve Naroff2009-07-181-1/+1
| | | | llvm-svn: 76322
* Remove ObjCQualifiedInterfaceType:-)Steve Naroff2009-07-1811-150/+93
| | | | llvm-svn: 76321
* Rename file in preparation of properly implementing C-style casts in C++.Sebastian Redl2009-07-182-1/+1
| | | | llvm-svn: 76318
* Enhance testing of overriding exception specs for inaccessible base exceptions.Sebastian Redl2009-07-183-37/+55
| | | | llvm-svn: 76317
* Fix a comment.Zhongxing Xu2009-07-181-1/+1
| | | | llvm-svn: 76303
* Introduce a redecl_iterator in Decl class, so that we can do a "iterate over ↵Argyrios Kyrtzidis2009-07-181-1/+1
| | | | | | all declarations of the same decl" without knowing the exact type. llvm-svn: 76298
* Introduce the Redeclarable template class, which serves as a base type ↵Argyrios Kyrtzidis2009-07-181-42/+4
| | | | | | | | defining the common interface for Decls that can be redeclared. Make FunctionDecl and VarDecl use it. llvm-svn: 76297
* Remove StmtLocResolver::VisitObjCIvarRefExpr, it was only there to avoid ↵Argyrios Kyrtzidis2009-07-181-7/+0
| | | | | | | | returning an implicit 'self' instead of the ivar. Since implicit 'self' no longer has a source location, it's not needed. (plus we also want to check for a 'self' that is visible in source code) llvm-svn: 76296
* Don't add a SourceLocation for 'self' if it does not actually appears in the ↵Argyrios Kyrtzidis2009-07-181-1/+2
| | | | | | source code. llvm-svn: 76295
* Replace stmt visitors with the fall back method.Zhongxing Xu2009-07-181-21/+1
| | | | llvm-svn: 76294
* Fix crash in StoreManager::NewCastRegion() when handling casts from 'id' (or ↵Ted Kremenek2009-07-181-2/+20
| | | | | | whatever) to a BlockPointerType. llvm-svn: 76288
* Return CodeTextRegions for BlockPointerTypes in addition to ↵Ted Kremenek2009-07-181-9/+9
| | | | | | FunctionPointerTypes. llvm-svn: 76287
* Fix some fallout from CFGBuilder restructuring: all expressions that we ↵Ted Kremenek2009-07-181-20/+24
| | | | | | explicitly handle have the possibility to be block-level expressions. llvm-svn: 76277
* Remove getFirstDeclaration/getLatestDeclaration from FunctionDecl and VarDecl.Argyrios Kyrtzidis2009-07-181-18/+4
| | | | | | Their usefulness is questionable since redecl_iterator was introduced. llvm-svn: 76275
* Remove ASTContext::getCanonicalDecl() and use Decl::getCanonicalDecl in its ↵Argyrios Kyrtzidis2009-07-188-32/+30
| | | | | | place. llvm-svn: 76274
* Move the functionality of ASTContext::getCanonicalDecl(), into a virtual ↵Argyrios Kyrtzidis2009-07-184-41/+38
| | | | | | method Decl::getCanonicalDecl(). llvm-svn: 76273
* Resolve a location that is inside an ObjCMethodDecl.Argyrios Kyrtzidis2009-07-181-1/+58
| | | | llvm-svn: 76272
* Make ASTLocation accept a Stmt that is inside an ObjCMethodDecl.Argyrios Kyrtzidis2009-07-181-3/+19
| | | | llvm-svn: 76271
* Search through all Decls that are DeclContexts.Argyrios Kyrtzidis2009-07-181-7/+2
| | | | llvm-svn: 76270
OpenPOWER on IntegriCloud