Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add PreprocessorOutputOptions to CompilerInvocation, and move initialization to | Daniel Dunbar | 2009-11-11 | 3 | -25/+47 | |
| | | | | | | clang-cc/Options.cpp llvm-svn: 86828 | |||||
* | Add PreprocessorOutputOptions, for things like -dM, -C, -CC which control -E | Daniel Dunbar | 2009-11-11 | 1 | -21/+23 | |
| | | | | | | mode. llvm-svn: 86827 | |||||
* | Simplifiy target feature handling by coalescing all the logic into | Daniel Dunbar | 2009-11-11 | 3 | -49/+30 | |
| | | | | | | InitializeCompileOptions. llvm-svn: 86826 | |||||
* | Minor formatting tweaks. | Daniel Dunbar | 2009-11-11 | 1 | -10/+8 | |
| | | | | llvm-svn: 86825 | |||||
* | clang-cc: Refactor some -fixit-at handling. | Daniel Dunbar | 2009-11-11 | 1 | -32/+24 | |
| | | | | llvm-svn: 86824 | |||||
* | Allow TextDiagnosticPrinter to have optional ownership of its output stream. | Daniel Dunbar | 2009-11-11 | 1 | -13/+8 | |
| | | | | llvm-svn: 86823 | |||||
* | clang-cc: Move InitializeAnalyzerOptions into Options.cpp | Daniel Dunbar | 2009-11-11 | 3 | -100/+112 | |
| | | | | llvm-svn: 86821 | |||||
* | clang-cc: Start coalescing "frontend" options. | Daniel Dunbar | 2009-11-11 | 1 | -22/+14 | |
| | | | | llvm-svn: 86820 | |||||
* | clang-cc: Move InitializeDiagnosticOptions to Options.cpp | Daniel Dunbar | 2009-11-11 | 3 | -61/+68 | |
| | | | | llvm-svn: 86819 | |||||
* | clang-cc: Move HeaderSearchOptions to Options.cpp | Daniel Dunbar | 2009-11-11 | 3 | -161/+176 | |
| | | | | llvm-svn: 86818 | |||||
* | Turn LoggingDiagnosticClient into a more general ChainedDiagnosticClient and | Daniel Dunbar | 2009-11-11 | 1 | -42/+4 | |
| | | | | | | move to libFrontend. llvm-svn: 86817 | |||||
* | clang-cc: Move InitializeLangOptions to Options.cpp. | Daniel Dunbar | 2009-11-11 | 3 | -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 Dunbar | 2009-11-11 | 1 | -11/+2 | |
| | | | | llvm-svn: 86815 | |||||
* | clang-cc: Move InitializePreprocessorOptions to Options.cpp | Daniel Dunbar | 2009-11-11 | 3 | -78/+92 | |
| | | | | llvm-svn: 86811 | |||||
* | clang-cc: Simplify this code, now that predefines handling is uniform in the | Daniel Dunbar | 2009-11-11 | 1 | -22/+10 | |
| | | | | | | PCH/-E and PCH/not--E cases. llvm-svn: 86808 | |||||
* | Redo how PCH handles its implicit include. Instead of treating this specially in | Daniel Dunbar | 2009-11-11 | 1 | -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 Dunbar | 2009-11-11 | 1 | -10/+6 | |
| | | | | llvm-svn: 86776 | |||||
* | Add Diagnostic::Report method for reporting diagnostics without a location. | Daniel Dunbar | 2009-11-10 | 1 | -18/+11 | |
| | | | | llvm-svn: 86760 | |||||
* | PreprocessorOptions: Get rid of unnecessary 'isPTH' flag for include entries. | Daniel Dunbar | 2009-11-10 | 1 | -3/+3 | |
| | | | | llvm-svn: 86757 | |||||
* | Decouple more of clang-cc by moving ImplicitP[CT]H options into | Daniel Dunbar | 2009-11-10 | 1 | -7/+13 | |
| | | | | | | | | PreprocessorOptions. Global variables used as [in] [out] parameters considered harmful. llvm-svn: 86728 | |||||
* | Update CMake file. | Ted Kremenek | 2009-11-10 | 1 | -0/+1 | |
| | | | | llvm-svn: 86721 | |||||
* | Use #include <stdio.h> when using fprintf and stderr. | Dan Gohman | 2009-11-10 | 1 | -0/+1 | |
| | | | | llvm-svn: 86717 | |||||
* | clang-cc: Start moving "pure" option handling to Options.cpp, to separate it | Daniel Dunbar | 2009-11-10 | 3 | -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 Dunbar | 2009-11-10 | 1 | -20/+19 | |
| | | | | llvm-svn: 86710 | |||||
* | Change LangOpts initialization to directly test the code generation options, | Daniel Dunbar | 2009-11-10 | 1 | -6/+8 | |
| | | | | | | instead of reproducing their logic. llvm-svn: 86709 | |||||
* | Factor out parts of InitializeCompileOptions that depend on the LangOptions. | Daniel Dunbar | 2009-11-10 | 1 | -6/+16 | |
| | | | | llvm-svn: 86696 | |||||
* | Localize -disable-llvm-optzns handling to BackendConsumer::CreatePasses. | Daniel Dunbar | 2009-11-10 | 1 | -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 Dunbar | 2009-11-10 | 1 | -19/+25 | |
| | | | | llvm-svn: 86690 | |||||
* | Cleanup some clang-cc FIXMEs | Daniel Dunbar | 2009-11-10 | 1 | -16/+2 | |
| | | | | llvm-svn: 86686 | |||||
* | Add CompileOptions to CompilerInvocation. | Daniel Dunbar | 2009-11-10 | 1 | -8/+9 | |
| | | | | llvm-svn: 86685 | |||||
* | Simplify, following MemoryBuffer::getSTDIN API fix. | Daniel Dunbar | 2009-11-10 | 1 | -8/+0 | |
| | | | | llvm-svn: 86633 | |||||
* | Remove some if-0'd code, we can resurrect this if we ever decide to support | Daniel Dunbar | 2009-11-10 | 1 | -12/+1 | |
| | | | | | | continuing after invalid PCH loads. llvm-svn: 86631 | |||||
* | Add PreprocessorOptions to CompilerInvocation. | Daniel Dunbar | 2009-11-09 | 1 | -11/+12 | |
| | | | | llvm-svn: 86623 | |||||
* | Privatize InitHeaderSearch, this functionality is only exposed via | Daniel Dunbar | 2009-11-09 | 1 | -10/+9 | |
| | | | | | | ApplyHeaderSearchOptions now. llvm-svn: 86617 | |||||
* | Move LangOptions, HeaderSearchOptions, and the target feature map into | Daniel Dunbar | 2009-11-09 | 1 | -34/+39 | |
| | | | | | | CompilerInvocation. llvm-svn: 86612 | |||||
* | Switch Target* to Target&. | Daniel Dunbar | 2009-11-09 | 1 | -9/+9 | |
| | | | | llvm-svn: 86611 | |||||
* | Change clang-cc to expect that all inputs have the same language (so we can ↵ | Daniel Dunbar | 2009-11-09 | 1 | -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 Dunbar | 2009-11-09 | 1 | -26/+15 | |
| | | | | llvm-svn: 86608 | |||||
* | Add CompilerInvocation object, to capture all the options one needs to invoke | Daniel Dunbar | 2009-11-09 | 1 | -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 Dunbar | 2009-11-07 | 1 | -31/+23 | |
| | | | | llvm-svn: 86341 | |||||
* | Lift InitHeaderSearch::AddEnvVarPaths logic higher. | Daniel Dunbar | 2009-11-07 | 1 | -1/+18 | |
| | | | | llvm-svn: 86337 | |||||
* | Rename PreprocessorInitOptions to PreprocessorOptions for consistency, and fix | Daniel Dunbar | 2009-11-07 | 1 | -5/+5 | |
| | | | | | | | | filenames. Also, move InitializePreprocessor to Utils.h. llvm-svn: 86335 | |||||
* | Lift compiler builtin include path logic higher. | Daniel Dunbar | 2009-11-07 | 1 | -21/+26 | |
| | | | | llvm-svn: 86334 | |||||
* | Various improvements to Clang's code-completion infrastructure: | Douglas Gregor | 2009-11-07 | 1 | -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 tabls | John Thompson | 2009-11-05 | 1 | -4/+4 | |
| | | | | llvm-svn: 86183 | |||||
* | Adding -fshort-wchar option. | John Thompson | 2009-11-05 | 1 | -0/+8 | |
| | | | | llvm-svn: 86167 | |||||
* | Replace DiagnosticClient::setLangOptions with {Begin,End}SourceFile, and clarify | Daniel Dunbar | 2009-11-05 | 1 | -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 Dunbar | 2009-11-05 | 1 | -2/+1 | |
| | | | | | | Preprocessor&, and simplify. llvm-svn: 86112 | |||||
* | Remove clang-cc -html-diags option, this doesn't fit in well and we get plenty | Daniel Dunbar | 2009-11-05 | 1 | -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 Dunbar | 2009-11-05 | 1 | -8/+6 | |
| | | | | llvm-svn: 86104 |