[cfe-commits] r89317 - in /cfe/trunk: lib/Frontend/CompilerInvocation.cpp tools/CIndex/CIndex.cpp tools/clang-cc/Options.cpp
Daniel Dunbar
daniel at zuster.org
Wed Nov 18 21:32:09 PST 2009
Author: ddunbar
Date: Wed Nov 18 23:32:09 2009
New Revision: 89317
URL: http://llvm.org/viewvc/llvm-project?rev=89317&view=rev
Log:
Change -code-completion-debug-printer to -no-code-completion-debug-printer.
Also, tweak a few help strings and update CompilerInvocation serialization for prev change.
Modified:
cfe/trunk/lib/Frontend/CompilerInvocation.cpp
cfe/trunk/tools/CIndex/CIndex.cpp
cfe/trunk/tools/clang-cc/Options.cpp
Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=89317&r1=89316&r2=89317&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Wed Nov 18 23:32:09 2009
@@ -83,8 +83,8 @@
Res.push_back("-analyzer-display-progress");
if (Opts.EagerlyAssume)
Res.push_back("-analyzer-eagerly-assume");
- if (Opts.PurgeDead)
- Res.push_back("-analyzer-purge-dead");
+ if (!Opts.PurgeDead)
+ Res.push_back("-analyzer-no-purge-dead");
if (Opts.TrimGraph)
Res.push_back("-trim-egraph");
if (Opts.VisualizeEGDot)
@@ -238,7 +238,7 @@
static void FrontendOptsToArgs(const FrontendOptions &Opts,
std::vector<std::string> &Res) {
if (!Opts.DebugCodeCompletionPrinter)
- Res.push_back("-code-completion-debug-printer=0");
+ Res.push_back("-no-code-completion-debug-printer");
if (Opts.DisableFree)
Res.push_back("-disable-free");
if (Opts.EmptyInputOnly)
@@ -394,8 +394,8 @@
Res.push_back("-faltivec");
Res.push_back("-fexceptions");
Res.push_back(Opts.Exceptions ? "1" : "0");
- Res.push_back("-frtti");
- Res.push_back(Opts.Rtti ? "1" : "0");
+ if (!Opts.Rtti)
+ Res.push_back("-fno-rtti");
if (!Opts.NeXTRuntime)
Res.push_back("-fgnu-runtime");
if (Opts.Freestanding)
@@ -411,7 +411,7 @@
if (Opts.EmitAllDecls)
Res.push_back("-femit-all-decls");
if (!Opts.MathErrno)
- Res.push_back("-fmath-errno=0");
+ Res.push_back("-fno-math-errno");
if (Opts.OverflowChecking)
Res.push_back("-ftrapv");
if (Opts.HeinousExtensions)
Modified: cfe/trunk/tools/CIndex/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndex.cpp?rev=89317&r1=89316&r2=89317&view=diff
==============================================================================
--- cfe/trunk/tools/CIndex/CIndex.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndex.cpp Wed Nov 18 23:32:09 2009
@@ -1219,7 +1219,7 @@
argv.push_back("-Xclang");
argv.push_back(code_complete_at.c_str());
argv.push_back("-Xclang");
- argv.push_back("-code-completion-debug-printer=0");
+ argv.push_back("-no-code-completion-debug-printer");
// Add the source file name (FIXME: later, we'll want to build temporary
// file from the buffer, or just feed the source text via standard input).
Modified: cfe/trunk/tools/clang-cc/Options.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/Options.cpp?rev=89317&r1=89316&r2=89317&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/Options.cpp (original)
+++ cfe/trunk/tools/clang-cc/Options.cpp Wed Nov 18 23:32:09 2009
@@ -105,7 +105,7 @@
static llvm::cl::opt<bool>
NoPurgeDead("analyzer-no-purge-dead",
- llvm::cl::desc("Remove dead symbols, bindings, and constraints before"
+ llvm::cl::desc("Don't remove dead symbols, bindings, and constraints before"
" processing a statement"));
static llvm::cl::opt<bool>
@@ -283,9 +283,8 @@
llvm::cl::desc("Dump code-completion information at a location"));
static llvm::cl::opt<bool>
-CodeCompletionDebugPrinter("code-completion-debug-printer",
- llvm::cl::desc("Use the \"debug\" code-completion print"),
- llvm::cl::init(true));
+NoCodeCompletionDebugPrinter("no-code-completion-debug-printer",
+ llvm::cl::desc("Don't the \"debug\" code-completion print"));
static llvm::cl::opt<bool>
CodeCompletionWantsMacros("code-completion-macros",
@@ -532,7 +531,7 @@
static llvm::cl::opt<bool>
NoMathErrno("fno-math-errno",
- llvm::cl::desc("Require math functions to respect errno"));
+ llvm::cl::desc("Don't require math functions to respect errno"));
static llvm::cl::opt<bool>
NoElideConstructors("fno-elide-constructors",
@@ -590,7 +589,7 @@
static llvm::cl::opt<bool>
NoRtti("fno-rtti",
- llvm::cl::desc("Enable generation of rtti information"));
+ llvm::cl::desc("Disable generation of rtti information"));
static llvm::cl::opt<bool>
ShortWChar("fshort-wchar",
@@ -867,7 +866,7 @@
}
Opts.CodeCompletionAt = CodeCompletionAt;
- Opts.DebugCodeCompletionPrinter = CodeCompletionDebugPrinter;
+ Opts.DebugCodeCompletionPrinter = !NoCodeCompletionDebugPrinter;
Opts.DisableFree = DisableFree;
Opts.EmptyInputOnly = EmptyInputOnly;
Opts.FixItLocations = FixItAtLocations;
More information about the cfe-commits
mailing list