aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-19 07:44:08 +0000
committerChris Lattner <sabre@nondot.org>2009-04-19 07:44:08 +0000
commitaa5bf2e8dc01f9835efef76222dc440a5c18b160 (patch)
tree4c4620f10a27e97667ff8c086564706b6387353b /tools
parentaa269c2e9c242a2fdf1f47ea400f58823ae9e395 (diff)
implement compiler support for -fno-diagnostics-fixit-info,
rdar://6805442 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69525 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/clang-cc/clang-cc.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp
index 4e5ff5d259..e69c62bb39 100644
--- a/tools/clang-cc/clang-cc.cpp
+++ b/tools/clang-cc/clang-cc.cpp
@@ -300,6 +300,11 @@ NoCaretDiagnostics("fno-caret-diagnostics",
" diagnostics"));
static llvm::cl::opt<bool>
+NoDiagnosticsFixIt("fno-diagnostics-fixit-info",
+ llvm::cl::desc("Do not include fixit information in"
+ " diagnostics"));
+
+static llvm::cl::opt<bool>
PrintSourceRangeInfo("fprint-source-range-info",
llvm::cl::desc("Print source range spans in numeric form"));
@@ -1873,7 +1878,8 @@ public:
!NoCaretDiagnostics,
!NoShowLocation,
PrintSourceRangeInfo,
- PrintDiagnosticOption));
+ PrintDiagnosticOption,
+ !NoDiagnosticsFixIt));
}
virtual void setLangOptions(const LangOptions *LO) {
@@ -2329,7 +2335,8 @@ int main(int argc, char **argv) {
!NoCaretDiagnostics,
!NoShowLocation,
PrintSourceRangeInfo,
- PrintDiagnosticOption));
+ PrintDiagnosticOption,
+ !NoDiagnosticsFixIt));
} else {
DiagClient.reset(CreateHTMLDiagnosticClient(HTMLDiag));
}