Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Handle cast of 'ObjCObjectRegion' in StoreManager::InvalidateRegion. | Ted Kremenek | 2009-07-14 | 1 | -1/+5 | |
| | | | | llvm-svn: 75713 | |||||
* | Added a FIXME and prevent crash when listing | Fariborz Jahanian | 2009-07-14 | 1 | -5/+6 | |
| | | | | | | a dependent type in the ctor initializer-list. llvm-svn: 75712 | |||||
* | Update for LLVM API change, and contextify a bunch of related stuff. | Owen Anderson | 2009-07-14 | 20 | -815/+916 | |
| | | | | llvm-svn: 75705 | |||||
* | Fixed a bug in building ctor-initializer AST. | Fariborz Jahanian | 2009-07-14 | 1 | -2/+3 | |
| | | | | llvm-svn: 75692 | |||||
* | Remove -ftraditional option, which gcc doesn't actually support. Make | Eli Friedman | 2009-07-14 | 1 | -4/+6 | |
| | | | | | | | | using -traditional and -traditional-cpp with clang an error because it's unsupported in clang and causes a significant change in the semantics of the language. llvm-svn: 75690 | |||||
* | Revert 75648 for now. It is causing test failures. | Devang Patel | 2009-07-14 | 3 | -28/+8 | |
| | | | | llvm-svn: 75684 | |||||
* | Enhance RegionStoreManager to handle 'Retrieve's from SymbolicRegions. We ↵ | Ted Kremenek | 2009-07-14 | 1 | -2/+8 | |
| | | | | | | do this by silently wrapping the region with an ElementRegion. This fixes the failures in misc-ps-region-store.m. llvm-svn: 75679 | |||||
* | fix fallout of the LLVM codegen switching to formatted_raw_ostream. | Chris Lattner | 2009-07-14 | 1 | -6/+11 | |
| | | | | llvm-svn: 75675 | |||||
* | Tweak pretty-printing of CompoundVal to make it more useful for debugging. | Ted Kremenek | 2009-07-14 | 1 | -2/+2 | |
| | | | | llvm-svn: 75672 | |||||
* | Build AST for default ctor-initializer when constructor has | Fariborz Jahanian | 2009-07-14 | 2 | -2/+3 | |
| | | | | | | out of line definition. llvm-svn: 75668 | |||||
* | Support data members of array type in default | Fariborz Jahanian | 2009-07-14 | 1 | -1/+3 | |
| | | | | | | ctor-initializer AST build. llvm-svn: 75662 | |||||
* | Moved a FIXME to where it was meant to be. | Fariborz Jahanian | 2009-07-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 75651 | |||||
* | Introduce Type::isAnyPointerType() and convert all clients (suggested by Chris). | Steve Naroff | 2009-07-14 | 5 | -28/+13 | |
| | | | | | | I don't love the name, however it simplifies the code and is a worthwhile change. If/when we come up with a better name, we can do a search/replace. llvm-svn: 75650 | |||||
* | Patch to build AST for ctor's initializer list according to | Fariborz Jahanian | 2009-07-14 | 4 | -1/+86 | |
| | | | | | | semantics of order of construction [class.init]. llvm-svn: 75649 | |||||
* | [llvm up] adjust to match mainline. | Chris Lattner | 2009-07-14 | 1 | -3/+4 | |
| | | | | llvm-svn: 75647 | |||||
* | Rename RecordLayout.h to ASTRecordLayout.h | Anders Carlsson | 2009-07-14 | 9 | -9/+7 | |
| | | | | llvm-svn: 75641 | |||||
* | Revert r75614 which depend on r75610 (for LLVM), which was reverted. | Daniel Dunbar | 2009-07-14 | 1 | -4/+3 | |
| | | | | | | | --- Reverse-merging r75614 into '.': U lib/CodeGen/CGDebugInfo.cpp llvm-svn: 75639 | |||||
* | Add a "TypeSpecStartLoc" to FieldDecl. Patch contributed by Enea Zaffanella. | Steve Naroff | 2009-07-14 | 6 | -9/+17 | |
| | | | | | Note: One day, it might be useful to consider adding this info to DeclGroup (as the comments in FunctionDecl/VarDecl suggest). For now, I think this works fine. I considered moving this to ValueDecl (a common ancestor of FunctionDecl/VarDecl/FieldDecl), however this would add overhead to EnumConstantDecl (which would burn memory and isn't necessary). llvm-svn: 75635 | |||||
* | Fix the build | Alisdair Meredith | 2009-07-14 | 1 | -2/+6 | |
| | | | | llvm-svn: 75627 | |||||
* | Basic support for C++0x unicode types. Support for literals will follow in ↵ | Alisdair Meredith | 2009-07-14 | 15 | -4/+86 | |
| | | | | | | an incremental patch llvm-svn: 75622 | |||||
* | use new name for method. | Chris Lattner | 2009-07-14 | 1 | -3/+4 | |
| | | | | llvm-svn: 75614 | |||||
* | In Stmt::printPretty(), pass the SourceManager to dump(). | Argyrios Kyrtzidis | 2009-07-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 75606 | |||||
* | Introduce redecl_iterator, used for iterating over the redeclarations of a ↵ | Argyrios Kyrtzidis | 2009-07-14 | 1 | -19/+19 | |
| | | | | | | | | | | | | | | | | | | | | | FunctionDecl or VarDecl. It iterates over all the redeclarations, regardless of the starting point. For example: 1) int f(); 2) int f(); 3) int f(); if you have the (2) FunctionDecl and call redecls_begin/redecls_end to iterate, you'll get this sequence: (2) (1) (3) The motivation to introduce this was that, previously, if (3) was a function definition, and you called getBody() at (2), it would not return it, since getBody() iterated over the previous declarations only, so it would only check (2) and (1). llvm-svn: 75604 | |||||
* | Introduce FunctionDecl::getLatestDeclaration() and ↵ | Argyrios Kyrtzidis | 2009-07-14 | 1 | -7/+39 | |
| | | | | | | | | | | VarDecl::getLatestDeclaration(). For multiple redeclarations they return the last one. Also, add some non const versions of methods. llvm-svn: 75603 | |||||
* | Introduce FunctionDecl::getFirstDeclaration() and ↵ | Argyrios Kyrtzidis | 2009-07-14 | 1 | -10/+18 | |
| | | | | | | | | VarDecl::getFirstDeclaration(). For multiple redeclarations they return the first one. llvm-svn: 75602 | |||||
* | For C++ overloaded operator calls, set the source location of the ↵ | Argyrios Kyrtzidis | 2009-07-14 | 1 | -1/+1 | |
| | | | | | | DeclRefExpr to the location of the operator. llvm-svn: 75600 | |||||
* | Read/write a CXXOperatorCallExpr from/to PCH files. | Argyrios Kyrtzidis | 2009-07-14 | 3 | -3/+31 | |
| | | | | llvm-svn: 75598 | |||||
* | Fixes for a couple of things: | Argyrios Kyrtzidis | 2009-07-14 | 1 | -3/+10 | |
| | | | | | | | | | - Declaration context of ParmVarDecls (that we got from the Declarator) was not their containing function. - C++ out-of-line method definitions didn't get an access specifier. Both were exposed by a crash when emitting a C++ method to a PCH file (assert at Decl::CheckAccessDeclContext()). llvm-svn: 75597 | |||||
* | In ResolveLocationInAST, handle locations that are inside TagDecl definitions. | Argyrios Kyrtzidis | 2009-07-14 | 1 | -4/+17 | |
| | | | | llvm-svn: 75594 | |||||
* | In DeclReferenceMap, map FieldDecls to the MemberExprs that reference them. | Argyrios Kyrtzidis | 2009-07-14 | 1 | -0/+6 | |
| | | | | llvm-svn: 75593 | |||||
* | Read/write TagDecl's RBraceLoc from/to PCH files. | Argyrios Kyrtzidis | 2009-07-14 | 2 | -0/+2 | |
| | | | | llvm-svn: 75592 | |||||
* | Pass the right brace SourceLocation from the Parser to the TagDecls. | Argyrios Kyrtzidis | 2009-07-14 | 4 | -5/+8 | |
| | | | | llvm-svn: 75591 | |||||
* | Add the SourceLocation for the right brace in TagDecl. | Argyrios Kyrtzidis | 2009-07-14 | 1 | -0/+5 | |
| | | | | llvm-svn: 75590 | |||||
* | Use LLVM mangler to get mangled name for debug info entry. | Devang Patel | 2009-07-14 | 3 | -8/+27 | |
| | | | | llvm-svn: 75589 | |||||
* | Update debug info generation for ObjCObjectPointer changes. | Daniel Dunbar | 2009-07-14 | 2 | -5/+17 | |
| | | | | | | | | | - Previously this would crash on recursive types, and it was also incorrectly stripping off a level of indirection. - I'm not 100% convinced this is all correct, but it should be a monotonic improvment. llvm-svn: 75582 | |||||
* | Instead of recovering from a wrong invalidation, this patch aims to | Zhongxing Xu | 2009-07-14 | 3 | -4/+43 | |
| | | | | | | | | invalidate the region correctly. It uses the cast-to type to invalidate the region when available. To avoid invalid cast-to type like 'void*' or 'id', region store now only records non-generic casts of regions. llvm-svn: 75580 | |||||
* | Add basic checking for passing NULL to CFRetain/CFRelease, since those functions | Ted Kremenek | 2009-07-14 | 2 | -5/+84 | |
| | | | | | | | are not explicitly marked as not accepting NULL pointers. This check illustrates how we need more refactoring in the custom-check logic. llvm-svn: 75570 | |||||
* | Update for API change. | Owen Anderson | 2009-07-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 75569 | |||||
* | Tidy pretty-printing for SVals, using 'dump()' instead of 'printStdErr()', ↵ | Ted Kremenek | 2009-07-13 | 5 | -63/+43 | |
| | | | | | | and implementing operator<< support for llvm::raw_ostream. llvm-svn: 75560 | |||||
* | When pretty-printing symbolic regions, use '{' ... '}' to indicate the ↵ | Ted Kremenek | 2009-07-13 | 1 | -1/+1 | |
| | | | | | | symbol used for the region (makes it easier to read for nested regions). llvm-svn: 75550 | |||||
* | Fixes a minor bug in pretty printing of ctor defs. | Fariborz Jahanian | 2009-07-13 | 1 | -3/+2 | |
| | | | | llvm-svn: 75549 | |||||
* | Change pretty-printing API for SymExprs and MemRegions to use a naming ↵ | Ted Kremenek | 2009-07-13 | 3 | -49/+33 | |
| | | | | | | convention and style similar to other elements in Clang. llvm-svn: 75548 | |||||
* | Enhance SimpleSValuator::EvalBinOpNN to recognize the trivial case | Ted Kremenek | 2009-07-13 | 1 | -1/+20 | |
| | | | | | | | | | | | | where we are comparing a symbolic value against itself, regardless of the nature of that symbolic value. This enhancement identified a case where RegionStoreManager is not correctly symbolicating the values of the pointees of parameters. The failing test is now in 'test/Analysis/misc-ps-region-store.m', with that test file now (temporarily) marked XFAIL. llvm-svn: 75521 | |||||
* | Explicitly initialize the options array, MinGW's gcc 4.3.5 appears to have a bug | Daniel Dunbar | 2009-07-13 | 1 | -1/+5 | |
| | | | | | | in array value-initialization. llvm-svn: 75518 | |||||
* | There is no need to value initialize this array. | Daniel Dunbar | 2009-07-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 75517 | |||||
* | Remove superfluous call to getAsPointerType()... | Steve Naroff | 2009-07-13 | 1 | -2/+2 | |
| | | | | llvm-svn: 75509 | |||||
* | Sema::CheckAdditionOperands(): Use Type::getPointeeType() and remove PTy and ↵ | Steve Naroff | 2009-07-13 | 1 | -15/+12 | |
| | | | | | | OPT variables. llvm-svn: 75505 | |||||
* | add netbsd support, patch by Krister Kalfridsson! | Chris Lattner | 2009-07-13 | 1 | -0/+23 | |
| | | | | llvm-svn: 75492 | |||||
* | Added pretty-printing support for constructor definition. | Fariborz Jahanian | 2009-07-13 | 1 | -1/+41 | |
| | | | | llvm-svn: 75487 | |||||
* | - Improve comment for Type::getPointeeType(). | Steve Naroff | 2009-07-13 | 1 | -4/+0 | |
| | | | | | | | - Remove a couple redundant casts/returns. - Fix 80 column violations for all getAsStringInternal() methods. llvm-svn: 75485 |