From: Chris Lattner Date: Fri, 30 Jan 2009 19:01:41 +0000 (+0000) Subject: wire up -fno-show-source-location option, patch by Alexei Svitkine! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65f5e64a7ab7f04d961a032b31fe5371ef5e1d92;p=clang 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 --- diff --git a/Driver/clang.cpp b/Driver/clang.cpp index b16a836571..5e545b98e4 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -187,6 +187,11 @@ static llvm::cl::opt NoShowColumn("fno-show-column", llvm::cl::desc("Do not include column number on diagnostics")); +static llvm::cl::opt +NoShowLocation("fno-show-source-location", + llvm::cl::desc("Do not include source location information with" + " diagnostics")); + static llvm::cl::opt NoCaretDiagnostics("fno-caret-diagnostics", llvm::cl::desc("Do not include source line and caret with" @@ -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();