| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
| |
For example, adding the default system include paths in clients is now as
simple as
InitHeaderSearch init(headers);
init.AddDefaultSystemIncludePaths(langopts);
init.Realize();
llvm-svn: 55174
|
|
|
|
|
|
| |
patch contributed by Benjamin Stiglitz!
llvm-svn: 55170
|
|
|
|
|
|
|
|
| |
to "id".
This fixes <rdar://problem/6163088> clang ObjC rewriter: @synchronized ([foo class]) {} does not cast properly.
llvm-svn: 55118
|
|
|
|
|
|
|
|
| |
the source locations of the sync expression (since it may have been rewritten.
Fixes <rdar://problem/6156363> clang ObjC rewriter: rewriting attached file causes assertion failure: invalid FileID
llvm-svn: 54986
|
|
|
|
| |
llvm-svn: 54973
|
|
|
|
|
|
|
|
|
|
|
| |
ImplicitCastExpr and ExplicitCastExpr derive from a common base class (CastExpr):
Expr
-> CastExpr
-> ExplicitCastExpr
-> ImplicitCastExpr
llvm-svn: 54955
|
|
|
|
| |
llvm-svn: 54872
|
|
|
|
| |
llvm-svn: 54871
|
|
|
|
| |
llvm-svn: 54864
|
|
|
|
| |
llvm-svn: 54861
|
|
|
|
|
|
| |
This also helps the eventual distcc project.
llvm-svn: 54858
|
|
|
|
| |
llvm-svn: 54774
|
|
|
|
|
|
|
|
|
| |
- Wired to -fnext-runtime and -fgnu-runtime options.
- Defaults to GNU, no autoselection for NeXT.
Emit NeXT OBJC_IMAGE_INFO marker.
llvm-svn: 54651
|
|
|
|
|
|
|
|
|
|
|
| |
- Maps to LangOptions.Exceptions
- Currently always off, should autoselect based on language.
Update CodeGen to set unwind attribute on functions definitions based
on LangOptions.Exceptions.
- Still need to set attributes appropriately on calls.
llvm-svn: 54643
|
|
|
|
|
|
|
|
| |
- Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and
SourceLocation.h)
- Move ASTContext constructor into implementation
llvm-svn: 54627
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Move FormatError() from TextDiagnostic up to DiagClient, remove now
empty class TextDiagnostic
* Make DiagClient optional for Diagnostic
This fixes the following problems:
* -html-diags (and probably others) does now output the same set of
warnings as console clang does
* nothing crashes if one forgets to call setHeaderSearch() on
TextDiagnostic
* some code duplication is removed
llvm-svn: 54620
|
|
|
|
|
|
| |
This happened because seralization was done in the constructor, and at that time the TranslationUnit is no longer valid.
llvm-svn: 54618
|
|
|
|
| |
llvm-svn: 54605
|
|
|
|
| |
llvm-svn: 54590
|
|
|
|
|
|
| |
HandleTranslationUnit instead of the destructor.
llvm-svn: 54513
|
|
|
|
|
|
|
|
|
|
|
| |
responsibility of the client.
The motivation is that clients may either:
(a) query the ASTConsumer object after AST parsing to collect data/etc.
(b) reuse the ASTConsumer.
llvm-svn: 54502
|
|
|
|
| |
llvm-svn: 54478
|
|
|
|
| |
llvm-svn: 54477
|
|
|
|
|
|
| |
HTMLDiagnosticClient until after we have created the Preprocessor object.
llvm-svn: 54472
|
|
|
|
|
|
| |
prevent unexpected surprises later on.
llvm-svn: 54469
|
|
|
|
|
|
|
|
| |
attached file
While this is a safe rewriter fix, there is still a need for some discussion (see report for more info).
llvm-svn: 54412
|
|
|
|
|
|
| |
there
llvm-svn: 54383
|
|
|
|
|
|
| |
__CFConstantStringClassReference[];" should be extern "C"
llvm-svn: 54367
|
|
|
|
|
|
| |
one line
llvm-svn: 54365
|
|
|
|
|
|
| |
ASTConsumer layers on top of LLVMCodeGen (another existing ASTConsumer) to emit bitcode files to disk. This layering takes this logic out of clang.cpp and puts it directly into the ASTConsumer interface. The benefit is that now --emit-llvm works with both serialized ASTs and regular source files.
llvm-svn: 54364
|
|
|
|
|
|
| |
input file, rewriter inserts #define on same line as closing brace
llvm-svn: 54363
|
|
|
|
|
|
| |
ActOnDeclarator.
llvm-svn: 54353
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- ActOnDeclarator now takes an additional parameter which is the
AsmLabel if used. Its unfortunate that this bubbles up this high,
but we cannot just lump it in as an attribute without mistakenly
*accepting* it as an attribute.
- The actual asm-label itself is, however, encoded as an AsmLabelAttr
on the FunctionDecl.
- Slightly improved parser error recovery on malformed asm-labels.
- CodeGen support still missing...
llvm-svn: 54339
|
|
|
|
|
|
| |
when in -fobjc-gc-only mode.
llvm-svn: 54319
|
|
|
|
|
|
|
| |
- Just added prints for all the action functions. Ideally this would
be extended to print all the information for the actions.
llvm-svn: 54259
|
|
|
|
| |
llvm-svn: 54181
|
|
|
|
|
|
| |
<rdar://problem/6108127> clang ObjC rewriter: no translation of id <proto>
llvm-svn: 54163
|
|
|
|
| |
llvm-svn: 54106
|
|
|
|
| |
llvm-svn: 54020
|
|
|
|
|
|
|
| |
everything up front into a vector. This makes it easier to scan around
the stream when needed.
llvm-svn: 54019
|
|
|
|
|
|
|
|
| |
and throw.
This fixes <rdar://problem/5988388> clang ObjC rewriter: mystery 'w' inserted in exception throw.
llvm-svn: 54017
|
|
|
|
|
|
|
|
| |
This fixes a critical rewriter bug (<rdar://problem/6096760> clang ObjC rewriter: 'self' not expected value in class method called with 'super').
Also added a couple FIXME's since I'm not happy with my fix to Sema. It would be nicer if the super handling for class/instance messages was the same (based on PreDefinedExpr).
llvm-svn: 53994
|
|
|
|
|
|
|
|
| |
preprocessor options in ccc."
Patch by Zhongxing Xu!
llvm-svn: 53976
|
|
|
|
|
|
| |
header files.
llvm-svn: 53965
|
|
|
|
| |
llvm-svn: 53942
|
|
|
|
|
|
| |
GRExprEngineInternalChecks.cpp.
llvm-svn: 53909
|
|
|
|
| |
llvm-svn: 53877
|
|
|
|
|
|
| |
simplifying code along the way and fixing a problem and memory leak or two.
llvm-svn: 53876
|
|
|
|
|
|
|
|
| |
single statement.
Fixes <rdar://problem/6084870> clang ObjC rewriter: for-in enumeration in 1 line produces output with error.
llvm-svn: 53858
|
|
|
|
|
|
|
| |
various objc lists over to it. First up, the protocol list
on ObjCInterfaceDecl.
llvm-svn: 53856
|