summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Patch to remove bogus waring when a property declarationFariborz Jahanian2008-11-241-1/+1
| | | | | | is imported from a protocol into the implementation. llvm-svn: 59988
* Remove an empty if and add a reminder for when we implement C++ try-catch.Sebastian Redl2008-11-241-4/+1
| | | | llvm-svn: 59987
* Fix CFG bug where the 'increment' block for a 'for' statement would not beTed Kremenek2008-11-241-2/+10
| | | | | | | | | | properly reversed once constructed. This fixes PR 3125: http://llvm.org/bugs/show_bug.cgi?id=3125 llvm-svn: 59982
* Remove some bad characters from comment.Sebastian Redl2008-11-241-1/+1
| | | | llvm-svn: 59979
* Fix the fix of revision 59974. Now array-struct.c passes too.Sebastian Redl2008-11-241-1/+2
| | | | llvm-svn: 59975
* Fix crash of array bounds checking under 64-bit.Sebastian Redl2008-11-242-5/+14
| | | | | | There might be other, similar bugs lurking there. llvm-svn: 59974
* Remove FIXME comment.Ted Kremenek2008-11-241-1/+0
| | | | llvm-svn: 59973
* Add support for AllocaRegion extent with GDM.Zhongxing Xu2008-11-242-5/+63
| | | | | | | | | | | | One design problem that is emerging is the signed-ness problem during static analysis. Many unsigned value have to be converted into signed value because it partipates in operations with signed values. On the other hand, we cannot blindly make all values occuring in static analysis signed, because we do have cases where unsignedness is required, for example, integer overflow detection. llvm-svn: 59957
* Add utility methods.Zhongxing Xu2008-11-241-0/+9
| | | | llvm-svn: 59956
* Cleanup code with utility method.Zhongxing Xu2008-11-241-2/+2
| | | | llvm-svn: 59951
* Change a whole lot of diagnostics to take QualType's directly Chris Lattner2008-11-2413-164/+121
| | | | | | | | instead of converting them to strings first. This also fixes a bunch of minor inconsistencies in the diagnostics emitted by clang and adds a bunch of FIXME's to DiagnosticKinds.def. llvm-svn: 59948
* Rename NamedDecl::getName() to getNameAsString(). Replace a bunch of Chris Lattner2008-11-2421-137/+131
| | | | | | | | | | | uses of getName() with uses of getDeclName(). This upgrades a bunch of diags to take DeclNames instead of std::strings. This also tweaks a couple of diagnostics to be cleaner and changes CheckInitializerTypes/PerformInitializationByConstructor to pass around DeclarationNames instead of std::strings. llvm-svn: 59947
* Reimplement Expr::isConstantExpr in terms of Expr::Evaluate. This fixes PR2832.Anders Carlsson2008-11-241-0/+25
| | | | llvm-svn: 59946
* Strings are NULL terminated. So the region size should plus one.Zhongxing Xu2008-11-241-1/+1
| | | | llvm-svn: 59943
* The address of a variable is only constant if the variable has global storage.Anders Carlsson2008-11-241-1/+9
| | | | llvm-svn: 59939
* Fix bug in the constant evaluator. Fixes PR3115.Anders Carlsson2008-11-241-33/+33
| | | | llvm-svn: 59938
* Migrate some stuff from NamedDecl::getName() to Chris Lattner2008-11-248-28/+28
| | | | | | NamedDecl::getNameAsString() to make it more explicit. llvm-svn: 59937
* Rename NamedDecl::getIdentifierName() to ::getNameAsCString() and make itChris Lattner2008-11-249-47/+45
| | | | | | | | | assert if the name is not an identifier. Update callers to do the right thing and avoid this method in unsafe cases. This also fixes an objc warning that was missing a space, and migrates a couple more to taking IdentifierInfo and QualTypes instead of std::strings. llvm-svn: 59936
* simplify this code.Chris Lattner2008-11-241-1/+2
| | | | llvm-svn: 59935
* Rename Selector::getName() to Selector::getAsString(), and addChris Lattner2008-11-2416-64/+72
| | | | | | | | | | | | | a new NamedDecl::getAsString() method. Change uses of Selector::getName() to just pass in a Selector where possible (e.g. to diagnostics) instead of going through an std::string. This also adds new formatters for objcinstance and objcclass as described in the dox. llvm-svn: 59933
* Add a comment about the signedness.Zhongxing Xu2008-11-241-0/+2
| | | | llvm-svn: 59932
* Add getSize() support for StringRegion.Zhongxing Xu2008-11-242-3/+7
| | | | llvm-svn: 59930
* convert some more warnings to NOTEs.Chris Lattner2008-11-231-2/+2
| | | | llvm-svn: 59923
* remove warn_previous_declarationChris Lattner2008-11-231-7/+4
| | | | llvm-svn: 59922
* make the 'to match this' diagnostic a note.Chris Lattner2008-11-235-7/+7
| | | | llvm-svn: 59921
OpenPOWER on IntegriCloud