summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Change the diagnostics that the evaluator reports to be of type NOTE.Anders Carlsson2008-11-301-11/+10
| | | | llvm-svn: 60301
* Replace the isEvaluated bool with a ShortCircuit int, making it easier to ↵Anders Carlsson2008-11-301-12/+10
| | | | | | handle recursion llvm-svn: 60300
* Pass the expression to the Error and Extension methods.Anders Carlsson2008-11-301-20/+22
| | | | llvm-svn: 60299
* Add a new variant of Evaluate and reimplement the old Evaluate in terms of ↵Anders Carlsson2008-11-301-7/+17
| | | | | | the new. llvm-svn: 60298
* General cleanup, evaluate the RHS of a logical op even if the LHS will give ↵Anders Carlsson2008-11-301-16/+25
| | | | | | us the result. llvm-svn: 60297
* EvalInfo now holds a reference to an EvalResult struct.Anders Carlsson2008-11-301-24/+14
| | | | llvm-svn: 60296
* Add support for initializing array with string literal.Zhongxing Xu2008-11-302-5/+34
| | | | | | | This fixes PR3127 http://llvm.org/bugs/show_bug.cgi?id=3127 llvm-svn: 60280
* Fix for PR2969: generate a memcpy from a constant for constant Eli Friedman2008-11-301-8/+17
| | | | | | | | initializers. llvm-gcc appears to be more aggressive, but incorrect, for constructs like "const int a[] = {1,2,3};"; that said, current optimizers will do the appropriate optimizations when safe. llvm-svn: 60270
* Minor update to CMake build system.Eli Friedman2008-11-301-0/+1
| | | | llvm-svn: 60269
* To be consistent, make the index of the ElementRegion always signed.Zhongxing Xu2008-11-291-1/+1
| | | | llvm-svn: 60248
* Implement the GNU __null extensionDouglas Gregor2008-11-296-1/+48
| | | | llvm-svn: 60235
* Switch QualType to use llvm::PointerIntPair internally to do the pointerChris Lattner2008-11-281-6/+8
| | | | | | bitmangling. llvm-svn: 60226
* Fix a serious bug.Zhongxing Xu2008-11-281-2/+3
| | | | | | | | | | | When initialized, the index of the ElementRegion was unsigned. But the index value of the ArraySubscriptExpr is signed. This inconsistency caused the value of the array element retrieved to be UnknownVal despite it was initialized to symbolic. This is only a hack. Real fix of this problem is required. llvm-svn: 60207
* Code cleanup. No functional change.Zhongxing Xu2008-11-281-3/+5
| | | | llvm-svn: 60206
* Use std::make_pair instead of std::pair's ctor.Zhongxing Xu2008-11-282-4/+3
| | | | llvm-svn: 60205
* Fix order of evaluation.Sebastian Redl2008-11-271-1/+1
| | | | llvm-svn: 60160
* Factory objects should not be temporary. It caches all objects in the set.Zhongxing Xu2008-11-271-3/+4
| | | | llvm-svn: 60151
* RegionViewMap factory is actually not used. All GDMs should use factories fromZhongxing Xu2008-11-271-2/+0
| | | | | | GDMContext. llvm-svn: 60150
* Test commit.Daniel Dunbar2008-11-271-0/+1
| | | | llvm-svn: 60147
* Add comments.Zhongxing Xu2008-11-271-0/+2
| | | | llvm-svn: 60146
* Add license comments.Zhongxing Xu2008-11-271-0/+13
| | | | llvm-svn: 60144
* Add support for pluggable components of static analyzer.Zhongxing Xu2008-11-272-3/+10
| | | | | | | | | | - Creator function pointers are saved in ManagerRegistry. - The Register* class is used to notify ManagerRegistry new module is available. - AnalysisManager queries ManagerRegistry for configurable module. Then it passes them to GRExprEngine, in turn to GRStateManager. llvm-svn: 60143
* Add implicit conversions for Objective-C qualified ids, e.g.,Douglas Gregor2008-11-271-2/+18
| | | | | | | | | | | | id<P0> The intended overloading behavior of these entities isn't entirely clear, and GCC seems to have some strange limitations (e.g., the inability to overload on id<P0> vs. id<P1>). We'll want to revisit these semantics and determine just how Objective-C++ overloading should really work. llvm-svn: 60142
* Cleanup formattingDouglas Gregor2008-11-271-4/+8
| | | | llvm-svn: 60140
* Don't complain about block pointer to void* conversionsDouglas Gregor2008-11-272-10/+3
| | | | llvm-svn: 60138
* PTHLexer now owns the Token vector.Ted Kremenek2008-11-272-23/+18
| | | | llvm-svn: 60136
* Support block pointer conversions in C++. I'm storing the test case locally ↵Douglas Gregor2008-11-271-0/+15
| | | | | | until we can enable blocks in C++ llvm-svn: 60133
* Implement implicit conversions for Objective-C specific types, e.g., Douglas Gregor2008-11-261-46/+103
| | | | | | | | | | | | converting a pointer to one Objective-C interface into a pointer to another Objective-C interface, and conversions with 'id'. The semantics seems to match GCC, although they seem somewhat ad hoc. Fixed a few cases where we assumed the C++ definition of isObjectType, but were getting the C definition, causing failures in trouble with conversions to void pointers. llvm-svn: 60130
* Attempt to unravel the if/else mess in Parser::ParseDirectDeclarator.Argyrios Kyrtzidis2008-11-261-44/+74
| | | | llvm-svn: 60124
* Code gen for aggregate-valued properties and a test case.Fariborz Jahanian2008-11-261-4/+7
| | | | llvm-svn: 60122
* Add some comments.Argyrios Kyrtzidis2008-11-262-1/+14
| | | | llvm-svn: 60119
* Implement some suggestions by Daniel:Argyrios Kyrtzidis2008-11-264-21/+28
| | | | | | | | -Change Parser::ParseCXXScopeSpecifier to MaybeParseCXXScopeSpecifier -Remove Parser::isTokenCXXScopeSpecifier and fold it into MaybeParseCXXScopeSpecifier -Rename Parser::TryAnnotateScopeToken to TryAnnotateCXXScopeToken and only allow it to be called when in C++ llvm-svn: 60117
* Removed a FIXME. Added a test case for anonymous category.Fariborz Jahanian2008-11-261-4/+4
| | | | llvm-svn: 60115
* Set default property attributes on each property.Fariborz Jahanian2008-11-263-6/+80
| | | | | | | | Implemented anonymous category (also know as continuation class) used to override main class's property attribute. This is work in propgress. llvm-svn: 60114
* Convert incomplete array types before emitting debug info for them, fixes ↵Anders Carlsson2008-11-261-2/+15
| | | | | | PR3134. llvm-svn: 60109
* Fix a minor typo in the handling of the conditional operator for Objective-C ↵Douglas Gregor2008-11-261-1/+1
| | | | | | interface pointers llvm-svn: 60096
* Tweak the new ResolveOverloadedCallFn to just return a FunctionDecl. It ↵Douglas Gregor2008-11-263-22/+22
| | | | | | makes ActOnCallExpr simpler llvm-svn: 60094
* Move the overloading logic of Sema::ActOnCallExpr to a separate functionDouglas Gregor2008-11-263-30/+56
| | | | llvm-svn: 60093
* remove debug-only assertion in the complex float evaluator as it makes some ↵Nuno Lopes2008-11-261-1/+0
| | | | | | real apps crash llvm-svn: 60069
* Only call TryAnnotateScopeToken when parsing C++.Daniel Dunbar2008-11-251-1/+2
| | | | | | | - This improves -parse-noop of Carbon.h by +2%, and I believe compensates for the majority of the performance regression in r58913. llvm-svn: 60063
* Handle returning complex types that get coerced. Fixes PR3131Anders Carlsson2008-11-251-1/+4
| | | | llvm-svn: 60058
* Use RAII objects to ensure proper destruction of expression and statement ↵Sebastian Redl2008-11-259-99/+253
| | | | | | AST nodes in the parser in most cases, even on error. llvm-svn: 60057
* Fix 80-col violations.Daniel Dunbar2008-11-251-2/+4
| | | | llvm-svn: 60051
* Refactored checking on readonly property into a method.Fariborz Jahanian2008-11-252-18/+27
| | | | llvm-svn: 60050
* Patch to allow over-riding of readonly property to Fariborz Jahanian2008-11-251-4/+18
| | | | | | a writable property in one of its category. llvm-svn: 60035
* Remove more #ifdeffed codeAnders Carlsson2008-11-251-144/+0
| | | | llvm-svn: 60033
* Remove the #ifdeffed out code.Anders Carlsson2008-11-251-241/+0
| | | | llvm-svn: 60032
* remove unused varNuno Lopes2008-11-251-1/+0
| | | | llvm-svn: 60018
* Simple parsing of exception specifications, with no semantic analysis yetDouglas Gregor2008-11-252-3/+42
| | | | llvm-svn: 60005
* Comment fix.Daniel Dunbar2008-11-251-1/+1
| | | | llvm-svn: 59997
OpenPOWER on IntegriCloud