summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Turn -fixit it back into a mode, but make -fixit-at imply that mode this timeDaniel Dunbar2009-11-142-41/+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 clang-cc option "--analyzer-experimental-internal-checks". ThisTed Kremenek2009-11-131-0/+5
| | | | | | | option enables new "internal" checks that will eventually be turned on by default but still require broader testing. llvm-svn: 88671
* 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-133-124/+102
| | | | llvm-svn: 87066
* Add clang-cc option "-analyzer-experimental-checks" to enable experimental ↵Ted Kremenek2009-11-131-4/+9
| | | | | | path-sensitive checks. The idea is to separate "barely working" or "skunkworks" checks from ones that should always run. Later we need more fine-grain checker control. llvm-svn: 87053
* Move -target-{triple,abi} options into FrontendOptions.Daniel Dunbar2009-11-132-39/+46
| | | | llvm-svn: 87051
* Move code completion options to clang-ccDaniel Dunbar2009-11-132-58/+40
| | | | llvm-svn: 87050
* Move FixItAtLocations into FrontendOptionsDaniel Dunbar2009-11-122-18/+17
| | | | llvm-svn: 87046
* clang-cc: Keep Verbose option with HeaderSearchOptions, for now.Daniel Dunbar2009-11-123-12/+9
| | | | llvm-svn: 87045
* Add FrontendOptions, and starting moving clang-cc to it.Daniel Dunbar2009-11-123-113/+143
| | | | llvm-svn: 87044
* Move CompileOptions -> CodeGenOptions, and sink it into the CodeGen library.Chandler Carruth2009-11-123-16/+16
| | | | | | 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
* clang-cc: Coalesce frontend options further.Daniel Dunbar2009-11-121-89/+78
| | | | llvm-svn: 86988
* Move warning options into DiagnosticOptions.Daniel Dunbar2009-11-122-26/+25
| | | | llvm-svn: 86968
* Move dump-build-information option into DiagnosticOptions.Daniel Dunbar2009-11-122-21/+20
| | | | llvm-svn: 86966
* clang-cc: Factor CreateDiagnosticEngine out of main.Daniel Dunbar2009-11-121-36/+50
| | | | llvm-svn: 86963
* clang-cc: -fixit is actually option, not an action, although its use with nonDaniel Dunbar2009-11-121-5/+5
| | | | | | -fsyntax-only is probably untested. llvm-svn: 86962
* Simplify.Daniel Dunbar2009-11-121-9/+0
| | | | llvm-svn: 86961
* Move TokenCache option to PreprocessorOptions.Daniel Dunbar2009-11-122-16/+21
| | | | llvm-svn: 86940
* Switch PTHManager to using diagnostics for most errors.Daniel Dunbar2009-11-121-3/+1
| | | | | | Also, always give errors on a token-cache PTH failure. llvm-svn: 86939
* Simplify.Daniel Dunbar2009-11-121-31/+9
| | | | llvm-svn: 86938
* clang-cc: Refactor ParseInputFollow to clearly split on the two primary cases,Daniel Dunbar2009-11-121-100/+110
| | | | | | | when we are running an AST consumer and when we are just running the preprocessor or parser alone. llvm-svn: 86937
* clang-cc: Factor ReadPCHFile out of ProcessInputFile.Daniel Dunbar2009-11-121-32/+40
| | | | llvm-svn: 86936
* Simplify.Daniel Dunbar2009-11-121-10/+6
| | | | llvm-svn: 86935
* clang-cc: Unify InitializeSourceManager calls.Daniel Dunbar2009-11-121-29/+10
| | | | llvm-svn: 86934
* clang-cc: Move non-Consumer action handling to common location, to expose ↵Daniel Dunbar2009-11-121-58/+70
| | | | | | the massive amount of redundancy we have introduced through blind copy-and-paste. llvm-svn: 86922
* Fix PCH/preprocess test to be more useful, and unbreak -E mode with implicitDaniel Dunbar2009-11-121-1/+13
| | | | | | PCH, which I broke. llvm-svn: 86921
* Tweak formatting.Daniel Dunbar2009-11-121-15/+11
| | | | llvm-svn: 86907
* Move AnalyzerOptions into CompilerInvocation.Daniel Dunbar2009-11-121-8/+6
| | | | llvm-svn: 86906
* Always initialize the header search object as part of InitializePreprocessor;Daniel Dunbar2009-11-111-6/+3
| | | | | | not doing this has little to no utility. llvm-svn: 86883
* Allow Preprocessor to take ownership of the HeaderSearch object. I think it ↵Daniel Dunbar2009-11-111-12/+10
| | | | | | should probably always own the header search object, but I'm not sure... llvm-svn: 86882
* Sink AttachDependencyFileGen into CreatePreprocessor.Daniel Dunbar2009-11-111-8/+11
| | | | llvm-svn: 86881
* Add DependencyOutputOptions to wrap -M... options, and propogate toDaniel Dunbar2009-11-113-40/+46
| | | | | | CompilerInvocation and clang-cc. llvm-svn: 86880
* Simplify.Daniel Dunbar2009-11-111-13/+6
| | | | llvm-svn: 86830
OpenPOWER on IntegriCloud