summaryrefslogtreecommitdiffstats
path: root/clang/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* Move most of HeaderSearch initialization to libDriver.Nico Weber2008-08-221-312/+23
| | | | | | | | | | | 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
* improve pretty printing of objc method declaration, Chris Lattner2008-08-221-4/+15
| | | | | | patch contributed by Benjamin Stiglitz! llvm-svn: 55170
* RewriteObjC::RewriteObjCSynchronizedStmt(): Make sure the sync expr is cast ↵Steve Naroff2008-08-211-3/+7
| | | | | | | | to "id". This fixes <rdar://problem/6163088> clang ObjC rewriter: @synchronized ([foo class]) {} does not cast properly. llvm-svn: 55118
* Fix crasher in RewriteObjC::RewriteObjCSynchronizedStmt(). Can't depend on ↵Steve Naroff2008-08-191-5/+7
| | | | | | | | 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
* Use raw_ostream to output an unsigned.Chris Lattner2008-08-191-27/+2
| | | | llvm-svn: 54973
* Add ExplicitCastExpr to replace the current CastExpr, and have ↵Argyrios Kyrtzidis2008-08-181-17/+20
| | | | | | | | | | | ImplicitCastExpr and ExplicitCastExpr derive from a common base class (CastExpr): Expr -> CastExpr -> ExplicitCastExpr -> ImplicitCastExpr llvm-svn: 54955
* printing with an unspecified dest means to print to stdout.Chris Lattner2008-08-171-1/+1
| | | | llvm-svn: 54872
* don't delete a variable on the stackChris Lattner2008-08-171-2/+2
| | | | llvm-svn: 54871
* simplify this code a bit more.Chris Lattner2008-08-171-15/+7
| | | | llvm-svn: 54864
* remove global variables for output stream.Chris Lattner2008-08-171-87/+69
| | | | llvm-svn: 54861
* Switch to shared raw_ostream code instead of having it be clang specific.Chris Lattner2008-08-171-101/+17
| | | | | | This also helps the eventual distcc project. llvm-svn: 54858
* Fix typo.Ted Kremenek2008-08-141-1/+1
| | | | llvm-svn: 54774
* Add LangOptions::NeXTRuntime.Daniel Dunbar2008-08-111-0/+17
| | | | | | | | | - Wired to -fnext-runtime and -fgnu-runtime options. - Defaults to GNU, no autoselection for NeXT. Emit NeXT OBJC_IMAGE_INFO marker. llvm-svn: 54651
* Add -fexceptions to DriverDaniel Dunbar2008-08-111-0/+12
| | | | | | | | | | | - 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
* More #include cleaningDaniel Dunbar2008-08-114-2/+6
| | | | | | | | - Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and SourceLocation.h) - Move ASTContext constructor into implementation llvm-svn: 54627
* * Remove isInSystemHeader() from DiagClient, move it to SourceManagerNico Weber2008-08-102-6/+8
| | | | | | | | | | | | | | | | * 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
* Do not crash with -serialize.Nico Weber2008-08-101-14/+7
| | | | | | This happened because seralization was done in the constructor, and at that time the TranslationUnit is no longer valid. llvm-svn: 54618
* rename PreDefinedExpr -> PredefinedExprChris Lattner2008-08-102-3/+3
| | | | llvm-svn: 54605
* do not serialize invalid asts. this fixes bug #2637Nico Weber2008-08-091-6/+12
| | | | llvm-svn: 54590
* Unbreak SerializationTest and the Rewriter by doing the work in ↵Ted Kremenek2008-08-082-14/+19
| | | | | | HandleTranslationUnit instead of the destructor. llvm-svn: 54513
* ParseAST now never releases the passed ASTConsumer. This is the ↵Ted Kremenek2008-08-081-8/+7
| | | | | | | | | | | 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
* Remove unneeded #includes.Ted Kremenek2008-08-071-2/+1
| | | | llvm-svn: 54478
* Micro cleanups.Ted Kremenek2008-08-071-7/+3
| | | | llvm-svn: 54477
* Fix --html-diags in driver by delaying the construction of an ↵Ted Kremenek2008-08-071-31/+33
| | | | | | HTMLDiagnosticClient until after we have created the Preprocessor object. llvm-svn: 54472
* Let LLVMCodeGenWriter forward all the methods defined in ASTConsumer, toMatthijs Kooijman2008-08-071-1/+9
| | | | | | prevent unexpected surprises later on. llvm-svn: 54469
* Fix for <rdar://problem/6113807> clang ObjC rewriter: crash rewriting ↵Steve Naroff2008-08-061-1/+3
| | | | | | | | 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
* add a libDriver, for now only move the text diangostics stuff from Driver to ↵Nico Weber2008-08-059-467/+17
| | | | | | there llvm-svn: 54383
* Finish fixing <rdar://problem/5929344> clang ObjC rewriter: "extern int ↵Steve Naroff2008-08-051-0/+4
| | | | | | __CFConstantStringClassReference[];" should be extern "C" llvm-svn: 54367
* fix crash when printing diagnostics with tokens that span through more than ↵Nuno Lopes2008-08-051-5/+8
| | | | | | one line llvm-svn: 54365
* Refactored driver logic for CodeGen into LLVMCodeGenWriter. This ↵Ted Kremenek2008-08-053-52/+87
| | | | | | 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
* Fix <rdar://problem/6108119> clang ObjC rewriter: if no newline at end of ↵Steve Naroff2008-08-051-1/+1
| | | | | | input file, rewriter inserts #define on same line as closing brace llvm-svn: 54363
* Move AsmLabel into Declarator instead of just a parameter toDaniel Dunbar2008-08-051-2/+2
| | | | | | ActOnDeclarator. llvm-svn: 54353
* Add more Parser/Sema support for GCC asm-label extension.Daniel Dunbar2008-08-051-2/+2
| | | | | | | | | | | | | - 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
* Fix regression when invoking the MissingDealloc analysis: disable this check ↵Ted Kremenek2008-08-041-0/+3
| | | | | | when in -fobjc-gc-only mode. llvm-svn: 54319
* Add more output to clang -parse-print-callbacksDaniel Dunbar2008-08-011-7/+521
| | | | | | | - Just added prints for all the action functions. Ideally this would be extended to print all the information for the actions. llvm-svn: 54259
* Fix regression in range highlighting in HTML output.Ted Kremenek2008-07-291-2/+2
| | | | llvm-svn: 54181
* Fix incomplete implementation for rewriting protocol refs.Steve Naroff2008-07-291-0/+25
| | | | | | <rdar://problem/6108127> clang ObjC rewriter: no translation of id <proto> llvm-svn: 54163
* remove some unneeded calls to getCanonicalTypeChris Lattner2008-07-261-3/+2
| | | | llvm-svn: 54106
* comment out #pragma mark and #warning directives.Chris Lattner2008-07-251-2/+21
| | | | llvm-svn: 54020
* rewrite handling of the raw token stream in -rewrite-macros to lexChris Lattner2008-07-251-29/+52
| | | | | | | everything up front into a vector. This makes it easier to scan around the stream when needed. llvm-svn: 54019
* Fix RewriteObjC::RewriteObjCThrowStmt() to respect whitespace between the @ ↵Steve Naroff2008-07-251-1/+6
| | | | | | | | and throw. This fixes <rdar://problem/5988388> clang ObjC rewriter: mystery 'w' inserted in exception throw. llvm-svn: 54017
* Fix Sema::ActOnClassMessage() to pass through the identifier for "super". Steve Naroff2008-07-241-0/+2
| | | | | | | | 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
* "This patch adds paths for Fedora 9 in clang.cpp and support for two ↵Ted Kremenek2008-07-241-0/+11
| | | | | | | | preprocessor options in ccc." Patch by Zhongxing Xu! llvm-svn: 53976
* Modified HTMLDiagnostics to also perform syntax highlighting for errors in ↵Ted Kremenek2008-07-231-13/+57
| | | | | | header files. llvm-svn: 53965
* Add prototype implementation of unused ivar check.Ted Kremenek2008-07-232-0/+8
| | | | llvm-svn: 53942
* Moved registration of basic path-sensitive checks from GRSimpleVals.cpp to ↵Ted Kremenek2008-07-221-5/+10
| | | | | | GRExprEngineInternalChecks.cpp. llvm-svn: 53909
* unindent this function by using an early exit, not functionality change.Chris Lattner2008-07-211-160/+160
| | | | llvm-svn: 53877
* move two more lists of protocols over to use ObjCList<ObjCProtocolDecl>,Chris Lattner2008-07-211-20/+16
| | | | | | simplifying code along the way and fixing a problem and memory leak or two. llvm-svn: 53876
* RewriteObjC::RewriteObjCForCollectionStmt() needs to handle bodies with a ↵Steve Naroff2008-07-211-2/+18
| | | | | | | | single statement. Fixes <rdar://problem/6084870> clang ObjC rewriter: for-in enumeration in 1 line produces output with error. llvm-svn: 53858
* introduce a new ObjCList templated class and start moving Chris Lattner2008-07-212-17/+15
| | | | | | | various objc lists over to it. First up, the protocol list on ObjCInterfaceDecl. llvm-svn: 53856
OpenPOWER on IntegriCloud