summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
Commit message (Collapse)AuthorAgeFilesLines
* (llvm up) If the target triple is unspecified, automatically set theDaniel Dunbar2008-10-021-1/+13
| | | | | | OS version part to that of the host on darwin. llvm-svn: 56943
* Drop code to validate OS part of target triple on darwin, too fragile.Daniel Dunbar2008-10-021-11/+0
| | | | llvm-svn: 56941
* Fix help for --suppress-system-warningsDaniel Dunbar2008-09-301-1/+1
| | | | llvm-svn: 56878
* Handle minor version numbers in __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__Chris Lattner2008-09-301-11/+6
| | | | | | like "10.3.9" llvm-svn: 56873
* Finish handling of -mmacosx-version-min. If you now do something like:Chris Lattner2008-09-301-26/+73
| | | | | | | | clang -mmacosx-version-min=10.4.9 ... you'll end up with a target triple like "i686-apple-darwin8.9". llvm-svn: 56871
* start handling 'mmacosx-version-min', this is not complete yet.Chris Lattner2008-09-301-10/+40
| | | | llvm-svn: 56828
* Add driver support for invoking block rewriter.Steve Naroff2008-09-181-0/+6
| | | | | | Also tweaked the create function to take an explicit output file. llvm-svn: 56305
* Add --suppress-system-warnings (on by default, use =0 to disable)Daniel Dunbar2008-09-121-0/+8
| | | | | | | | | - For investigating warnings in system headers / builtins. - Currently also enables the behavior that allows silent redefinition of types in system headers. Conceptually these are separate but I didn't feel it was worth two options (or changing LangOptions). llvm-svn: 56163
* LangOptions.C99 should be false in C++.Argyrios Kyrtzidis2008-09-111-0/+5
| | | | llvm-svn: 56092
* Following gcc's behavior, only enable trigraphs if '-trigraphs' or '-ansi' isTed Kremenek2008-09-031-4/+19
| | | | | | specified, or -std is set to a conforming mode. llvm-svn: 55738
* Added Ubigraph visualization for the static analyzer (this is pretty alpha ↵Ted Kremenek2008-08-271-5/+9
| | | | | | quality). llvm-svn: 55442
* Moved HTMLDiagnostics to lib/Driver.Zhongxing Xu2008-08-241-1/+1
| | | | llvm-svn: 55274
* Add TargetInfo::useNeXTRuntimeAsDefaultDaniel Dunbar2008-08-231-4/+4
| | | | | | | | - Used to autoselect runtime when neither -fnext-runtime nor -fgnu-runtime is specified. - Default impl is false, all darwin targets set it to true. llvm-svn: 55231
* 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
* 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-111-0/+1
| | | | | | | | - 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-101-5/+4
| | | | | | | | | | | | | | | | * 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
* 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
* add a libDriver, for now only move the text diangostics stuff from Driver to ↵Nico Weber2008-08-051-4/+15
| | | | | | there llvm-svn: 54383
* Refactored driver logic for CodeGen into LLVMCodeGenWriter. This ↵Ted Kremenek2008-08-051-52/+5
| | | | | | 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
* "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
* Prevent clang from emitting output when input has errorsDaniel Dunbar2008-07-181-0/+6
| | | | | | | | + test case <rdar://problem/6080040> http://llvm.org/bugs/show_bug.cgi?id=2280 llvm-svn: 53756
* Provide an "Analysis Scope" for Analyses so checks can either be run on code ↵Ted Kremenek2008-07-151-1/+1
| | | | | | declarations (bodies) or Objective-C @implementation blocks. llvm-svn: 53584
* Break off declaration of Analysis enum into Analyses.def. The driver options inTed Kremenek2008-07-141-15/+4
| | | | | | | | | | | | clang.cpp now #include these definitions to create the command line options, and AnalysisConsumer #includes this file to generate the switch statement to create actions. Renamed -check-objc-methodsigs to -warn-objc-methodsigs. The "missing -dealloc" check is now optional: -warn-objc-missing-dealloc llvm-svn: 53575
* Add new check: -check-objc-methodsigs. This check scans methods inTed Kremenek2008-07-111-0/+2
| | | | | | | | | ObjCImplementationDecls and sees if a ancestor class defines a method with the same selector but with a different type signature. Right now it just compares return types, and mainly looks at differences in primitive values. The checking will be expanded in the future. llvm-svn: 53482
* add gentoo stable gcc headers path so that all tests pass here (CPATH isnt ↵Nuno Lopes2008-07-051-0/+4
| | | | | | enough..) llvm-svn: 53143
* Moved logic for -dump-cfg and -view-cfg into AnalysisConsumer.Ted Kremenek2008-07-021-12/+3
| | | | | | Renamed -dump-cfg to -cfg-dump, and -view-cfg to -cfg-view. This naming better matches the same options for asts (e.g. -ast-dump). llvm-svn: 53041
* Move -dump-live-variables logic to AnalysisConsumer.Ted Kremenek2008-07-021-6/+2
| | | | llvm-svn: 53039
* Move logic for "-checker-simple" to the new AnalysisConsumer interface.Ted Kremenek2008-07-021-10/+4
| | | | llvm-svn: 53028
* Migrated driver logic for running the CF retain/release checker over to the ↵Ted Kremenek2008-07-021-8/+2
| | | | | | new AnalysisConsumer interface. llvm-svn: 53002
* Added AnalysisConsumer, a meta-level ASTConsumer class to drive variousTed Kremenek2008-07-021-14/+25
| | | | | | | | | | | | | | | | | | analyses. This potentially is the primordial origins of a Clang-equivalent "PassManager". The new AnalysisConsumer interface allows multiple analyses to be run from a single invocation of Clang. Migrated the logic of "-warn-dead-stores" and "-warn-uninit-values" to use the new AnalysisConsumer interface. The new interface results in a significant code reduction to incorporate an analysis into the Driver. Updated a test case to (correctly) acknowledge that it contains a dead store (this check wasn't being performed because it was previously masked by -warn-uninit-values). llvm-svn: 52996
* Make clang work on 32 bit powerpc linux.Matthijs Kooijman2008-06-261-0/+4
| | | | | | Patch by Nick Lewycky! llvm-svn: 52777
* Patch by Anders Bergh:Ted Kremenek2008-06-241-0/+19
| | | | | | | | | | 'There's not much to say about this patch, it just adds the Arch Linux gcc 4.3.1 header paths for i686 and amd64. The patch was generated using "svn diff" with clang at revision 52660. The paths aren't distribution-specific, so they should work for all Linux distributions using the default(?) names like "i686-pc-linux-gnu".' llvm-svn: 52665
* Allow -parse-noop -verify options to be used together.Argyrios Kyrtzidis2008-06-131-0/+3
| | | | llvm-svn: 52249
* Use a common SourceManager when processing multiple files. This allows us ↵Ted Kremenek2008-06-061-4/+10
| | | | | | to cache the contents of source files already loaded from disk. llvm-svn: 52066
* Fix crash when running with multiple source files. This can be improved.Ted Kremenek2008-06-061-0/+6
| | | | llvm-svn: 52032
* Moved LangOptions from TranslationUnit to ASTContext. This induced a ↵Ted Kremenek2008-06-041-4/+4
| | | | | | variety of cleanups in some ASTConsumers. llvm-svn: 51943
* Correctly preserve the order between -F and -I options.Ted Kremenek2008-05-311-6/+16
| | | | llvm-svn: 51803
* Use llvm::cl::desc for description of the -Wimplicit-function-declaration ↵Ted Kremenek2008-05-301-2/+2
| | | | | | | | option. Patch by Holger Schurig! llvm-svn: 51774
* Implement support for -w, which silences all warnings. PR2384.Chris Lattner2008-05-291-0/+4
| | | | llvm-svn: 51683
* Update driver include paths to work on darwin10.Ted Kremenek2008-05-221-0/+12
| | | | llvm-svn: 51431
* make #if 0 code compile, even though it still isn't very useful.Chris Lattner2008-05-091-1/+1
| | | | llvm-svn: 50920
* Added -g command line options to clang for generating source level debug ↵Sanjiv Gupta2008-05-081-1/+8
| | | | | | information. This patch currently enables generation of line number debug information (stoppoints) and region begin/end debug information. The new files CGDebugInfo.h and CGDebugInfo.cpp implements the debug info manager class CGDebugInfo. llvm-svn: 50848
* Remove the ending "." from clang options descriptions.Sanjiv Gupta2008-05-081-23/+23
| | | | llvm-svn: 50847
* start implementation of a macro rewriter, this is currently just stubbed out.Chris Lattner2008-05-081-2/+10
| | | | llvm-svn: 50845
* Add support for -Wimplicit-function-declaration, rdar://5907433Chris Lattner2008-05-051-0/+7
| | | | llvm-svn: 50672
OpenPOWER on IntegriCloud