summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Make this test case more portable by removing its dependency on system ↵Ted Kremenek2009-08-201-3/+8
| | | | | | header files. llvm-svn: 79511
* Fix bit-field promotion to be a bit closer to the behavior of gcc. Eli Friedman2009-08-205-62/+108
| | | | | | | 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-202-24/+25
| | | | | | | 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-205-0/+185
| | | | llvm-svn: 79504
* Rename: ProgramPoint::getContext() => ProgramPoint::getLocationContext().Zhongxing Xu2009-08-203-3/+3
| | | | llvm-svn: 79502
* Test case for my last patch plus a minor clean up.Fariborz Jahanian2009-08-202-4/+47
| | | | llvm-svn: 79500
* retain/release checker: Special case handling of CFAttributedStringSetAttribute,Ted Kremenek2009-08-203-80/+99
| | | | | | | 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-195-16/+23
| | | | 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-194-26/+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-197-72/+65
| | | | | | | - 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
* Update for recent improvements.Mike Stump2009-08-191-2/+2
| | | | llvm-svn: 79421
* Get the Decl from the current ExplodedNode. Eventually the diagnostic clientZhongxing Xu2009-08-192-2/+6
| | | | | | 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-197-159/+186
| | | | | | | | 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-192-2/+170
| | | | llvm-svn: 79402
* Refine vcalls a little.Mike Stump2009-08-192-42/+54
| | | | 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-195-5/+63
| | | | | | | | 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-1924-182/+273
| | | | | | | | | | | | 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-197-1/+905
| | | | | | | | | | | 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
* Update Xcode project.Anders Carlsson2009-08-191-5/+11
| | | | llvm-svn: 79390
* 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-185-15/+15
| | | | | | | | 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
* Renamed ObjCKVCRefExpr to ObjCImplctSetterGetterRefExpr.Fariborz Jahanian2009-08-1822-73/+108
| | | | | | | | Removed an unnecessary loop to get to setters incoming argument. Added DoxyGen comments. Still more work to do in this area (WIP). llvm-svn: 79365
* Change ActOnReturnStmt to not take a FullExprArg. Instead, Sema will wrap ↵Anders Carlsson2009-08-186-7/+11
| | | | | | the return expr inside a CXXExprWithTemporaries if needed. llvm-svn: 79342
* Remove unused parameter BugReporter due to previous patch.Zhongxing Xu2009-08-183-13/+7
| | | | llvm-svn: 79328
* Now we can get the CFG from the ProgramPoint. No need to pass in the Zhongxing Xu2009-08-183-5/+9
| | | | | | BugReporter. llvm-svn: 79327
* Add test for finding bfin backend.Daniel Dunbar2009-08-181-0/+1
| | | | llvm-svn: 79326
* Convert CreateTargetInfo to use a Triple instead of manul string munging.Daniel Dunbar2009-08-181-72/+66
| | | | | | - Patch by Yonggang Luo (with some formatting tweaks by Eli and myself). llvm-svn: 79320
* Fix some made up triples.Daniel Dunbar2009-08-183-15/+15
| | | | llvm-svn: 79316
OpenPOWER on IntegriCloud