summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc/clang-cc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove clang-cc tool, it has joined in unholy union with clang.Daniel Dunbar2009-12-121-339/+0
| | | | | | - tools/driver will be renamed to tools/clang at some point. llvm-svn: 91195
* Remove 'LangOpts' from Diagnostic (added in ↵Steve Naroff2009-12-051-2/+0
| | | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=90642). Simply use the 'LangOpts' member already present in TextDiagnosticPrinter. Sorry for the confusion! llvm-svn: 90664
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-051-0/+2
| | | | | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71086 Note - This commit only includes the fix for: <rdar://problem/6309338> slightly different error message format for Visual Studio. The fix for <rdar://problem/6845623> from protocol to template. is separate/forthcoming. llvm-svn: 90642
* Kill off one last exit() call.Daniel Dunbar2009-12-031-1/+1
| | | | llvm-svn: 90439
* clang-cc: Move to CompilerInvocation based command line parsing.Daniel Dunbar2009-12-031-99/+3
| | | | llvm-svn: 90426
* clang-cc: Honor -help and -version when using new style option parsing.Daniel Dunbar2009-12-031-0/+16
| | | | llvm-svn: 90422
* Add clang -cc1 -load option.Daniel Dunbar2009-12-031-1/+12
| | | | llvm-svn: 90413
* clang-cc: Add code (currently disabled) for parsing arguments using clang ↵Daniel Dunbar2009-11-301-0/+29
| | | | | | | | -cc1 functionality instead of LLVM's CommandLine. - It works and passes test suite, but I want to polish and test a wee bit more before making the switch. llvm-svn: 90128
* Eliminate CodeGenOptions::TimePasses.Daniel Dunbar2009-11-301-2/+1
| | | | llvm-svn: 90118
* Simplify.Daniel Dunbar2009-11-301-7/+5
| | | | llvm-svn: 90115
* Put CompilerInvocation testing code in clang-cc instead of clang for now, I ↵Daniel Dunbar2009-11-301-0/+82
| | | | | | | | can't bear to link all of clang into 'clang' yet. :) - Still triggered by a magic leading -cc1 argument, as before. llvm-svn: 90114
* This patch moves the frontend timer from clang-cc into CompilerInstance.Kovarththanan Rajaratnam2009-11-291-9/+1
| | | | | | | | | | | CompilerInstance already contains various objects that are used throughout the entire run. Also addresses Daniels review comments in: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20091123/024508.html llvm-svn: 90073
* Move program actions implications to clang::InitializeFrontendOptions which ↵Kovarththanan Rajaratnam2009-11-281-6/+0
| | | | | | already contains such logic. llvm-svn: 90029
* Add a missing include <cstdio>Daniel Dunbar2009-11-251-0/+1
| | | | llvm-svn: 89859
* clang-cc: Lift setForcedLangOptions out of options initialization.Daniel Dunbar2009-11-201-17/+21
| | | | llvm-svn: 89462
* Fix -Asserts warning.Daniel Dunbar2009-11-171-1/+1
| | | | llvm-svn: 89149
* Trim includes.Daniel Dunbar2009-11-161-12/+2
| | | | llvm-svn: 88982
* Store more information in HeaderSearchOptions so that its initialization is notDaniel Dunbar2009-11-161-15/+10
| | | | | | language dependent. llvm-svn: 88981
* clang-cc: Eliminate cyclic dependency in initializing CodeGenOptions.Daniel Dunbar2009-11-161-12/+5
| | | | llvm-svn: 88980
* Add TargetOptions and use it when constructing targets.Daniel Dunbar2009-11-151-26/+10
| | | | | | | | - This ended up being hard to factor, sorry for the large diff. - Some post-commit cleanup to come. llvm-svn: 88833
* Add pluggable action support to clang-cc, via -plugin command line option.Daniel Dunbar2009-11-151-6/+36
| | | | | | | | - Expects the plugin has been loaded with -load. - Using this may require disabling TOOL_NO_EXPORTS in the clang-cc Makefile, this breaks the llvm::Registry way of working (static constructors are bad, kids). This should be replaced with a "real" plugin model that has explicit plugin interfaces. llvm-svn: 88824
* Move the program action enum to FrontendOptions.Daniel Dunbar2009-11-141-98/+8
| | | | | | | | | -- ddunbar@giles:clang-cc (master)$ grep llvm::cl::opt clang-cc.cpp # Woot ddunbar@giles:clang-cc (master)$ -- llvm-svn: 88820
* clang-cc: Switch to using FrontendAction. Whee.Daniel Dunbar2009-11-141-410/+59
| | | | | | Please report any discrepancies you see in clang-cc, I'm not confident that our regression tests cover all the fun ways one can use clang-cc. llvm-svn: 88776
* Add CompilerInstance::InitializeSourceManager.Daniel Dunbar2009-11-141-32/+1
| | | | llvm-svn: 88764
* Turn -fixit it back into a mode, but make -fixit-at imply that mode this timeDaniel Dunbar2009-11-141-36/+33
| | | | | | | (instead of running it with arbitrary consumers). - Also, turn any -fixit-at lookup failure into an error. llvm-svn: 88757
* Switch -verify implementation to use VerifyDiagnosticClient.Daniel Dunbar2009-11-141-12/+7
| | | | | | - Not tested, but -verify with multiple inputs should work now. llvm-svn: 88750
* Pass Preprocessor through DiagnosticClient::BeginSourceFile.Daniel Dunbar2009-11-141-2/+3
| | | | llvm-svn: 88744
* Add CompilerInstance utility functions for creating output files.Daniel Dunbar2009-11-131-48/+16
| | | | llvm-svn: 88667
* Add output file list to CompilerInstance, so that it can track them instead ofDaniel Dunbar2009-11-131-70/+45
| | | | | | forcing all clients to do it. llvm-svn: 87103
* clang-cc: Move output file initialization closer to use.Daniel Dunbar2009-11-131-13/+12
| | | | llvm-svn: 87102
* Simplify, in anticipation of introducing explicit action instances.Daniel Dunbar2009-11-131-19/+16
| | | | llvm-svn: 87101
* Add CodeCompletion consumer to CompilerInvocation.Daniel Dunbar2009-11-131-27/+5
| | | | llvm-svn: 87100
* Rework Sema code completion interface.Daniel Dunbar2009-11-131-18/+10
| | | | | | | | | | | | | - Provide Sema in callbacks, instead of requiring it in constructor. This eliminates the need for a factory function. Clients now just pass the object to consume the results in directly. - CodeCompleteConsumer is cheap to construct, so building it whenever we are doing code completion is reasonable. Doug, please review. llvm-svn: 87099
* Add CompilerInstance::createPCHExternalASTSource.Daniel Dunbar2009-11-131-45/+2
| | | | llvm-svn: 87097
* Add CompilerInstance::has* methods for testing if the instance has a particularDaniel Dunbar2009-11-131-2/+2
| | | | | | subobject. llvm-svn: 87096
* Add ASTContext to CompilerInstance.Daniel Dunbar2009-11-131-14/+7
| | | | llvm-svn: 87095
* Add CompilerInstance::createDiagnostics, and move clang-cc to it.Daniel Dunbar2009-11-131-75/+8
| | | | | | clang-cc.cpp is now under 1k lines, if anyone is counting. llvm-svn: 87090
* Add a FIXME.Daniel Dunbar2009-11-131-0/+4
| | | | llvm-svn: 87089
* Add Preprocessor to CompilerInstance, and move clang-cc CreatePreprocessor toDaniel Dunbar2009-11-131-53/+8
| | | | | | CompilerInstance::createPreprocessor. llvm-svn: 87088
* Wherein the TargetInfo argument to Preprocessor is made 'const' and propogated.Daniel Dunbar2009-11-131-1/+1
| | | | llvm-svn: 87087
* Add {File,Source}Manager to CompilerInstance.Daniel Dunbar2009-11-131-10/+11
| | | | llvm-svn: 87079
* Add CompilerInstance, and starting moving clang-cc to it.Daniel Dunbar2009-11-131-81/+77
| | | | | | | - The design philosophy is in the CompilerInstance doxyment, if you don't agree with it now would be a good time to speak up. llvm-svn: 87078
* Move input kind identification (-x) into FrontendOptions.Daniel Dunbar2009-11-131-78/+15
| | | | llvm-svn: 87066
* Move -target-{triple,abi} options into FrontendOptions.Daniel Dunbar2009-11-131-39/+36
| | | | llvm-svn: 87051
* Move code completion options to clang-ccDaniel Dunbar2009-11-131-56/+21
| | | | llvm-svn: 87050
* Move FixItAtLocations into FrontendOptionsDaniel Dunbar2009-11-121-18/+12
| | | | llvm-svn: 87046
* clang-cc: Keep Verbose option with HeaderSearchOptions, for now.Daniel Dunbar2009-11-121-10/+6
| | | | llvm-svn: 87045
* Add FrontendOptions, and starting moving clang-cc to it.Daniel Dunbar2009-11-121-109/+67
| | | | llvm-svn: 87044
* Move CompileOptions -> CodeGenOptions, and sink it into the CodeGen library.Chandler Carruth2009-11-121-5/+5
| | | | | | This resolves the layering violation where CodeGen depended on Frontend. llvm-svn: 86998
* Disallow FIX-ITs when generating code.Daniel Dunbar2009-11-121-0/+6
| | | | llvm-svn: 86990
OpenPOWER on IntegriCloud