summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Let StoreManager do different cast on arrays. BasicStore will just keep it ↵Zhongxing Xu2008-10-234-2/+15
| | | | | | intact. llvm-svn: 58028
* Updated checker build.Ted Kremenek2008-10-231-1/+1
| | | | llvm-svn: 58027
* Temporarily mark this test XFAIL.Ted Kremenek2008-10-231-2/+3
| | | | llvm-svn: 58024
* Disable warning about potential leaks of returned values until we test it a ↵Ted Kremenek2008-10-231-3/+33
| | | | | | little more (lots of noise). llvm-svn: 58021
* Added a method to ElementRegion.Zhongxing Xu2008-10-231-0/+2
| | | | llvm-svn: 58020
* Add support for conversions from a pointer-to-derived to aDouglas Gregor2008-10-235-19/+243
| | | | | | | | | | | | pointer-to-base. Also, add overload ranking for pointer conversions (for both pointer-to-void and derived-to-base pointer conversions). Note that we do not yet diagnose derived-to-base pointer conversion errors that stem from ambiguous or inacessible base classes. These aren't handled during overload resolution; rather, when the conversion is actually used we go ahead and diagnose the error. llvm-svn: 58017
* Update Xcode project. We still get a link error, however, because of an ↵Ted Kremenek2008-10-231-0/+12
| | | | | | LLVM library that isn't being linked in for CodeGen (will fix). llvm-svn: 58015
* Warn about potentially leaked objects that are returned from methods whose ↵Ted Kremenek2008-10-222-16/+90
| | | | | | names do not follow the Cocoa Memory Management guidelines. llvm-svn: 58012
* Fix <rdar://problem/6312683> clang block rewriter:Steve Naroff2008-10-221-1/+0
| | | | llvm-svn: 58011
* Restrict creation of OverloadedFunctionDecl only to C++ (it was getting used ↵Argyrios Kyrtzidis2008-10-221-1/+2
| | | | | | for invalid redeclarations on C). llvm-svn: 58008
* Fix <rdar://problem/6311947> clang on xcode (regression): error: use of ↵Steve Naroff2008-10-222-2/+35
| | | | | | | | undeclared identifier 'expandedValue'. Mea culpa: I introduced this regresson in the following 2 commits: r57529 (10/14), r57841 (10/20). llvm-svn: 58007
* Updated checker build.Ted Kremenek2008-10-221-1/+1
| | | | llvm-svn: 58005
* Remove the GraphWriter-based version of the C++ class inheritance ↵Douglas Gregor2008-10-221-89/+1
| | | | | | visualization, since it isn't being used and can't handle virtual bases properly llvm-svn: 58002
* Added GraphViz visualization of C++ inheritance hierarchies. Douglas Gregor2008-10-224-9/+305
| | | | | | | Factored the QualTypeOrdering predicate into its own header (TypeOrdering.h), now that it is used in two places. llvm-svn: 58001
* Now that DeclRefExpr accepts a NamedDecl, use a DeclRefExpr for when a ↵Argyrios Kyrtzidis2008-10-222-5/+2
| | | | | | CXXFieldDecl is referenced inside a method. llvm-svn: 58000
* Enhance reference-count checker to correctly identify CG "release" ↵Ted Kremenek2008-10-222-5/+31
| | | | | | functions. This fixes <rdar://problem/6303488>. llvm-svn: 57997
* Fix <rdar://problem/6257675> error: member reference base type ↵Steve Naroff2008-10-222-0/+39
| | | | | | | | ('NSUserDefaults *') is not a structure or union. Teach Sema::ActOnMemberReferenceExpr() to look through local category implementations associated with the class. llvm-svn: 57995
* Only create the target machine when emitting assembly.Daniel Dunbar2008-10-221-17/+17
| | | | llvm-svn: 57993
* Add representation of base classes in the AST, and verify that weDouglas Gregor2008-10-2210-36/+234
| | | | | | | | don't have duplicated direct base classes. Seriliazation of base class specifiers is not yet implemented. llvm-svn: 57991
* [LLVM up] Get rid of std::ostream usage from Backend.cppDaniel Dunbar2008-10-221-18/+4
| | | | llvm-svn: 57990
* Add support for assembler-with-cpp (preprocessed .S files), patch byChris Lattner2008-10-222-2/+10
| | | | | | Roman Divacky! llvm-svn: 57988
* Update server URL for checker build.Ted Kremenek2008-10-221-1/+1
| | | | llvm-svn: 57981
* QualType::isMoreQualifiedThan and isAtLeastAsQualifiedAs assert that weDouglas Gregor2008-10-223-6/+16
| | | | | | | | | aren't trying to compare with address-space qualifiers (for now). Clean up handing of DeclRefExprs in Expr::isLvalue and refactor part of the check into a static DeclCanBeLvalue. llvm-svn: 57980
* Add test case for FuncDecl and function pointer variable.Zhongxing Xu2008-10-221-0/+9
| | | | llvm-svn: 57979
* Implement ranking of standard conversion sequences by their qualificationDouglas Gregor2008-10-225-41/+170
| | | | | | | | | | | | conversions (e.g., comparing int* -> const int* against int* -> const volatile int*); see C++ 13.3.3.2p3 bullet 3. Add Sema::UnwrapSimilarPointerTypes to simplify the control flow of IsQualificationConversion and CompareQualificationConversion (and fix the handling of the int* -> volatile int* conversion in the former). llvm-svn: 57978
* Add a bunch of getLValue* methods to RegionStore.Zhongxing Xu2008-10-221-0/+54
| | | | llvm-svn: 57977
* Adjust parameter order to more natural one.Zhongxing Xu2008-10-224-9/+9
| | | | llvm-svn: 57964
* Exprs of function type is another special case for ImplicitCast.Zhongxing Xu2008-10-221-2/+2
| | | | llvm-svn: 57963
* Move Sema::GetNonReferenceType to QualType::getNonReferenceType and make it ↵Douglas Gregor2008-10-224-40/+44
| | | | | | inline llvm-svn: 57951
* some minor cleanups to ParseObjCTypeName:Chris Lattner2008-10-221-17/+12
| | | | | | | | | | 1. Remove a bogus assertion, clients other than sema can return a null pointer from actions that result in ParseTypeName returning null. 2. Remove dead RParenLoc variable. 3. Simplify control flow handling error conditions. 4. On a major failure, we should skip until ')' not until '}'. llvm-svn: 57949
* Update to use raw_ostream for PrintModulePass.Daniel Dunbar2008-10-221-6/+6
| | | | | | - Stop playing fast and loose with the std stream. llvm-svn: 57948
* Fix a thinko in the qualification-conversion check when the qualificaitons ↵Douglas Gregor2008-10-223-2/+31
| | | | | | are disjoint, and add some overloading-based tests of qualification conversions llvm-svn: 57942
* Functions can be lvalues in C++, but not modifiable lvaluesDouglas Gregor2008-10-221-1/+7
| | | | llvm-svn: 57941
* Commito, didn't mean to remove this header.Daniel Dunbar2008-10-211-0/+1
| | | | llvm-svn: 57938
* [LLVM up] Add basic -S option to clang.Daniel Dunbar2008-10-215-98/+332
| | | | | | | | | | | - Split backend related consumer out into Backend.cpp, replaces LLVMCodeGenWriter. - Structure follows llvm-gcc to some extent. - Still need to implement all the options which impact code generation and the optimization passes which llvm-gcc uses at various levels. llvm-svn: 57936
* Initial step toward supporting qualification conversions (C++ 4.4).Douglas Gregor2008-10-218-12/+182
| | | | | | | | | | | | | | | | | | | | Changes: - Sema::IsQualificationConversion determines whether we have a qualification conversion. - Sema::CheckSingleAssignment constraints now follows the C++ rules in C++, performing an implicit conversion from the right-hand side to the type of the left-hand side rather than checking based on the C notion of "compatibility". We now rely on the implicit-conversion code to determine whether the conversion can happen or not. Sema::TryCopyInitialization has an ugly reference-related hack to cope with the initialization of references, for now. - When building DeclRefExprs, strip away the reference type, since there are no expressions whose type is a reference. We'll need to do this throughout Sema. - Expr::isLvalue now permits functions to be lvalues in C++ (but not in C). llvm-svn: 57935
* Updated checker build.Ted Kremenek2008-10-211-1/+1
| | | | llvm-svn: 57931
* Add coverage of part of getPrimaryDecl that was failing prior toDaniel Dunbar2008-10-211-3/+4
| | | | | | previous commit. llvm-svn: 57930
* Fix use of dyn_cast.Daniel Dunbar2008-10-211-1/+1
| | | | llvm-svn: 57927
* Add GetModule accessor to ModuleBuilderDaniel Dunbar2008-10-212-2/+7
| | | | llvm-svn: 57924
* When conjuring symbols for compound assignments, use the promoted type to ↵Ted Kremenek2008-10-211-4/+4
| | | | | | determine if the symbolic value as a "loc::" or "nonloc::" value. llvm-svn: 57917
* Fix <rdar://problem/6257645> clang static analyzer crashes when encountering ↵Steve Naroff2008-10-211-0/+5
| | | | | | | | | blocks as objects ASTContext::isObjCObjectPointerType() needs to consider blocks as objects. Note: My previous commit was done in the test directory...as a result, this commit was necessary. llvm-svn: 57914
* Fix <rdar://problem/6257645> clang static analyzer crashes when encountering ↵Steve Naroff2008-10-211-0/+4
| | | | | | | | blocks as objects ASTContext::isObjCObjectPointerType() needs to consider blocks as objects. llvm-svn: 57913
* Cosmetic patch from João Paulo Rechi VitaDouglas Gregor2008-10-211-1/+0
| | | | llvm-svn: 57910
* Preliminary support for function overloadingDouglas Gregor2008-10-2128-64/+1704
| | | | llvm-svn: 57909
* Handle [NSAutoreleasePool addObject:] (an alternative way to add objects to ↵Ted Kremenek2008-10-211-2/+27
| | | | | | | | the current autorelease pool). Added initial code for tracking stack of autorelease pools. llvm-svn: 57908
* Update Xcode project.Ted Kremenek2008-10-211-16/+24
| | | | llvm-svn: 57907
* Fix a crasher during error recovery in Parser::ParseObjCTypeName().Steve Naroff2008-10-212-1/+14
| | | | | | Found this while fixing another unrelated radar. llvm-svn: 57904
* Fix <rdar://problem/6297052> confused in some way by embedded /* */ comments.Steve Naroff2008-10-211-2/+2
| | | | llvm-svn: 57903
* Update VC++ project files.Steve Naroff2008-10-212-1/+5
| | | | llvm-svn: 57902
OpenPOWER on IntegriCloud