implement framework for -fdiagnostics-show-option, but tblgen isn't
passing down the right info yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69268 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp
index 345a421..7d1ce40 100644
--- a/tools/clang-cc/clang-cc.cpp
+++ b/tools/clang-cc/clang-cc.cpp
@@ -303,6 +303,9 @@
PrintSourceRangeInfo("fprint-source-range-info",
llvm::cl::desc("Print source range spans in numeric form"));
+static llvm::cl::opt<bool>
+PrintDiagnosticOption("fdiagnostics-show-option",
+ llvm::cl::desc("Print diagnostic name with mappable diagnostics"));
//===----------------------------------------------------------------------===//
// C++ Visualization.
@@ -2227,7 +2230,8 @@
!NoShowColumn,
!NoCaretDiagnostics,
!NoShowLocation,
- PrintSourceRangeInfo);
+ PrintSourceRangeInfo,
+ PrintDiagnosticOption);
} else {
// When checking diagnostics, just buffer them up.
TextDiagClient = new TextDiagnosticBuffer();