]> granicus.if.org Git - clang/commitdiff
wire up -fno-show-source-location option, patch by Alexei Svitkine!
authorChris Lattner <sabre@nondot.org>
Fri, 30 Jan 2009 19:01:41 +0000 (19:01 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 30 Jan 2009 19:01:41 +0000 (19:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63409 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index b16a8365718622799dc58a72027c77d0c8666a2a..5e545b98e44b73698d9ab09e4a52d4c0f0ee121f 100644 (file)
@@ -187,6 +187,11 @@ static llvm::cl::opt<bool>
 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"
@@ -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();