diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-16 05:44:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-16 05:44:38 +0000 |
commit | d51d74a3e89c5e5fc9bfd2814996a5feab6dc932 (patch) | |
tree | 92eabb712d4f05637e4fc598b8322c5db87f0837 /tools/clang-cc/clang-cc.cpp | |
parent | 3cbc3cf55059f50ade9d47a4b222bfbe047638d2 (diff) |
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
Diffstat (limited to 'tools/clang-cc/clang-cc.cpp')
-rw-r--r-- | tools/clang-cc/clang-cc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp index 345a421585..7d1ce40135 100644 --- a/tools/clang-cc/clang-cc.cpp +++ b/tools/clang-cc/clang-cc.cpp @@ -303,6 +303,9 @@ static llvm::cl::opt<bool> 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 @@ int main(int argc, char **argv) { !NoShowColumn, !NoCaretDiagnostics, !NoShowLocation, - PrintSourceRangeInfo); + PrintSourceRangeInfo, + PrintDiagnosticOption); } else { // When checking diagnostics, just buffer them up. TextDiagClient = new TextDiagnosticBuffer(); |