diff options
Diffstat (limited to 'include/clang/Frontend/TextDiagnosticPrinter.h')
-rw-r--r-- | include/clang/Frontend/TextDiagnosticPrinter.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Frontend/TextDiagnosticPrinter.h b/include/clang/Frontend/TextDiagnosticPrinter.h index c9fbae6ebb..eeff279513 100644 --- a/include/clang/Frontend/TextDiagnosticPrinter.h +++ b/include/clang/Frontend/TextDiagnosticPrinter.h @@ -28,6 +28,7 @@ class SourceManager; class TextDiagnosticPrinter : public DiagnosticClient { SourceLocation LastWarningLoc; FullSourceLoc LastLoc; + bool LastCaretDiagnosticWasNote; llvm::raw_ostream &OS; bool ShowColumn; bool CaretDiagnostics; @@ -35,8 +36,8 @@ class TextDiagnosticPrinter : public DiagnosticClient { public: TextDiagnosticPrinter(llvm::raw_ostream &os, bool showColumn = true, bool caretDiagnistics = true, bool showLocation = true) - : OS(os), ShowColumn(showColumn), CaretDiagnostics(caretDiagnistics), - ShowLocation(showLocation) {} + : LastCaretDiagnosticWasNote(false), OS(os), ShowColumn(showColumn), + CaretDiagnostics(caretDiagnistics), ShowLocation(showLocation) {} void PrintIncludeStack(SourceLocation Loc, const SourceManager &SM); |