Change -code-completion-debug-printer to -no-code-completion-debug-printer.
Also, tweak a few help strings and update CompilerInvocation serialization for prev change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89317 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp
index ebdba29..46732de 100644
--- a/tools/CIndex/CIndex.cpp
+++ b/tools/CIndex/CIndex.cpp
@@ -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).
diff --git a/tools/clang-cc/Options.cpp b/tools/clang-cc/Options.cpp
index 34f9c4a..e27d697 100644
--- a/tools/clang-cc/Options.cpp
+++ b/tools/clang-cc/Options.cpp
@@ -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;