summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Patch to ir-gen destruction of array member elements in revers orderFariborz Jahanian2009-08-201-0/+60
| | | | | | of their construction. llvm-svn: 79571
* Initial support for parsing and representation of member function templates.Douglas Gregor2009-08-205-10/+45
| | | | llvm-svn: 79570
* ir-gen patch to destruct array members. WIP.Fariborz Jahanian2009-08-202-13/+44
| | | | llvm-svn: 79565
* Fix a typo in a variable nameDouglas Gregor2009-08-201-3/+3
| | | | llvm-svn: 79558
* Issue an error if the user specifies parameters in a function marked as ISR.Sanjiv Gupta2009-08-202-2/+23
| | | | llvm-svn: 79544
* Using "ObjCImplicitSetterGetterRefExpr" instead of ↵Fariborz Jahanian2009-08-2019-60/+60
| | | | | | | | "ObjCImplctSetterGetterRefExpr". A field rename and more comments. llvm-svn: 79537
* Refine vbase offsets for the inductive case. Things are now startingMike Stump2009-08-201-7/+7
| | | | | | to come together nicely. Still a WIP. llvm-svn: 79521
* Add syntax examples for the friend declaration types.John McCall2009-08-201-1/+0
| | | | | | Remove an assert trivialized by dominating code. llvm-svn: 79520
* Refactor the instantiation of statements into a generic treeDouglas Gregor2009-08-205-499/+754
| | | | | | transformation. llvm-svn: 79519
* retain/release checker: Treat NSObject method '-awakeAfterUsingCoder:'Ted Kremenek2009-08-201-4/+9
| | | | | | just as if it behaved like an init function. This fixes <rdar://problem/7129086>. llvm-svn: 79515
* Fix bit-field promotion to be a bit closer to the behavior of gcc. Eli Friedman2009-08-202-60/+50
| | | | | | | Patch by Enea Zaffanella, with some simplifications/corrections to isPromotableBitField by me. llvm-svn: 79510
* If the 'while' has an empty body, set the body to the continue target block.Zhongxing Xu2009-08-201-1/+1
| | | | | | | Although this does not make the CFG more correct, it makes the CFG more beautiful without multiple roots. llvm-svn: 79509
* If the body of for loop is empty, set its body to the continue target.Zhongxing Xu2009-08-201-1/+1
| | | | | | Otherwise we get a wrong CFG. llvm-svn: 79507
* Ensure we don't output repeated vbase offsets. I have a testcase forMike Stump2009-08-201-22/+23
| | | | | | | this, but need to fixup the actual offset value before I can check it in. WIP. llvm-svn: 79506
* Basic nested-template implementation.John McCall2009-08-203-0/+134
| | | | llvm-svn: 79504
* Rename: ProgramPoint::getContext() => ProgramPoint::getLocationContext().Zhongxing Xu2009-08-201-1/+1
| | | | llvm-svn: 79502
* Test case for my last patch plus a minor clean up.Fariborz Jahanian2009-08-201-4/+2
| | | | llvm-svn: 79500
* retain/release checker: Special case handling of CFAttributedStringSetAttribute,Ted Kremenek2009-08-201-4/+6
| | | | | | | fixing <rdar://problem/7152619>. Along the way, merge test cases in 'test/Analysis/rdar-6539791.c' into 'test/Analysis/retain-release.m'. llvm-svn: 79499
* ir-gen for multi-dimensional array construction. WIP.Fariborz Jahanian2009-08-201-6/+18
| | | | llvm-svn: 79497
* Enhance diagnostics concerning attribute 'ns_returns_retained' and ↵Ted Kremenek2009-08-191-4/+6
| | | | | | 'cf_returns_retained' to present the range of the attribute and have the diagnostic location be the declaration that the attribute was falsely attached to. This solves the problem where these diagnostics were being suppressed when these attributes were wrapped in a macro that was defined in a system header. llvm-svn: 79496
* Keep track of the right paren ')' source location in a function declarator.Argyrios Kyrtzidis2009-08-194-15/+21
| | | | llvm-svn: 79489
* Removed unneeded code for break/continue statements inFariborz Jahanian2009-08-191-7/+0
| | | | | | | | manufactured for-loop per Anders feedback (thanks). - Fariborz llvm-svn: 79466
* ir-gen for constructing arrays as non-static data members. WIP.Fariborz Jahanian2009-08-192-1/+99
| | | | llvm-svn: 79464
* Add TCE target to clang; patch by Mikael Lepistö.Eli Friedman2009-08-191-0/+67
| | | | llvm-svn: 79462
* Remove now unnecessary helper methods.Daniel Dunbar2009-08-193-7/+7
| | | | llvm-svn: 79460
* Switch to SmallString::str from SmallString::c_str.Daniel Dunbar2009-08-195-21/+27
| | | | | | - Several FIXMEs due to non-Twinification of IRBuilder. llvm-svn: 79455
* Convert parts of Rewriter to StringRef based API.Daniel Dunbar2009-08-196-50/+46
| | | | | | | - Please accept my sincere apologies for the gratuitous elimination of code duplication, manual string length counting, unnecessary strlen calls, etc. llvm-svn: 79448
* Use raw_svector_ostream for string concatenation.Daniel Dunbar2009-08-191-7/+9
| | | | llvm-svn: 79444
* One second thought, I think I want to limit this class to just vtableMike Stump2009-08-191-5/+5
| | | | | | building activities. llvm-svn: 79438
* Cleanup: fold IndirectPrimary into builder.Mike Stump2009-08-191-12/+9
| | | | llvm-svn: 79423
* We don't want to confuse this layout with the BLayout from the builder.Mike Stump2009-08-191-3/+3
| | | | llvm-svn: 79422
* Get the Decl from the current ExplodedNode. Eventually the diagnostic clientZhongxing Xu2009-08-191-2/+4
| | | | | | and other core analysis logic will be untied to a particular Decl. llvm-svn: 79420
* Update CMakeLists.Benjamin Kramer2009-08-191-0/+1
| | | | llvm-svn: 79416
* Make integer promotions work correctly on PIC16 and other platforms Eli Friedman2009-08-195-159/+170
| | | | | | | | where sizeof(short) == sizeof(int). Move UsualArithmeticConversionsType out of Sema, since it was only there as a historical artifact. Patch by Enea Zaffanella. llvm-svn: 79412
* Restore vbase offsets for classes without a primary.Mike Stump2009-08-191-1/+1
| | | | llvm-svn: 79402
* Refine vcalls a little.Mike Stump2009-08-191-20/+32
| | | | llvm-svn: 79400
* Fix a comment and improve an assert message.Argyrios Kyrtzidis2009-08-191-2/+4
| | | | llvm-svn: 79399
* Store/load type source info from/to PCH files.Argyrios Kyrtzidis2009-08-192-7/+149
| | | | llvm-svn: 79396
* Use Sema's LocInfoType to pass and preserve type source info through the Parser.Argyrios Kyrtzidis2009-08-1911-33/+68
| | | | llvm-svn: 79395
* Introduce LocInfoType which is a Sema-specific implementation detail.Argyrios Kyrtzidis2009-08-194-2/+57
| | | | | | | | This is a Type subclass that can hold a DeclaratorInfo* when we have type source info coming out of a declarator that we want to preserve. This is used only at the "border" of Parser/Sema for passing/getting QualTypes, it does not participate in the type system semantics in any way. llvm-svn: 79394
* Create and instantiate a DeclaratorInfo using a newly introduced ↵Argyrios Kyrtzidis2009-08-192-1/+137
| | | | | | Sema::GetDeclaratorInfoForDeclarator(). llvm-svn: 79393
* Introduce DeclaratorDecl and pass DeclaratorInfo through the Decl/Sema ↵Argyrios Kyrtzidis2009-08-1919-126/+179
| | | | | | | | | | | | interfaces. DeclaratorDecl contains a DeclaratorInfo* to keep type source info. Subclasses of DeclaratorDecl are FieldDecl, FunctionDecl, and VarDecl. EnumConstantDecl still inherits from ValueDecl since it has no need for DeclaratorInfo. Decl/Sema interfaces accept a DeclaratorInfo as parameter but no DeclaratorInfo is created yet. llvm-svn: 79392
* Introduce DeclaratorInfo and TypeLoc, intended to be used for storing and ↵Argyrios Kyrtzidis2009-08-193-0/+350
| | | | | | | | | | | reading source information for types. DeclaratorInfo will contain a flat memory block for source information about a type that came out of a declarator. TypeLoc and its subclasses will be used by clients as wrappers to "traverse" the memory block and read the information. Both DeclaratorInfo and TypeLoc are not utilized in this commit. llvm-svn: 79391
* Cleanup.Mike Stump2009-08-181-4/+4
| | | | llvm-svn: 79374
* Add some documentation.Mike Stump2009-08-181-0/+1
| | | | llvm-svn: 79373
* Cleanups. Move GenerateRtti to CodeGenModule.Mike Stump2009-08-183-15/+18
| | | | llvm-svn: 79372
* Renamed ClassProp data member of ObjCImplctSetterGetterRefExprFariborz Jahanian2009-08-184-10/+10
| | | | | | | | to InterfaceDecl, as it is unrelated to any property and holds the InterfaceDecl needed for accessing class getter/setter methods using the dot-syntax. llvm-svn: 79371
* Move the rest of the vtable building code into the new builder.Mike Stump2009-08-182-128/+102
| | | | llvm-svn: 79370
* Suck up method generation.Mike Stump2009-08-181-19/+19
| | | | llvm-svn: 79367
* Split out vtable bulding code into a builder.Mike Stump2009-08-181-19/+25
| | | | llvm-svn: 79366
OpenPOWER on IntegriCloud