diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-30 19:01:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-30 19:01:41 +0000 |
commit | 65f5e64a7ab7f04d961a032b31fe5371ef5e1d92 (patch) | |
tree | be2f930c8e48d45f5fb1c79181cdbe28f544a71d | |
parent | 8cfd397d5f1dfb0a0242c428f7d9cb24dceb5760 (diff) |
wire up -fno-show-source-location option, patch by Alexei Svitkine!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63409 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Driver/clang.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index b16a836571..5e545b98e4 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -188,6 +188,11 @@ NoShowColumn("fno-show-column", llvm::cl::desc("Do not include column number on diagnostics")); static llvm::cl::opt<bool> +NoShowLocation("fno-show-source-location", + llvm::cl::desc("Do not include source location information with" + " diagnostics")); + +static llvm::cl::opt<bool> NoCaretDiagnostics("fno-caret-diagnostics", llvm::cl::desc("Do not include source line and caret with" " diagnostics")); @@ -1530,7 +1535,8 @@ int main(int argc, char **argv) { // Print diagnostics to stderr by default. TextDiagClient = new TextDiagnosticPrinter(llvm::errs(), !NoShowColumn, - !NoCaretDiagnostics); + !NoCaretDiagnostics, + !NoShowLocation); } else { // When checking diagnostics, just buffer them up. TextDiagClient = new TextDiagnosticBuffer(); |