summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add PreprocessorOutputOptions to CompilerInvocation, and move initialization toDaniel Dunbar2009-11-113-25/+47
| | | | | | clang-cc/Options.cpp llvm-svn: 86828
* Add PreprocessorOutputOptions, for things like -dM, -C, -CC which control -EDaniel Dunbar2009-11-111-21/+23
| | | | | | mode. llvm-svn: 86827
* Simplifiy target feature handling by coalescing all the logic intoDaniel Dunbar2009-11-113-49/+30
| | | | | | InitializeCompileOptions. llvm-svn: 86826
* Minor formatting tweaks.Daniel Dunbar2009-11-111-10/+8
| | | | llvm-svn: 86825
* clang-cc: Refactor some -fixit-at handling.Daniel Dunbar2009-11-111-32/+24
| | | | llvm-svn: 86824
* Allow TextDiagnosticPrinter to have optional ownership of its output stream.Daniel Dunbar2009-11-111-13/+8
| | | | llvm-svn: 86823
* clang-cc: Move InitializeAnalyzerOptions into Options.cppDaniel Dunbar2009-11-113-100/+112
| | | | llvm-svn: 86821
* clang-cc: Start coalescing "frontend" options.Daniel Dunbar2009-11-111-22/+14
| | | | llvm-svn: 86820
* clang-cc: Move InitializeDiagnosticOptions to Options.cppDaniel Dunbar2009-11-113-61/+68
| | | | llvm-svn: 86819
* clang-cc: Move HeaderSearchOptions to Options.cppDaniel Dunbar2009-11-113-161/+176
| | | | llvm-svn: 86818
* Turn LoggingDiagnosticClient into a more general ChainedDiagnosticClient andDaniel Dunbar2009-11-111-42/+4
| | | | | | move to libFrontend. llvm-svn: 86817
* clang-cc: Move InitializeLangOptions to Options.cpp.Daniel Dunbar2009-11-113-477/+487
| | | | | | | Also, inline InitializeLanguageStandard into InitializeLangOptions; this code needs to be refactored but the current division doesn't make any sense. llvm-svn: 86816
* Inline some trivial functions.Daniel Dunbar2009-11-111-11/+2
| | | | llvm-svn: 86815
* clang-cc: Move InitializePreprocessorOptions to Options.cppDaniel Dunbar2009-11-113-78/+92
| | | | llvm-svn: 86811
* clang-cc: Simplify this code, now that predefines handling is uniform in theDaniel Dunbar2009-11-111-22/+10
| | | | | | PCH/-E and PCH/not--E cases. llvm-svn: 86808
* Redo how PCH handles its implicit include. Instead of treating this specially inDaniel Dunbar2009-11-111-7/+6
| | | | | | | | | | | | | | | the front-end (as far as the preprocessor goes), follow the usual logic of inserting the (original include path) name into the predefines buffer. This pushes the responsibility for handling this to PCH instead of the front-end. In PCH this requires being a little more clever when we diff the predefines buffers. Neither of these solutions are particularly great, I think what we eventually should do is something like gcc where we insert a special marker to indicate the PCH file, but then run the preprocessor as usual. This would be clearer and would allow us to drop the overly clever predefines handling. llvm-svn: 86806
* Recognize -fsyntax-only as a "consumer only" action.Daniel Dunbar2009-11-111-10/+6
| | | | llvm-svn: 86776
* Add Diagnostic::Report method for reporting diagnostics without a location.Daniel Dunbar2009-11-101-18/+11
| | | | llvm-svn: 86760
* PreprocessorOptions: Get rid of unnecessary 'isPTH' flag for include entries.Daniel Dunbar2009-11-101-3/+3
| | | | llvm-svn: 86757
* Decouple more of clang-cc by moving ImplicitP[CT]H options intoDaniel Dunbar2009-11-101-7/+13
| | | | | | | | PreprocessorOptions. Global variables used as [in] [out] parameters considered harmful. llvm-svn: 86728
* Update CMake file.Ted Kremenek2009-11-101-0/+1
| | | | llvm-svn: 86721
* Use #include <stdio.h> when using fprintf and stderr.Dan Gohman2009-11-101-0/+1
| | | | llvm-svn: 86717
* clang-cc: Start moving "pure" option handling to Options.cpp, to separate itDaniel Dunbar2009-11-103-147/+198
| | | | | | from the logic part of clang-cc, and to enforce limited scoping. llvm-svn: 86711
* clang-cc: Sink more options inside codegenopts namespace.Daniel Dunbar2009-11-101-20/+19
| | | | llvm-svn: 86710
* Change LangOpts initialization to directly test the code generation options,Daniel Dunbar2009-11-101-6/+8
| | | | | | instead of reproducing their logic. llvm-svn: 86709
* Factor out parts of InitializeCompileOptions that depend on the LangOptions.Daniel Dunbar2009-11-101-6/+16
| | | | llvm-svn: 86696
* Localize -disable-llvm-optzns handling to BackendConsumer::CreatePasses.Daniel Dunbar2009-11-101-16/+6
| | | | | | | | | | | - This is conceptually better since the only thing we want this option to do is preserve the internal module as constructed by IRgen, before running any passes. - This also fixes bugs in -disable-llvm-optzns handling with regards to debug info. llvm-svn: 86691
* clang-cc: Start sinking (CodeGen) options into namespaces to limit their scope.Daniel Dunbar2009-11-101-19/+25
| | | | llvm-svn: 86690
* Cleanup some clang-cc FIXMEsDaniel Dunbar2009-11-101-16/+2
| | | | llvm-svn: 86686
* Add CompileOptions to CompilerInvocation.Daniel Dunbar2009-11-101-8/+9
| | | | llvm-svn: 86685
* Simplify, following MemoryBuffer::getSTDIN API fix.Daniel Dunbar2009-11-101-8/+0
| | | | llvm-svn: 86633
* Remove some if-0'd code, we can resurrect this if we ever decide to supportDaniel Dunbar2009-11-101-12/+1
| | | | | | continuing after invalid PCH loads. llvm-svn: 86631
* Add PreprocessorOptions to CompilerInvocation.Daniel Dunbar2009-11-091-11/+12
| | | | llvm-svn: 86623
* Privatize InitHeaderSearch, this functionality is only exposed viaDaniel Dunbar2009-11-091-10/+9
| | | | | | ApplyHeaderSearchOptions now. llvm-svn: 86617
* Move LangOptions, HeaderSearchOptions, and the target feature map intoDaniel Dunbar2009-11-091-34/+39
| | | | | | CompilerInvocation. llvm-svn: 86612
* Switch Target* to Target&.Daniel Dunbar2009-11-091-9/+9
| | | | llvm-svn: 86611
* Change clang-cc to expect that all inputs have the same language (so we can ↵Daniel Dunbar2009-11-091-48/+79
| | | | | | only construct a single LangInfo). This matches how it is used in practice (since the compiler only it invokes it for one file at a time). llvm-svn: 86609
* (llvm up) Convert clang-cc.cpp:GetLanguage to StringSwitch.Daniel Dunbar2009-11-091-26/+15
| | | | llvm-svn: 86608
* Add CompilerInvocation object, to capture all the options one needs to invokeDaniel Dunbar2009-11-091-43/+58
| | | | | | the compiler, and start flood filling it into clang-cc. llvm-svn: 86586
* Switch clang-cc to use ApplyHeaderSearchOptions, and fix a thinko.Daniel Dunbar2009-11-071-31/+23
| | | | llvm-svn: 86341
* Lift InitHeaderSearch::AddEnvVarPaths logic higher.Daniel Dunbar2009-11-071-1/+18
| | | | llvm-svn: 86337
* Rename PreprocessorInitOptions to PreprocessorOptions for consistency, and fixDaniel Dunbar2009-11-071-5/+5
| | | | | | | | filenames. Also, move InitializePreprocessor to Utils.h. llvm-svn: 86335
* Lift compiler builtin include path logic higher.Daniel Dunbar2009-11-071-21/+26
| | | | llvm-svn: 86334
* Various improvements to Clang's code-completion infrastructure:Douglas Gregor2009-11-071-1/+31
| | | | | | | | | | | | | | - Introduce more code-completion string "chunk" kinds that describe symbols, the actual text that the user is expected to type, etc. - Make the generation of macro results optional, since it can be slow - Make code-completion accessible through the C API, marshalling the code-completion results through a temporary file (ick) to maintain process separation. The last doesn't have tests yet. llvm-svn: 86306
* Eliminate tablsJohn Thompson2009-11-051-4/+4
| | | | llvm-svn: 86183
* Adding -fshort-wchar option.John Thompson2009-11-051-0/+8
| | | | llvm-svn: 86167
* Replace DiagnosticClient::setLangOptions with {Begin,End}SourceFile, and clarifyDaniel Dunbar2009-11-051-5/+12
| | | | | | | invariants (diagnostics with source informations must occur between {Begin,End}SourceFile). llvm-svn: 86113
* Convert CreateAnalysisConsumer and friends to just take a const ↵Daniel Dunbar2009-11-051-2/+1
| | | | | | Preprocessor&, and simplify. llvm-svn: 86112
* Remove clang-cc -html-diags option, this doesn't fit in well and we get plentyDaniel Dunbar2009-11-051-25/+2
| | | | | | | | | | of coverage of this from the analyzer. If this bothers you, I can add it back in a mode where non-source diagnostics go to stderr and only source diagnostics use -html-diags, but I don't think anyone uses this. llvm-svn: 86109
* Simplify.Daniel Dunbar2009-11-051-8/+6
| | | | llvm-svn: 86104
OpenPOWER on IntegriCloud