summaryrefslogtreecommitdiffstats
path: root/clang/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* add some helper methods for removing and replacing text, this makes theChris Lattner2008-01-311-45/+56
| | | | | | rewriter more robust. llvm-svn: 46622
* Add a new InsertText method that does the check to see if the insertion was ↵Chris Lattner2008-01-311-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 lineChris Lattner2008-01-311-82/+86
| | | | llvm-svn: 46620
* Make rewriter::inserttext return a bool to indicate if it failed.Chris Lattner2008-01-311-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 Lattner2008-01-311-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 Naroff2008-01-301-29/+29
| | | | llvm-svn: 46566
* Rewriting of @synchronized. This has one FIXME in it. But this should allow ↵Fariborz Jahanian2008-01-291-1/+53
| | | | | | @sychronized to be rewritten. llvm-svn: 46533
* Modified LiveVariables to perform all of its base initialization in the ctor,Ted Kremenek2008-01-291-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 Kremenek2008-01-291-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 Naroff2008-01-281-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 Lattner2008-01-273-13/+33
| | | | llvm-svn: 46426
* Fix a bug recovering from broken code with a goto that Eli reported.Chris Lattner2008-01-251-1/+1
| | | | llvm-svn: 46336
* Added passing "ASTContext" to both GREngine and GRConstants.Ted Kremenek2008-01-241-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 Jahanian2008-01-231-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 Lattner2008-01-231-1/+7
| | | | llvm-svn: 46274
* Problem with ObjC's type-encoding of nested structs causing infinit recursion.Fariborz Jahanian2008-01-221-3/+7
| | | | llvm-svn: 46260
* Add Ubuntu 7.10 include path.Lauro Ramos Venancio2008-01-211-0/+4
| | | | llvm-svn: 46233
* Synthesize methods with va-arg list correctly.Fariborz Jahanian2008-01-211-0/+2
| | | | llvm-svn: 46212
* Fixed comment.Fariborz Jahanian2008-01-191-1/+1
| | | | llvm-svn: 46185
* Fix two bugs with an @throw that doesn't have a statement.Steve Naroff2008-01-191-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 Jahanian2008-01-191-27/+28
| | | | llvm-svn: 46183
* Insert #pragma once when rewriting a header file.Fariborz Jahanian2008-01-183-9/+37
| | | | llvm-svn: 46155
* Shortened driver option for running the GR-constants analysis to --grconstants.Ted Kremenek2008-01-161-1/+1
| | | | llvm-svn: 46076
* Hooked up the GRConstants analysis to the driver.Ted Kremenek2008-01-163-11/+11
| | | | | | | Fixed some compilation errors with GREngine that showed up during template instantiation. llvm-svn: 46074
* Typo.Fariborz Jahanian2008-01-161-1/+1
| | | | llvm-svn: 46038
* Added support for rewriting of continue/break statements inside ObjC2's ↵Fariborz Jahanian2008-01-151-6/+86
| | | | | | foreach-stmt. llvm-svn: 46037
* avoid pasting L + "foo" into L"foo".Chris Lattner2008-01-151-2/+27
| | | | llvm-svn: 46000
* avoid token pasting between identifiers and wide strings: Chris Lattner2008-01-151-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 Naroff2008-01-141-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 removeTed Kremenek2008-01-142-20/+20
| | | | | | | | #include<iostream>. Patch provided by Sam Bishop. llvm-svn: 45962
* Add first pieces of support for parsing and representing Chris Lattner2008-01-121-0/+17
| | | | | | extern "C" in C++ mode. Patch by Mike Stump! llvm-svn: 45904
* When forming the squigly underline for a diagnostic, make sure toChris Lattner2008-01-122-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 __objcFastEnumerationStateFariborz Jahanian2008-01-101-1/+4
| | | | llvm-svn: 45842
* add support for the GCC -include option.Chris Lattner2008-01-101-2/+21
| | | | llvm-svn: 45810
* Fix some 80 col violationsChris Lattner2008-01-101-17/+12
| | | | llvm-svn: 45808
* Ted apparently likes crazy whitespace at the end of line. Crush his spirit byChris Lattner2008-01-101-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 Jahanian2008-01-101-2/+2
| | | | | | space after method declaration header. llvm-svn: 45806
* Allow messaging expression as foreach's collection expression.Fariborz Jahanian2008-01-101-6/+16
| | | | llvm-svn: 45793
* Type-cast RHS of assignment to prevent warning compiling rewritten foreach code.Fariborz Jahanian2008-01-091-5/+11
| | | | llvm-svn: 45777
* Fixed a bug whereby a parethesized collection expression was not being ↵Fariborz Jahanian2008-01-091-1/+1
| | | | | | rewritten correctly. llvm-svn: 45776
* Typo fixed.Fariborz Jahanian2008-01-091-1/+1
| | | | llvm-svn: 45771
* Patch to rewrite ObjC2's foreach-stmt.Fariborz Jahanian2008-01-081-24/+150
| | | | llvm-svn: 45760
* Added most of the boilerplate to the driver needed to run the graph-reachabilityTed Kremenek2008-01-083-0/+27
| | | | | | constant propagation analysis. llvm-svn: 45747
* Patch to start rewriting of ObjC2's foreach statement (work in progress).Fariborz Jahanian2008-01-071-0/+39
| | | | llvm-svn: 45721
* Substituted all instances of the string "Objc" for "ObjC". This fixesTed Kremenek2008-01-072-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 LiChris Lattner2008-01-041-0/+1
| | | | llvm-svn: 45593
* Compute the proper sourcerange for an CompoundLiteralExpr.Chris Lattner2008-01-021-2/+4
| | | | llvm-svn: 45504
* Refactor the decl printer, patch by Mike Stump!Chris Lattner2008-01-021-47/+52
| | | | llvm-svn: 45497
* Rename stats to print-stats to avoid conflicting with llvm'sNate Begeman2007-12-301-1/+2
| | | | | | stats statistic when clang is built as a dylib. llvm-svn: 45441
* Don't attribute in file headers anymore. See llvmdev for theChris Lattner2007-12-2915-30/+30
| | | | | | discussion of this change. llvm-svn: 45410
OpenPOWER on IntegriCloud