summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Rename Entity::getName() to Entity::getPrintableName() to make its purposeZhongxing Xu2009-07-174-8/+9
| | | | | | more obvious. llvm-svn: 76167
* As suggested by Argyrios, revert r76159 and make "FindImmediateParent" Zhongxing Xu2009-07-173-13/+11
| | | | | | a public static method of ASTLocation. llvm-svn: 76166
* Refactor code into a new CallExpr::getDirectCallee() method. Simplify someZhongxing Xu2009-07-174-24/+21
| | | | | | code with the new method. llvm-svn: 76164
* CallGraph: add a bunch of stmt visitors.Zhongxing Xu2009-07-171-6/+20
| | | | llvm-svn: 76161
* Relax the assertion in ASTLocation's ctor: if the decl is not the immediateZhongxing Xu2009-07-172-5/+11
| | | | | | | | | parent of the stmt, find the immediate parent for the stmt. This is because sometimes we cannot get the immediate decl of the stmt when creating the ASTLocation. We can only get a parent of the stmt. llvm-svn: 76159
* CallGraph:Zhongxing Xu2009-07-172-6/+14
| | | | | | | | - add IfStmt visitor. - print information only when a function has callee. Otherwise its ASTContext map is NULL. llvm-svn: 76156
* Fixup indentation of rest of switch statement to match llvm codingMike Stump2009-07-171-690/+667
| | | | | | | conventions. Also reflowed comments and removed spaces at end of lines and fixed up 80 col violations. llvm-svn: 76140
* Replaced Type::getAsLValueReferenceType(), Type::getAsRValueReferenceType(), ↵Ted Kremenek2009-07-1737-250/+155
| | | | | | Type::getAsMemberPointerType(), Type::getAsTagType(), and Type::getAsRecordType() with their Type::getAs<XXX> equivalents. llvm-svn: 76139
* If we are not doing a Debug build, no need for the debugging print methods.Argyrios Kyrtzidis2009-07-171-2/+6
| | | | llvm-svn: 76138
* ObjCCategoryImplDecl and ObjCImplementation do not derive directly from ↵Argyrios Kyrtzidis2009-07-173-16/+14
| | | | | | | | DeclContext but from a new abstract ObjCImplDecl. Reflect this change on the "DeclContext hierarchy". llvm-svn: 76137
* Check whether the IdentifierInfo is null, before using it.Argyrios Kyrtzidis2009-07-171-0/+3
| | | | llvm-svn: 76136
* Make noreturn functions alter the CFG.Mike Stump2009-07-172-5/+47
| | | | llvm-svn: 76133
* Replace Type::getAsReferenceType() with Type::getAs<ReferenceType>().Ted Kremenek2009-07-1710-42/+23
| | | | llvm-svn: 76132
* Update cf_returns_retained/ns_returns_retained examples to use __has_feature.Ted Kremenek2009-07-171-2/+10
| | | | llvm-svn: 76130
* Update test case to use '__has_feature' macro.Ted Kremenek2009-07-171-10/+17
| | | | llvm-svn: 76129
* Some more ?: for Obj-C tests.Daniel Dunbar2009-07-161-0/+27
| | | | llvm-svn: 76125
* Fix unused variable warnings (with -Asserts)Daniel Dunbar2009-07-161-0/+1
| | | | llvm-svn: 76112
* ir-gen for --/++ operators of objc object pointersFariborz Jahanian2009-07-162-1/+38
| | | | | | in 32bit abi. llvm-svn: 76109
* Add more testing of ?: for Obj-C object types.Daniel Dunbar2009-07-161-0/+50
| | | | llvm-svn: 76108
* [llvm up] Add support for '#' component of QA_OVERRIDE_GCC3_OPTIONS.Daniel Dunbar2009-07-162-12/+28
| | | | | | - This silences the output about how command line arguments are being changed. llvm-svn: 76107
* Add extra print for --time-tests output.Daniel Dunbar2009-07-161-0/+1
| | | | llvm-svn: 76104
* Hook in s390x stuff into clangAnton Korobeynikov2009-07-162-0/+146
| | | | llvm-svn: 76099
* Add member template 'Type::getAs<T>', which converts a Type* to a respective T*.Ted Kremenek2009-07-1634-229/+214
| | | | | | | | | | | | | | | | | | | | | This method is intended to eventually replace the individual Type::getAsXXXType<> methods. The motivation behind this change is twofold: 1) Reduce redundant implementations of Type::getAsXXXType() methods. Most of them are basically copy-and-paste. 2) By centralizing the implementation of the getAs<Type> logic we can more smoothly move over to Doug Gregor's proposed canonical type smart pointer scheme. Along with this patch: a) Removed 'Type::getAsPointerType()'; now clients use getAs<PointerType>. b) Removed 'Type::getAsBlockPointerTypE()'; now clients use getAs<BlockPointerType>. llvm-svn: 76098
* Move the source-level CFG from libAST to libAnalysis.Ted Kremenek2009-07-1613-11/+10
| | | | llvm-svn: 76092
* Add 'clang-wpa' to the CMake-based build.Ted Kremenek2009-07-162-0/+20
| | | | llvm-svn: 76091
* Update for LLVM API change.Owen Anderson2009-07-161-5/+5
| | | | llvm-svn: 76090
* Diagnose ++/-- op on objc pointers inFariborz Jahanian2009-07-162-0/+17
| | | | | | nonfragile abi, instead of crashing. llvm-svn: 76088
* use CreateRuntimeVariable to get __CFConstantStringClassReferenceChris Lattner2009-07-161-11/+6
| | | | | | | instead of doing it manually (which might end up getting auto-renamed), fixing a FIXME. rdar://7065446 llvm-svn: 76079
* Cleanup a couple loops and improve a comment (based on feedback from Fariborz).Steve Naroff2009-07-162-7/+12
| | | | llvm-svn: 76078
* Remove ASTContext::isObjCObjectPointerType().Steve Naroff2009-07-1615-70/+27
| | | | | | Convert all clients to use the new predicate on Type. llvm-svn: 76076
* codegen string literals using private linkage now like llvm-gcc, eliminatingChris Lattner2009-07-165-41/+22
| | | | | | some target hooks. llvm-svn: 75895
* Unbreak build?Daniel Dunbar2009-07-161-1/+1
| | | | llvm-svn: 75887
* Update CMake file.Ted Kremenek2009-07-161-0/+1
| | | | llvm-svn: 75885
* Move RegionStoreManager over to using newTed Kremenek2009-07-165-68/+59
| | | | | | | | ValueManager::makeArrayIndex()/convertArrayIndex() methods. This handles yet another crash case when reasoning about array indices of different bitwidth and signedness. llvm-svn: 75884
* Two changes:Ted Kremenek2009-07-164-20/+45
| | | | | | | | | | | | | (1) Moved the SValuator object from GRExprEngine to ValueManager. This allows ValueManager to use the SValuator when creating SVals. (2) Added ValueManager::makeArrayIndex() and ValueManager::convertToArrayIndex(), two SVal creation methods that will help RegionStoreManager always have a consistent set of SVals with the same integer size and type when reasoning about array indices. llvm-svn: 75882
* Generate error on declaration containing 'static' and '__attribute__((weak))'Fariborz Jahanian2009-07-163-0/+17
| | | | | | Patch by Ryan Flynn llvm-svn: 75879
* update makefile.Zhongxing Xu2009-07-161-1/+1
| | | | llvm-svn: 75878
* add copyright comments.Zhongxing Xu2009-07-161-0/+14
| | | | llvm-svn: 75877
* Enable. Now the LLVM dwarfwriter does not print extra '1' prefix in symbol ↵Devang Patel2009-07-161-2/+0
| | | | | | names (rev. 75875) llvm-svn: 75876
* Add a primitive clang whole primitive analyzer tool.Zhongxing Xu2009-07-162-0/+70
| | | | llvm-svn: 75874
* Commit the initial implementation of call graph building.Zhongxing Xu2009-07-162-0/+205
| | | | llvm-svn: 75873
* Avoid crashing for the enclosed test case.Steve Naroff2009-07-162-47/+70
| | | | | | This is fallout from the recent ObjCObjectPointerType rework. I'll work on fixing this tomorrow. llvm-svn: 75870
* Update for LLVM API change.Owen Anderson2009-07-162-2/+2
| | | | llvm-svn: 75869
* Use utility method to create 0-index into ElementRegion.Ted Kremenek2009-07-161-2/+2
| | | | llvm-svn: 75865
* Fixed a stinko which caused an ast-print test failure.Fariborz Jahanian2009-07-152-3/+2
| | | | llvm-svn: 75861
* Handle some more fallout with the conversion of using PointerType forTed Kremenek2009-07-152-2/+12
| | | | | | | | | | | | | | | Objective-C pointers to using ObjCObjectPointerType. Now the checking for 'attribute ((nonnull))' in Sema doesn't emit an error when trying to apply that attribute to a parameter that is an Objective-C pointer (this is a regression). To prevent this regression from occuring in the future, the 'nonnull.c' test was moved to test/SemaObjC and renamed 'nonnull.m'. I also enhanced the tests to show that function calls involved a NULL Objective-C pointer constant does not trigger a warning. This is consistent with GCC, but should likely be fixed. llvm-svn: 75856
* #ifdef'ed out -ast-print of destructors which causedFariborz Jahanian2009-07-151-0/+2
| | | | | | a test failure, until figuring out what caused the failure. llvm-svn: 75855
* Added ASTs to destructor decl AST for default destruction of object'sFariborz Jahanian2009-07-158-9/+123
| | | | | | base/members. llvm-svn: 75849
* Fix <rdar://problem/7062158> by having BasicStoreManager model values for ↵Ted Kremenek2009-07-152-4/+27
| | | | | | 'static' global variables. llvm-svn: 75844
* Lexically order files in CMakeLists.txt files.Ted Kremenek2009-07-157-13/+13
| | | | llvm-svn: 75832
OpenPOWER on IntegriCloud