diff options
author | Richard Trieu <rtrieu@google.com> | 2011-05-26 20:49:16 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2011-05-26 20:49:16 +0000 |
commit | 17afcbe5dee0587fe7ef405c81e22bc5cdea1954 (patch) | |
tree | 17b3f18bf951e49ab59254c42f5234fd055c1559 /clang/lib/Frontend | |
parent | 46fbc60f637fa143bcd70833963691d15a1395ba (diff) | |
download | bcm5719-llvm-17afcbe5dee0587fe7ef405c81e22bc5cdea1954.tar.gz bcm5719-llvm-17afcbe5dee0587fe7ef405c81e22bc5cdea1954.zip |
Change the include stack of "instantiated from" notes to fall under the control of f/fno-diagnostics-show-note-include-stack flags. This should help with reducing diagnostic spew from macros instantiations.
llvm-svn: 132143
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r-- | clang/lib/Frontend/TextDiagnosticPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/TextDiagnosticPrinter.cpp b/clang/lib/Frontend/TextDiagnosticPrinter.cpp index 0d048a30309..1c47bf7bee9 100644 --- a/clang/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/clang/lib/Frontend/TextDiagnosticPrinter.cpp @@ -343,7 +343,7 @@ void TextDiagnosticPrinter::EmitCaretDiagnostic(Diagnostic::Level Level, // "included from" lines. if (LastWarningLoc != PLoc.getIncludeLoc()) { LastWarningLoc = PLoc.getIncludeLoc(); - PrintIncludeStack(Level, LastWarningLoc, SM); + PrintIncludeStack(Diagnostic::Note, LastWarningLoc, SM); } if (DiagOpts->ShowLocation) { |