summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc/Options.cpp
Commit message (Collapse)AuthorAgeFilesLines
* clang-cc: Move to CompilerInvocation based command line parsing.Daniel Dunbar2009-12-031-1283/+0
| | | | llvm-svn: 90426
* Change rtti/Rtti to RTTI, as it is an acronym.Mike Stump2009-12-021-2/+2
| | | | llvm-svn: 90334
* Introduce a new clang-cc option Douglas Gregor2009-12-021-0/+18
| | | | | | | | | | | | | | | | | | -remap-file=from;to which takes the file "from" and transparently replaces its contents with the contents of the file "to" from the source manager's perspective. This is the moral equivalent of cp from saved cp to from <call clang> cp saved from rm saved without all of the pesky file copying. llvm-svn: 90307
* Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too ↵Daniel Dunbar2009-11-301-1/+9
| | | | | | many) places to use this instead of using the backend -soft-float and -float-abi= options. llvm-svn: 90127
* Don't try to generate common globals for C++ files, instead of depending on ↵Daniel Dunbar2009-11-301-4/+0
| | | | | | the FE to set NoCommon, and simplify CodeGenOptions initialization. llvm-svn: 90119
* Eliminate CodeGenOptions::TimePasses.Daniel Dunbar2009-11-301-3/+1
| | | | llvm-svn: 90118
* Eliminate CodeGenOptions::SimplifyLibCalls.Daniel Dunbar2009-11-301-3/+0
| | | | llvm-svn: 90117
* Move LLVM backend options to explicit clang-cc / clang -cc1 options, which ↵Daniel Dunbar2009-11-291-0/+41
| | | | | | we then manually pass to the command line library; eventually the latter grossness should be fixed by a real API when creating the target machine. llvm-svn: 90063
* Add clang -cc1 parsing for LangOptions.Daniel Dunbar2009-11-291-9/+1
| | | | | | - This is the last major parsing piece, main FIXMEs remain. llvm-svn: 90059
* clang-cc: Tweak LangOptions parsing to make it a bit more obvious what ↵Daniel Dunbar2009-11-291-15/+15
| | | | | | depends on what. llvm-svn: 90058
* clang-cc: Change -fsigned-char=0 to -fno-unsigned-char and pass -pic-level ↵Daniel Dunbar2009-11-291-4/+3
| | | | | | using separate args. llvm-svn: 90054
* Move MainFileName option variable into CodeGenOptions instead of LangOptions.Daniel Dunbar2009-11-291-24/+24
| | | | llvm-svn: 90051
* Move program actions implications to clang::InitializeFrontendOptions which ↵Kovarththanan Rajaratnam2009-11-281-6/+9
| | | | | | already contains such logic. llvm-svn: 90029
* Simplify.Daniel Dunbar2009-11-271-28/+9
| | | | llvm-svn: 89998
* Factor out a LangStandard class and coalesce the information about the ↵Daniel Dunbar2009-11-261-95/+24
| | | | | | | | standards into LangStandards.def - I'd appreciate another pair of eyeballs to double check this. llvm-svn: 89919
* Sketch the rest of the clang -cc1 option definitions, aka fun with C-x C-(.Daniel Dunbar2009-11-241-0/+1
| | | | llvm-svn: 89721
* Add clang -cc1 parsing of analyzer options.Daniel Dunbar2009-11-221-2/+2
| | | | llvm-svn: 89629
* Pass '-mcpu' 'FOO' instead of '-mcpu=FOO'.Daniel Dunbar2009-11-201-1/+1
| | | | llvm-svn: 89498
* clang-cc: Lift setForcedLangOptions out of options initialization.Daniel Dunbar2009-11-201-5/+1
| | | | llvm-svn: 89462
* clang-cc: Remove some more llvm::cl::init arguments, by only setting values whenDaniel Dunbar2009-11-191-18/+22
| | | | | | | | the argument is given. Also, tweak Opt.Sysroot defaulting. llvm-svn: 89318
* Change -code-completion-debug-printer to -no-code-completion-debug-printer.Daniel Dunbar2009-11-191-7/+6
| | | | | | Also, tweak a few help strings and update CompilerInvocation serialization for prev change. llvm-svn: 89317
* Switch -f{builtin,math-errno,rtti} and -analyzer-purge-dead to -...no... ↵Daniel Dunbar2009-11-191-11/+9
| | | | | | variants instead of using llvm::cl::init(true) arguments. llvm-svn: 89315
* clang-cc: Remove superfluous llvm::cl::init(false) arguments.Daniel Dunbar2009-11-191-14/+7
| | | | llvm-svn: 89314
* Eliminate TargetInfo::getDefaultLangOptions, this kind of logic is better doneDaniel Dunbar2009-11-171-3/+0
| | | | | | in the driver. llvm-svn: 89073
* Move -fnext-runtime defaulting to driver (and change clang-cc default toDaniel Dunbar2009-11-171-8/+1
| | | | | | -fnext-runtime), instead of using getDefaultLangOptions. llvm-svn: 89058
* Simplify PreprocessorOptions, it doesn't need abstracted field access.Daniel Dunbar2009-11-171-7/+7
| | | | llvm-svn: 89047
* Move InitializeAnalyzerOptions for consistency.Daniel Dunbar2009-11-171-19/+18
| | | | llvm-svn: 89040
* Remove unused NoPreprocess variable.Daniel Dunbar2009-11-171-5/+0
| | | | llvm-svn: 89039
* Remove unused IsCXXAware and IgnoreSysRoots option from ↵Daniel Dunbar2009-11-171-10/+9
| | | | | | HeaderSearchOptions::Entry. llvm-svn: 89035
* Store more information in HeaderSearchOptions so that its initialization is notDaniel Dunbar2009-11-161-15/+9
| | | | | | language dependent. llvm-svn: 88981
* clang-cc: Eliminate cyclic dependency in initializing CodeGenOptions.Daniel Dunbar2009-11-161-6/+15
| | | | llvm-svn: 88980
* Add TargetOptions and use it when constructing targets.Daniel Dunbar2009-11-151-57/+36
| | | | | | | | - 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-1/+13
| | | | | | | | - 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-0/+61
| | | | | | | | | -- ddunbar@giles:clang-cc (master)$ grep llvm::cl::opt clang-cc.cpp # Woot ddunbar@giles:clang-cc (master)$ -- llvm-svn: 88820
* Turn -fixit it back into a mode, but make -fixit-at imply that mode this timeDaniel Dunbar2009-11-141-5/+0
| | | | | | | (instead of running it with arbitrary consumers). - Also, turn any -fixit-at lookup failure into an error. llvm-svn: 88757
* 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
* Move input kind identification (-x) into FrontendOptions.Daniel Dunbar2009-11-131-30/+84
| | | | 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-131-0/+10
| | | | llvm-svn: 87051
* Move code completion options to clang-ccDaniel Dunbar2009-11-131-2/+19
| | | | llvm-svn: 87050
* Move FixItAtLocations into FrontendOptionsDaniel Dunbar2009-11-121-0/+5
| | | | llvm-svn: 87046
* clang-cc: Keep Verbose option with HeaderSearchOptions, for now.Daniel Dunbar2009-11-121-1/+3
| | | | llvm-svn: 87045
* Add FrontendOptions, and starting moving clang-cc to it.Daniel Dunbar2009-11-121-4/+73
| | | | llvm-svn: 87044
* Move CompileOptions -> CodeGenOptions, and sink it into the CodeGen library.Chandler Carruth2009-11-121-8/+8
| | | | | | This resolves the layering violation where CodeGen depended on Frontend. llvm-svn: 86998
* Move warning options into DiagnosticOptions.Daniel Dunbar2009-11-121-1/+22
| | | | llvm-svn: 86968
* Move dump-build-information option into DiagnosticOptions.Daniel Dunbar2009-11-121-5/+11
| | | | llvm-svn: 86966
* Move TokenCache option to PreprocessorOptions.Daniel Dunbar2009-11-121-0/+17
| | | | llvm-svn: 86940
* Add DependencyOutputOptions to wrap -M... options, and propogate toDaniel Dunbar2009-11-111-0/+36
| | | | | | CompilerInvocation and clang-cc. llvm-svn: 86880
* Add PreprocessorOutputOptions to CompilerInvocation, and move initialization toDaniel Dunbar2009-11-111-0/+38
| | | | | | clang-cc/Options.cpp llvm-svn: 86828
* Simplifiy target feature handling by coalescing all the logic intoDaniel Dunbar2009-11-111-36/+25
| | | | | | InitializeCompileOptions. llvm-svn: 86826
OpenPOWER on IntegriCloud