Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | define __weak to null in rewritten source for | Fariborz Jahanian | 2010-01-15 | 1 | -0/+1 |
| | | | | | | -fms-extensions as well. llvm-svn: 93569 | ||||
* | Preserve type source information in explicit cast expressions. | John McCall | 2010-01-15 | 3 | -98/+70 |
| | | | | | | Patch by Enea Zaffanella. llvm-svn: 93522 | ||||
* | Do not do the block-specific rewrite when there is no block literals. | Fariborz Jahanian | 2010-01-15 | 1 | -1/+1 |
| | | | | | | Fixes radar 7546096. llvm-svn: 93519 | ||||
* | Patch to avoid duplicate declaration of byref structs | Fariborz Jahanian | 2010-01-14 | 1 | -9/+35 |
| | | | | | | | for __block variables of same name declared in multiple scopes. Fixes radar 7540194 llvm-svn: 93474 | ||||
* | Fix a bug in rewrite whereby functions using blocks put extern "C" in wrong ↵ | Fariborz Jahanian | 2010-01-14 | 1 | -2/+38 |
| | | | | | | | | place. Fixes radar 7284618. llvm-svn: 93382 | ||||
* | Add type source information for both kinds of typeof types. | John McCall | 2010-01-13 | 2 | -4/+14 |
| | | | | | | Patch by Enea Zaffanella. llvm-svn: 93344 | ||||
* | Predefine __weak attribute when doing objective-c | Fariborz Jahanian | 2010-01-13 | 2 | -4/+11 |
| | | | | | | rewriting for any target. (refixes radar 7530235). llvm-svn: 93331 | ||||
* | diagnose invalid values of -ftabstop, patch by Christian Adaker! | Chris Lattner | 2010-01-13 | 2 | -4/+12 |
| | | | | llvm-svn: 93288 | ||||
* | cc1: Factor out CompilerInstance::ExecuteAction which has the majority of the | Daniel Dunbar | 2010-01-13 | 1 | -0/+87 |
| | | | | | | | | clang -cc1 logic for running an action against a set of options. - This should make it easier to build tools that have a clang -cc1 like interface, but aren't actually part of clang -cc1. llvm-svn: 93282 | ||||
* | Improve on objective-c pointer recognition | Fariborz Jahanian | 2010-01-12 | 1 | -2/+3 |
| | | | | | | during rewrite. No functionality chang. llvm-svn: 93241 | ||||
* | Fix rewriting of MacOS sjlj based eh. | Fariborz Jahanian | 2010-01-12 | 1 | -4/+4 |
| | | | | | | Fixes radar 7522880. llvm-svn: 93219 | ||||
* | Fix rewriting for forward class declaration. | Fariborz Jahanian | 2010-01-11 | 1 | -3/+11 |
| | | | | | | (fixes radar 6969189). llvm-svn: 93201 | ||||
* | Fixup rewrite of ivars accessed via an explicit object | Fariborz Jahanian | 2010-01-11 | 1 | -2/+3 |
| | | | | | | in a function. Fixes radar 7522803. llvm-svn: 93159 | ||||
* | Silence MSVC warning. | Benjamin Kramer | 2010-01-10 | 1 | -1/+1 |
| | | | | | | RewriteObjC.cpp(4419) : warning C4804: '>' : unsafe use of type 'bool' in operation llvm-svn: 93124 | ||||
* | Generalize target weirdness handling having proper layering in mind: | Anton Korobeynikov | 2010-01-10 | 2 | -1/+7 |
| | | | | | | | | | 1. Add helper class for sema checks for target attributes 2. Add helper class for codegen of target attributes As a proof-of-concept - implement msp430's 'interrupt' attribute. llvm-svn: 93118 | ||||
* | Fix PR5982, a refacto in checking for '=' in a -D argument. | Daniel Dunbar | 2010-01-10 | 1 | -8/+5 |
| | | | | llvm-svn: 93088 | ||||
* | implement -ftabstop=width, patch by Christian Adåker | Chris Lattner | 2010-01-09 | 2 | -2/+8 |
| | | | | llvm-svn: 93078 | ||||
* | revert 91891, a workaround for PR5514. | Chris Lattner | 2010-01-09 | 1 | -2/+1 |
| | | | | llvm-svn: 93077 | ||||
* | Use MacroBuilder for TargetDefines instead of std::vector. | Benjamin Kramer | 2010-01-09 | 1 | -3/+1 |
| | | | | llvm-svn: 93058 | ||||
* | Move MacroBuilder into Frontend/Utils.h and clean it up a bit. | Benjamin Kramer | 2010-01-09 | 1 | -127/+89 |
| | | | | llvm-svn: 93057 | ||||
* | Rework InitPreprocessor to use a MacroBuilder class instead of pushing around | Benjamin Kramer | 2010-01-09 | 1 | -248/+208 |
| | | | | | | | | | | | | std::vectors. - MacroBuilder wraps a raw_ostream so it can easily write to any buffer supported by raw_ostream. - MacroBuilder's method take Twines for easy string concatenation (this was done with sprintf and temporary buffers before). - Targets still use std::vector as they don't have access to the builder. llvm-svn: 93051 | ||||
* | Switch UndefineBuiltinMacro() over to using StringRef | Kovarththanan Rajaratnam | 2010-01-09 | 1 | -2/+2 |
| | | | | llvm-svn: 93049 | ||||
* | Switch DefineBuiltinMacro() over to using StringRef | Kovarththanan Rajaratnam | 2010-01-09 | 1 | -8/+12 |
| | | | | llvm-svn: 93048 | ||||
* | improve support for dragonfly, patch by Sascha Wildner! | Chris Lattner | 2010-01-09 | 1 | -3/+3 |
| | | | | llvm-svn: 93044 | ||||
* | Use -fno-math-errno by default, and remove the IsMathErrnoDefault | Dan Gohman | 2010-01-08 | 1 | -3/+3 |
| | | | | | | targethook, which is no longer being used. This fixes PR5971. llvm-svn: 92987 | ||||
* | clang ObjC rewriter: generated code used in "for (x in y)" loop uses | Fariborz Jahanian | 2010-01-08 | 1 | -2/+6 |
| | | | | | | incorrect cast, causing compile error (fixes radar 7342867). llvm-svn: 92986 | ||||
* | Fixes a bug where we were rewriting two definitions of | Fariborz Jahanian | 2010-01-07 | 1 | -1/+2 |
| | | | | | | _objc_method (part of radar 7490408). llvm-svn: 92957 | ||||
* | Fixes a bug in my last patch (related to radar 7490331). | Fariborz Jahanian | 2010-01-07 | 1 | -1/+1 |
| | | | | llvm-svn: 92952 | ||||
* | Avoid error when convering a pointer to integer in | Fariborz Jahanian | 2010-01-07 | 1 | -1/+1 |
| | | | | | | rewriting. llvm-svn: 92925 | ||||
* | Fix rewriting of ivars. Fixes radar 7490331. | Fariborz Jahanian | 2010-01-07 | 1 | -2/+3 |
| | | | | llvm-svn: 92924 | ||||
* | Convert from char pointer to char array | Kovarththanan Rajaratnam | 2010-01-07 | 1 | -6/+6 |
| | | | | llvm-svn: 92923 | ||||
* | Fix typo: rename Rewriter::getRewritenText() -> Rewriter::getRewrittenText(). | Ted Kremenek | 2010-01-07 | 1 | -1/+1 |
| | | | | llvm-svn: 92922 | ||||
* | Tigthen scope of local char array | Kovarththanan Rajaratnam | 2010-01-07 | 1 | -1/+1 |
| | | | | llvm-svn: 92917 | ||||
* | Change ObjCContainerDecl to contain the entire range for the '@end' | Ted Kremenek | 2010-01-07 | 3 | -5/+9 |
| | | | | | | | | | | | piece of the declaration. The '@' and the 'end' are separate tokens, and require two SourceLocations to accurately track. This change was motivated because ObjCContainerDecl::getSourceRange() would previously not return the entire range of the declaration (the 'end' would be left off). llvm-svn: 92891 | ||||
* | When suggesting a typo correction for an @implementation without a | Douglas Gregor | 2010-01-06 | 1 | -0/+3 |
| | | | | | | | | | | corresponding @interface, provide a note showing which interface we're referring to. This note has the fix-it hint on it. Also, don't automatically apply fix-it hints for notes. They're meant to express fix-its that would change semantics. llvm-svn: 92870 | ||||
* | Move the allocation of designators in DesignatedInitExpr to the | Douglas Gregor | 2010-01-06 | 1 | -1/+2 |
| | | | | | | ASTContext. Fixes <rdar://problem/7495428>. llvm-svn: 92867 | ||||
* | Fixed a bug where initializer is a macro in rewrite. | Fariborz Jahanian | 2010-01-05 | 1 | -0/+1 |
| | | | | llvm-svn: 92801 | ||||
* | API support for __block variables which are also __weak. | Fariborz Jahanian | 2010-01-05 | 1 | -5/+16 |
| | | | | llvm-svn: 92755 | ||||
* | Minor clean up. | Fariborz Jahanian | 2010-01-05 | 1 | -6/+3 |
| | | | | llvm-svn: 92746 | ||||
* | Remove bogus "C" from preamble block decls. | Steve Naroff | 2010-01-05 | 1 | -2/+2 |
| | | | | llvm-svn: 92744 | ||||
* | More rewriting of __block APIs. wip. | Fariborz Jahanian | 2010-01-05 | 1 | -26/+40 |
| | | | | llvm-svn: 92742 | ||||
* | Fix <rdar://problem/7490212> clang rewriter: return of the mixed line ↵ | Steve Naroff | 2010-01-05 | 1 | -1/+3 |
| | | | | | | | | | | endings, which is related to <rdar://problem/6596843> clang ObjC rewriter: Line endings still mixed in rewrite output This fix was dropped when I integrated the 'objective-rewrite' branch. llvm-svn: 92737 | ||||
* | More rewriting of __block objective-c pointer variables. wip. | Fariborz Jahanian | 2010-01-05 | 1 | -5/+80 |
| | | | | llvm-svn: 92558 | ||||
* | Fix warnings. | Mike Stump | 2010-01-05 | 1 | -1/+2 |
| | | | | llvm-svn: 92551 | ||||
* | Remove references to 'Checker' and 'GRTransferFuncs' from | Ted Kremenek | 2010-01-05 | 1 | -8/+4 |
| | | | | | | | | | | | | GRStateManager. Having these references was an abstraction violation, as they really should only be known about GRExprEngine. This change required adding a new 'ProcessAssume' callback in GRSubEngine. GRExprEngine implements this callback by calling 'EvalAssume' on all registered Checker objects as well as the registered GRTransferFunc object. llvm-svn: 92549 | ||||
* | Remember if the AsmStmt came from Microsoft-style inline assembly code. | Mike Stump | 2010-01-04 | 2 | -0/+2 |
| | | | | llvm-svn: 92526 | ||||
* | More rewriting of __block declared objective-c/block pointers. | Fariborz Jahanian | 2010-01-04 | 1 | -16/+45 |
| | | | | | | This is wip. llvm-svn: 92501 | ||||
* | Teach Preprocessor::macro_begin/macro_end to lazily load all macro | Douglas Gregor | 2010-01-04 | 2 | -3/+61 |
| | | | | | | | | definitions from a precompiled header. This ensures that code-completion with macro names behaves the same with or without precompiled headers. llvm-svn: 92497 | ||||
* | Better coverage for -dump-record-layouts and -print-decl-contexts. | Eli Friedman | 2010-01-03 | 1 | -0/+13 |
| | | | | llvm-svn: 92441 | ||||
* | Let constraint manager inform checkers that some assumption logic has happend. | Zhongxing Xu | 2009-12-31 | 1 | -2/+2 |
| | | | | | | | | | Add new states for symbolic regions tracked by malloc checker. This enables us to do malloc checking more accurately. See test case. Based on Lei Zhang's patch and discussion. llvm-svn: 92342 |