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 | bb6a5677fb8d1ed68c4facd90795aca28d197266 (patch) | |
tree | 2f98b79dd77e4a51ecff51b70db0c7ed904889e5 /lib/Frontend/TextDiagnosticPrinter.cpp | |
parent | f858bd817e8d6eac58ae496fa96a2f508fbb286f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132143 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/TextDiagnosticPrinter.cpp')
-rw-r--r-- | lib/Frontend/TextDiagnosticPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/TextDiagnosticPrinter.cpp b/lib/Frontend/TextDiagnosticPrinter.cpp index 0d048a3030..1c47bf7bee 100644 --- a/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/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) { |