summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Make all the 'redefinition' diagnostics more consistent, and make the Chris Lattner2008-11-234-51/+51
| | | | | | "previously defined here" diagnostics all notes. llvm-svn: 59920
* make some objc redefinition warnings more consistent: call definitions Chris Lattner2008-11-231-0/+3
| | | | | | | "definitions", not declarations. Point out the location of the original definition. llvm-svn: 59919
* Tweak duplicate category diagnostic to work like the duplicate protocol ↵Chris Lattner2008-11-231-0/+1
| | | | | | | | diagnostic. Also, point out where the previous decl was. This unxfails two tests. llvm-svn: 59918
* Convert IdentifierInfo's to be printed the same as DeclarationNames Chris Lattner2008-11-2313-58/+57
| | | | | | | | | | | | | | | | | | | | | with implicit quotes around them. This has a bunch of follow-on effects and requires tweaking to a whole lot of code. This causes a regression in two tests (xfailed) by causing it to emit things like: Line 10: duplicate interface declaration for category 'MyClass1' ('Category1') instead of: Line 10: duplicate interface declaration for category 'MyClass1(Category1)' I will fix this in a follow-up commit. As part of this, I had to start switching stuff to use ->getDeclName() instead of Decl::getName() for consistency. This is good, but I was planning to do this as an independent patch. There will be several follow-on patches to clean up some of the mess, but this patch is already too big. llvm-svn: 59917
* add support for inserting a DeclarationName into a diagnostic directlyChris Lattner2008-11-233-8/+15
| | | | | | | without calling getAsString(). This implicitly puts quotes around the name, so diagnostics need to be tweaked to accommodate this. llvm-svn: 59916
* Genericize the qualtype formating callback to support any diag argument.Chris Lattner2008-11-232-11/+13
| | | | | | No functionality change. llvm-svn: 59908
* Add support for sending QualType's directly into diags and convert twoChris Lattner2008-11-233-20/+55
| | | | | | | | | | diags over to use this. QualTypes implicitly print single quotes around them for uniformity and future extension. Doing this requires a little function pointer dance to prevent libbasic from depending on libast. llvm-svn: 59907
* Add out-of-bound memory access warning report code.Zhongxing Xu2008-11-232-4/+28
| | | | llvm-svn: 59903
* Clean up code by using utility methods.Zhongxing Xu2008-11-231-11/+7
| | | | llvm-svn: 59899
* Return false if we encounter a type we can't handle.Anders Carlsson2008-11-221-1/+2
| | | | llvm-svn: 59889
* An expression is not foldable if it can't be fully evaluated. Fixes PR3060Anders Carlsson2008-11-221-2/+4
| | | | llvm-svn: 59887
* Implemented ir-gen for 'implicit' properties using the new AST nodes.Fariborz Jahanian2008-11-226-14/+96
| | | | llvm-svn: 59886
* Case values must be evaluatedAnders Carlsson2008-11-222-21/+28
| | | | llvm-svn: 59884
* Use Expr::Evaluate for case statements. Fixes PR2525Anders Carlsson2008-11-224-17/+44
| | | | llvm-svn: 59881
* remove a dead enumChris Lattner2008-11-222-2/+0
| | | | llvm-svn: 59879
* Support for implicit property assignment. Error assigning toFariborz Jahanian2008-11-223-4/+48
| | | | | | 'implicit' property with no 'setter'. llvm-svn: 59878
* New AST node to access "implicit" setter/getter using property dor syntax.Fariborz Jahanian2008-11-229-89/+85
| | | | | | | Issuing diagnostics when assigning to read-only properties. This is work in progress. llvm-svn: 59874
OpenPOWER on IntegriCloud