Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename Entity::getName() to Entity::getPrintableName() to make its purpose | Zhongxing Xu | 2009-07-17 | 4 | -8/+9 |
| | | | | | | more obvious. llvm-svn: 76167 | ||||
* | As suggested by Argyrios, revert r76159 and make "FindImmediateParent" | Zhongxing Xu | 2009-07-17 | 3 | -13/+11 |
| | | | | | | a public static method of ASTLocation. llvm-svn: 76166 | ||||
* | Refactor code into a new CallExpr::getDirectCallee() method. Simplify some | Zhongxing Xu | 2009-07-17 | 4 | -24/+21 |
| | | | | | | code with the new method. llvm-svn: 76164 | ||||
* | CallGraph: add a bunch of stmt visitors. | Zhongxing Xu | 2009-07-17 | 1 | -6/+20 |
| | | | | llvm-svn: 76161 | ||||
* | Relax the assertion in ASTLocation's ctor: if the decl is not the immediate | Zhongxing Xu | 2009-07-17 | 2 | -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 Xu | 2009-07-17 | 2 | -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 coding | Mike Stump | 2009-07-17 | 1 | -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 Kremenek | 2009-07-17 | 37 | -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 Kyrtzidis | 2009-07-17 | 1 | -2/+6 |
| | | | | llvm-svn: 76138 | ||||
* | ObjCCategoryImplDecl and ObjCImplementation do not derive directly from ↵ | Argyrios Kyrtzidis | 2009-07-17 | 3 | -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 Kyrtzidis | 2009-07-17 | 1 | -0/+3 |
| | | | | llvm-svn: 76136 | ||||
* | Make noreturn functions alter the CFG. | Mike Stump | 2009-07-17 | 2 | -5/+47 |
| | | | | llvm-svn: 76133 | ||||
* | Replace Type::getAsReferenceType() with Type::getAs<ReferenceType>(). | Ted Kremenek | 2009-07-17 | 10 | -42/+23 |
| | | | | llvm-svn: 76132 | ||||
* | Update cf_returns_retained/ns_returns_retained examples to use __has_feature. | Ted Kremenek | 2009-07-17 | 1 | -2/+10 |
| | | | | llvm-svn: 76130 | ||||
* | Update test case to use '__has_feature' macro. | Ted Kremenek | 2009-07-17 | 1 | -10/+17 |
| | | | | llvm-svn: 76129 | ||||
* | Some more ?: for Obj-C tests. | Daniel Dunbar | 2009-07-16 | 1 | -0/+27 |
| | | | | llvm-svn: 76125 | ||||
* | Fix unused variable warnings (with -Asserts) | Daniel Dunbar | 2009-07-16 | 1 | -0/+1 |
| | | | | llvm-svn: 76112 | ||||
* | ir-gen for --/++ operators of objc object pointers | Fariborz Jahanian | 2009-07-16 | 2 | -1/+38 |
| | | | | | | in 32bit abi. llvm-svn: 76109 | ||||
* | Add more testing of ?: for Obj-C object types. | Daniel Dunbar | 2009-07-16 | 1 | -0/+50 |
| | | | | llvm-svn: 76108 | ||||
* | [llvm up] Add support for '#' component of QA_OVERRIDE_GCC3_OPTIONS. | Daniel Dunbar | 2009-07-16 | 2 | -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 Dunbar | 2009-07-16 | 1 | -0/+1 |
| | | | | llvm-svn: 76104 | ||||
* | Hook in s390x stuff into clang | Anton Korobeynikov | 2009-07-16 | 2 | -0/+146 |
| | | | | llvm-svn: 76099 | ||||
* | Add member template 'Type::getAs<T>', which converts a Type* to a respective T*. | Ted Kremenek | 2009-07-16 | 34 | -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 Kremenek | 2009-07-16 | 13 | -11/+10 |
| | | | | llvm-svn: 76092 | ||||
* | Add 'clang-wpa' to the CMake-based build. | Ted Kremenek | 2009-07-16 | 2 | -0/+20 |
| | | | | llvm-svn: 76091 | ||||
* | Update for LLVM API change. | Owen Anderson | 2009-07-16 | 1 | -5/+5 |
| | | | | llvm-svn: 76090 | ||||
* | Diagnose ++/-- op on objc pointers in | Fariborz Jahanian | 2009-07-16 | 2 | -0/+17 |
| | | | | | | nonfragile abi, instead of crashing. llvm-svn: 76088 | ||||
* | use CreateRuntimeVariable to get __CFConstantStringClassReference | Chris Lattner | 2009-07-16 | 1 | -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 Naroff | 2009-07-16 | 2 | -7/+12 |
| | | | | llvm-svn: 76078 | ||||
* | Remove ASTContext::isObjCObjectPointerType(). | Steve Naroff | 2009-07-16 | 15 | -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, eliminating | Chris Lattner | 2009-07-16 | 5 | -41/+22 |
| | | | | | | some target hooks. llvm-svn: 75895 | ||||
* | Unbreak build? | Daniel Dunbar | 2009-07-16 | 1 | -1/+1 |
| | | | | llvm-svn: 75887 | ||||
* | Update CMake file. | Ted Kremenek | 2009-07-16 | 1 | -0/+1 |
| | | | | llvm-svn: 75885 | ||||
* | Move RegionStoreManager over to using new | Ted Kremenek | 2009-07-16 | 5 | -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 Kremenek | 2009-07-16 | 4 | -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 Jahanian | 2009-07-16 | 3 | -0/+17 |
| | | | | | | Patch by Ryan Flynn llvm-svn: 75879 | ||||
* | update makefile. | Zhongxing Xu | 2009-07-16 | 1 | -1/+1 |
| | | | | llvm-svn: 75878 | ||||
* | add copyright comments. | Zhongxing Xu | 2009-07-16 | 1 | -0/+14 |
| | | | | llvm-svn: 75877 | ||||
* | Enable. Now the LLVM dwarfwriter does not print extra '1' prefix in symbol ↵ | Devang Patel | 2009-07-16 | 1 | -2/+0 |
| | | | | | | names (rev. 75875) llvm-svn: 75876 | ||||
* | Add a primitive clang whole primitive analyzer tool. | Zhongxing Xu | 2009-07-16 | 2 | -0/+70 |
| | | | | llvm-svn: 75874 | ||||
* | Commit the initial implementation of call graph building. | Zhongxing Xu | 2009-07-16 | 2 | -0/+205 |
| | | | | llvm-svn: 75873 | ||||
* | Avoid crashing for the enclosed test case. | Steve Naroff | 2009-07-16 | 2 | -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 Anderson | 2009-07-16 | 2 | -2/+2 |
| | | | | llvm-svn: 75869 | ||||
* | Use utility method to create 0-index into ElementRegion. | Ted Kremenek | 2009-07-16 | 1 | -2/+2 |
| | | | | llvm-svn: 75865 | ||||
* | Fixed a stinko which caused an ast-print test failure. | Fariborz Jahanian | 2009-07-15 | 2 | -3/+2 |
| | | | | llvm-svn: 75861 | ||||
* | Handle some more fallout with the conversion of using PointerType for | Ted Kremenek | 2009-07-15 | 2 | -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 caused | Fariborz Jahanian | 2009-07-15 | 1 | -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's | Fariborz Jahanian | 2009-07-15 | 8 | -9/+123 |
| | | | | | | base/members. llvm-svn: 75849 | ||||
* | Fix <rdar://problem/7062158> by having BasicStoreManager model values for ↵ | Ted Kremenek | 2009-07-15 | 2 | -4/+27 |
| | | | | | | 'static' global variables. llvm-svn: 75844 | ||||
* | Lexically order files in CMakeLists.txt files. | Ted Kremenek | 2009-07-15 | 7 | -13/+13 |
| | | | | llvm-svn: 75832 |