Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | add some helper methods for removing and replacing text, this makes the | Chris Lattner | 2008-01-31 | 1 | -45/+56 | |
| | | | | | | rewriter more robust. llvm-svn: 46622 | |||||
* | Add a new InsertText method that does the check to see if the insertion was ↵ | Chris Lattner | 2008-01-31 | 1 | -34/+40 | |
| | | | | | | | | | valid. This fixes crashes where the insertion point was in a macro. Instead of crashing, we want to emit a warning. llvm-svn: 46621 | |||||
* | move a large method out of line | Chris Lattner | 2008-01-31 | 1 | -82/+86 | |
| | | | | llvm-svn: 46620 | |||||
* | Make rewriter::inserttext return a bool to indicate if it failed. | Chris Lattner | 2008-01-31 | 1 | -51/+23 | |
| | | | | | | | Add a RewriteTest::ReplaceStmt method to factor the 'checking for rewrite failed + emitting diagnostic if so' code. llvm-svn: 46619 | |||||
* | Fix a rewriter crash when the whole body of a foreach is itself | Chris Lattner | 2008-01-31 | 1 | -8/+9 | |
| | | | | | | | rewritten, as in Sema/rewrite-foreach-6.m. Fariborz/Steve, please review this to see if it is sane. llvm-svn: 46600 | |||||
* | Abolish a bunch of Xcode inserted tabs. | Steve Naroff | 2008-01-30 | 1 | -29/+29 | |
| | | | | llvm-svn: 46566 | |||||
* | Rewriting of @synchronized. This has one FIXME in it. But this should allow ↵ | Fariborz Jahanian | 2008-01-29 | 1 | -1/+53 | |
| | | | | | | @sychronized to be rewritten. llvm-svn: 46533 | |||||
* | Modified LiveVariables to perform all of its base initialization in the ctor, | Ted Kremenek | 2008-01-29 | 1 | -21/+17 | |
| | | | | | | | | | and now we require a FunctionDecl* object so that we can also keep track of all of the ParmDecls. Modified clients of LiveVariables to conform to the new interface. llvm-svn: 46490 | |||||
* | Driver now passes the top-level FunctionDecl* to GRConstants. | Ted Kremenek | 2008-01-29 | 1 | -5/+17 | |
| | | | | | | | Refactoring: for GREngine and GRConstants, pushed references to CFG, ASTContext, and the top-level FunctionDecl into ExplodedGraphImpl. llvm-svn: 46475 | |||||
* | Add -Wno-rewrite-macros to silence the following warning when using ↵ | Steve Naroff | 2008-01-28 | 1 | -23/+34 | |
| | | | | | | | | -rewrite-test: xx.m:10:3: warning: rewriting sub-expression within a macro (may not be correct) llvm-svn: 46462 | |||||
* | Make -o work with -E, patch contributed by Shantonu Sen! | Chris Lattner | 2008-01-27 | 3 | -13/+33 | |
| | | | | llvm-svn: 46426 | |||||
* | Fix a bug recovering from broken code with a goto that Eli reported. | Chris Lattner | 2008-01-25 | 1 | -1/+1 | |
| | | | | llvm-svn: 46336 | |||||
* | Added passing "ASTContext" to both GREngine and GRConstants. | Ted Kremenek | 2008-01-24 | 1 | -3/+4 | |
| | | | | | | Added initial support for integer casting operations to GRConstants. llvm-svn: 46298 | |||||
* | Fixed a nasty bug which took a while to come up with a test case, | Fariborz Jahanian | 2008-01-23 | 1 | -0/+5 | |
| | | | | | | | | diagnose, and took even longer to fix. It has to do with rewriting of a message receiver which is an 'ivar' reference. Fix, however, is to remove a code which was not doing the right thing and no longer needed. llvm-svn: 46279 | |||||
* | add support for -Wundef. | Chris Lattner | 2008-01-23 | 1 | -1/+7 | |
| | | | | llvm-svn: 46274 | |||||
* | Problem with ObjC's type-encoding of nested structs causing infinit recursion. | Fariborz Jahanian | 2008-01-22 | 1 | -3/+7 | |
| | | | | llvm-svn: 46260 | |||||
* | Add Ubuntu 7.10 include path. | Lauro Ramos Venancio | 2008-01-21 | 1 | -0/+4 | |
| | | | | llvm-svn: 46233 | |||||
* | Synthesize methods with va-arg list correctly. | Fariborz Jahanian | 2008-01-21 | 1 | -0/+2 | |
| | | | | llvm-svn: 46212 | |||||
* | Fixed comment. | Fariborz Jahanian | 2008-01-19 | 1 | -1/+1 | |
| | | | | llvm-svn: 46185 | |||||
* | Fix two bugs with an @throw that doesn't have a statement. | Steve Naroff | 2008-01-19 | 1 | -1/+4 | |
| | | | | | | | - ObjCAtThrowStmt::getSourceRange() needs to check if it has a statement (and not go "boom":-) - RewriteTest::RewriteObjCThrowStmt() needs to generate refer to the current exception. llvm-svn: 46184 | |||||
* | Patch to replace #import with #include. | Fariborz Jahanian | 2008-01-19 | 1 | -27/+28 | |
| | | | | llvm-svn: 46183 | |||||
* | Insert #pragma once when rewriting a header file. | Fariborz Jahanian | 2008-01-18 | 3 | -9/+37 | |
| | | | | llvm-svn: 46155 | |||||
* | Shortened driver option for running the GR-constants analysis to --grconstants. | Ted Kremenek | 2008-01-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 46076 | |||||
* | Hooked up the GRConstants analysis to the driver. | Ted Kremenek | 2008-01-16 | 3 | -11/+11 | |
| | | | | | | | Fixed some compilation errors with GREngine that showed up during template instantiation. llvm-svn: 46074 | |||||
* | Typo. | Fariborz Jahanian | 2008-01-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 46038 | |||||
* | Added support for rewriting of continue/break statements inside ObjC2's ↵ | Fariborz Jahanian | 2008-01-15 | 1 | -6/+86 | |
| | | | | | | foreach-stmt. llvm-svn: 46037 | |||||
* | avoid pasting L + "foo" into L"foo". | Chris Lattner | 2008-01-15 | 1 | -2/+27 | |
| | | | | llvm-svn: 46000 | |||||
* | avoid token pasting between identifiers and wide strings: | Chris Lattner | 2008-01-15 | 1 | -12/+27 | |
| | | | | | | abc+L"foo" -> abc L"foo", not abcL"foo" llvm-svn: 45999 | |||||
* | Record if a compound literal expression is @ file scope. This allows us to ↵ | Steve Naroff | 2008-01-14 | 1 | -3/+3 | |
| | | | | | | | | implement C99 6.5.2.5p6. This could have been done without modifying the AST (by checking the decl type and passing the info down to isContextExpr), however we concluded this is more desirable. Bug/patch by Eli Friedman! llvm-svn: 45966 | |||||
* | Change uses of std::cerr/std::cout to llvm::Lcerr/llvm::cout, and remove | Ted Kremenek | 2008-01-14 | 2 | -20/+20 | |
| | | | | | | | | #include<iostream>. Patch provided by Sam Bishop. llvm-svn: 45962 | |||||
* | Add first pieces of support for parsing and representing | Chris Lattner | 2008-01-12 | 1 | -0/+17 | |
| | | | | | | extern "C" in C++ mode. Patch by Mike Stump! llvm-svn: 45904 | |||||
* | When forming the squigly underline for a diagnostic, make sure to | Chris Lattner | 2008-01-12 | 2 | -8/+15 | |
| | | | | | | | | | | | | | | | | | | | | | verify that the source range corresponds to the current file, not just the current line. This allows us to emit: a.c:1:44: error: invalid operands to binary expression ('double' and 'int *') double a; int *b; void f(void) { int c = a + ~ ^ instead of: a.c:1:44: error: invalid operands to binary expression ('double' and 'int *') double a; int *b; void f(void) { int c = a + ~ ~ ^ for PR1906 (note the leading ~). Thanks to Neil for noticing this. llvm-svn: 45901 | |||||
* | Avoid redefinition of __objcFastEnumerationState | Fariborz Jahanian | 2008-01-10 | 1 | -1/+4 | |
| | | | | llvm-svn: 45842 | |||||
* | add support for the GCC -include option. | Chris Lattner | 2008-01-10 | 1 | -2/+21 | |
| | | | | llvm-svn: 45810 | |||||
* | Fix some 80 col violations | Chris Lattner | 2008-01-10 | 1 | -17/+12 | |
| | | | | llvm-svn: 45808 | |||||
* | Ted apparently likes crazy whitespace at the end of line. Crush his spirit by | Chris Lattner | 2008-01-10 | 1 | -1/+1 | |
| | | | | | | removing them, fitting the file into 80 columns. :) llvm-svn: 45807 | |||||
* | Put return type of synthesize method on same line as method declaration, ↵ | Fariborz Jahanian | 2008-01-10 | 1 | -2/+2 | |
| | | | | | | space after method declaration header. llvm-svn: 45806 | |||||
* | Allow messaging expression as foreach's collection expression. | Fariborz Jahanian | 2008-01-10 | 1 | -6/+16 | |
| | | | | llvm-svn: 45793 | |||||
* | Type-cast RHS of assignment to prevent warning compiling rewritten foreach code. | Fariborz Jahanian | 2008-01-09 | 1 | -5/+11 | |
| | | | | llvm-svn: 45777 | |||||
* | Fixed a bug whereby a parethesized collection expression was not being ↵ | Fariborz Jahanian | 2008-01-09 | 1 | -1/+1 | |
| | | | | | | rewritten correctly. llvm-svn: 45776 | |||||
* | Typo fixed. | Fariborz Jahanian | 2008-01-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 45771 | |||||
* | Patch to rewrite ObjC2's foreach-stmt. | Fariborz Jahanian | 2008-01-08 | 1 | -24/+150 | |
| | | | | llvm-svn: 45760 | |||||
* | Added most of the boilerplate to the driver needed to run the graph-reachability | Ted Kremenek | 2008-01-08 | 3 | -0/+27 | |
| | | | | | | constant propagation analysis. llvm-svn: 45747 | |||||
* | Patch to start rewriting of ObjC2's foreach statement (work in progress). | Fariborz Jahanian | 2008-01-07 | 1 | -0/+39 | |
| | | | | llvm-svn: 45721 | |||||
* | Substituted all instances of the string "Objc" for "ObjC". This fixes | Ted Kremenek | 2008-01-07 | 2 | -250/+250 | |
| | | | | | | | some naming inconsistencies in the names of classes pertaining to Objective-C support in clang. llvm-svn: 45715 | |||||
* | Fix PR1897, patch by Wilhansen Li | Chris Lattner | 2008-01-04 | 1 | -0/+1 | |
| | | | | llvm-svn: 45593 | |||||
* | Compute the proper sourcerange for an CompoundLiteralExpr. | Chris Lattner | 2008-01-02 | 1 | -2/+4 | |
| | | | | llvm-svn: 45504 | |||||
* | Refactor the decl printer, patch by Mike Stump! | Chris Lattner | 2008-01-02 | 1 | -47/+52 | |
| | | | | llvm-svn: 45497 | |||||
* | Rename stats to print-stats to avoid conflicting with llvm's | Nate Begeman | 2007-12-30 | 1 | -1/+2 | |
| | | | | | | stats statistic when clang is built as a dylib. llvm-svn: 45441 | |||||
* | Don't attribute in file headers anymore. See llvmdev for the | Chris Lattner | 2007-12-29 | 15 | -30/+30 | |
| | | | | | | discussion of this change. llvm-svn: 45410 |