summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.h
Commit message (Collapse)AuthorAgeFilesLines
* Move <root>/Driver into <root>/tools/clang-cc.Daniel Dunbar2009-03-241-63/+0
| | | | | | Again, I tried to update cmake but it is untested. llvm-svn: 67605
* Implement the machinery that can process TableGenerated warning options.Sebastian Redl2009-03-061-0/+4
| | | | | | Manually write a table and some ad-hoc code to provide feature parity with the current code. llvm-svn: 66276
* Remove unused function declaration.Daniel Dunbar2008-11-111-3/+0
| | | | llvm-svn: 59024
* "One" line fix for -parse-noop failure, "id" and several other thingsDaniel Dunbar2008-10-311-1/+1
| | | | | | | | were being treated as type names for non-Objective-C files. - Other lines are just because MinimalAction didn't have access to the LangOptions. llvm-svn: 58498
* Remove unneeded CheckASTConsumer function.Daniel Dunbar2008-10-271-3/+0
| | | | | | - No functionality change. llvm-svn: 58282
* Add initial dependency file generation support. Patch by KovarththananDaniel Dunbar2008-10-241-0/+7
| | | | | | Rajaratnam, with some updates and formatting changes. llvm-svn: 58122
* Added the start of a prototype implementation of PCH based on token caching.Ted Kremenek2008-10-211-0/+2
| | | | llvm-svn: 57863
* Add a new -rewrite-test option, which is basically a Chris Lattner2008-10-121-0/+4
| | | | | | | playground to experiment with some new rewriter approaches. For now it is probably the most complex version of 'cat' ever invented. llvm-svn: 57406
* Allow -parse-noop -verify options to be used together.Argyrios Kyrtzidis2008-06-131-0/+3
| | | | llvm-svn: 52249
* make #if 0 code compile, even though it still isn't very useful.Chris Lattner2008-05-091-1/+2
| | | | llvm-svn: 50920
* start implementation of a macro rewriter, this is currently just stubbed out.Chris Lattner2008-05-081-0/+3
| | | | llvm-svn: 50845
* Make -o work with -E, patch contributed by Shantonu Sen!Chris Lattner2008-01-271-1/+1
| | | | llvm-svn: 46426
* Don't attribute in file headers anymore. See llvmdev for theChris Lattner2007-12-291-2/+2
| | | | | | discussion of this change. llvm-svn: 45410
* Interned MainFileID within SourceManager. Since SourceManager is referenced byTed Kremenek2007-12-191-4/+3
| | | | | | | | | both Preprocessor and ASTContext, we no longer need to explicitly pass MainFileID around in function calls that also pass either Preprocessor or ASTContext. This resulted in some nice cleanups in the ASTConsumers and the driver. llvm-svn: 45228
* simplify the interfaces to ProcessInputFile and InitializePreprocessorChris Lattner2007-12-151-3/+1
| | | | llvm-svn: 45060
* Moved construction of TargetInfo objects out of the DriverTed Kremenek2007-12-121-6/+0
| | | | | | | | and into the "Basic" library. TargetInfo objects are now constructed from triples by calling the static method TargetInfo::CreateTargetInfo. llvm-svn: 44940
* Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. NowTed Kremenek2007-12-111-1/+3
| | | | | | | | | | | | | | | | | | SourceManager is passed by reference, allowing the SourceManager to be associated with a specific translation unit, and not the entire execution of the driver. Modified all users of Diagnostics to comply with this new interface. Integrated SourceManager as a member variable of TargetInfo. TargetInfo will eventually be associated with a single translation unit (just like SourceManager). Made the SourceManager reference in ASTContext private. Provided accessor getSourceManager() for clients to use instead. Modified clients to comply with new interface. llvm-svn: 44878
* Modified: CreateTargetInfo(). Now takes Diagnostic* instead of Diagnostic&.Ted Kremenek2007-12-051-1/+1
| | | | | | | Modified: ctor of SerializationTest: Now takes LangOptions argument. We will eventually serialize this as well. llvm-svn: 44630
* Implemented initial support for "-triple" option to the clang driver. ThisTed Kremenek2007-12-031-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | replaces the functionality previously provided by just "-arch" (which is still supported but has different semantics). The new behavior is as follows: (1) If the user does not specify -triple: (a) If no -arch options are specified, the target triple used is the host triple (in llvm/Config/config.h). (b) If one or more -arch's are specified (and no -triple), then there is one triple for each -arch, where the specified arch is substituted for the arch in the host triple. Example: host triple = i686-apple-darwin9 command: clang -arch ppc -arch ppc64 ... triples used: ppc-apple-darwin9 ppc64-apple-darwin9 (2) The user does specify a -triple (only one allowed): (a) If no -arch options are specified, the triple specified by -triple is used. E.g clang -triple i686-apple-darwin9 (b) If one or more -arch options are specified, then the triple specified by -triple is used as the primary target, and the arch's specified by -arch are used to create secondary targets. For example: clang -triple i686-apple-darwin9 -arch ppc -arch ppc64 has the following targets: i686-apple-darwin9 (primary target) ppc-apple-darwin9 ppc64-apple-darwin9 Other changes related to the changes to the driver: - TargetInfoImpl now includes the triple string. - TargetInfo::getTargetTriple returns the triple for its primary target. - test case test/Parser/portability.c has been updated because "-arch linux" is no longer valid ("linux" is an OS, not an arch); instead we use a bogus architecture "bogusW16W16" where WCharWidth=16 and WCharAlign=16. llvm-svn: 44551
* Implement ObjC built-in types in MinimalAction.Steve Naroff2007-10-311-1/+2
| | | | | | This fixes the recent regression with selector-1.m and -parse-noop. llvm-svn: 43575
* Removed inclusion of <memory>, which is no longer needed since weTed Kremenek2007-09-261-2/+0
| | | | | | aren't used auto_ptr's anymore. llvm-svn: 42363
* Refactored driver so that any action that is implemented using anTed Kremenek2007-09-261-5/+2
| | | | | | | | | | | | | | ASTConsumer can also be verified using the diagnostics checker. From the command line, users may activate diagnostic checking using the "-verify" option. For example, "clang -verify -warn-dead-stores" checks if the warnings flagged by the dead store checker match those in the comments. Note that we still have the option "-parse-ast-check" for backwards comptability with existing test cases. This option is now equivalent to "-parse-ast -verify". llvm-svn: 42362
* Added "CheckASTConsumer", a function that generalizesTed Kremenek2007-09-251-0/+7
| | | | | | | | | | | | | "CheckDiagnostics" (used for -parse-ast-check) to check the diagnostics of any ASTConsumer. Reimplemented CheckDiagnostics to use CheckASTConsumer instead. Added driver option -warn-dead-stores-check, which checks the diagnostics generated by the DeadStores checker. This is implemented using CheckASTConsumer.111 llvm-svn: 42310
* silence VC++ warnings, patch by Hartmut KaiserChris Lattner2007-09-041-1/+1
| | | | llvm-svn: 41694
* Eliminate almost all of the redundancy Bill introduced.Chris Lattner2007-06-281-1/+4
| | | | llvm-svn: 39704
* Finally bite the bullet and make the major change: split the clang namespaceChris Lattner2007-06-151-2/+0
| | | | | | | | | | | | | out of the llvm namespace. This makes the clang namespace be a sibling of llvm instead of being a child. The good thing about this is that it makes many things unambiguous. The bad things is that many things in the llvm namespace (notably data structures like smallvector) now require an llvm:: qualifier. IMO, libsystem and libsupport should be split out of llvm into their own namespace in the future, which will fix this issue. llvm-svn: 39659
* Initial scaffolding for an -emit-llvm mode. This requires the LLVM VMCoreChris Lattner2007-05-241-0/+4
| | | | | | library to be built for the driver to link. llvm-svn: 39495
* ProcessInputFile no longer mutates LangInfo.Chris Lattner2006-11-211-1/+1
| | | | llvm-svn: 39210
* start factoring actions into two flavors: minimal and semantic actions.Chris Lattner2006-11-051-2/+2
| | | | llvm-svn: 39133
* Add Targets.cpp, which implements the -arch command line option in terms ofChris Lattner2006-10-141-0/+6
| | | | | | TargetInfo. llvm-svn: 38972
* Start adding support for printing out parser callbacks and adding ast buildingChris Lattner2006-08-171-0/+5
| | | | llvm-svn: 38933
* Fix -E mode to enter the main file *after* -E mode configures the preprocessor.Chris Lattner2006-07-291-1/+2
| | | | llvm-svn: 38784
* Implement comment saving mode: the -C and -CC options.Chris Lattner2006-07-291-2/+3
| | | | llvm-svn: 38783
* Split the -E mode printer out to a separate .cpp file.Chris Lattner2006-07-041-0/+27
llvm-svn: 38658
OpenPOWER on IntegriCloud