diff options
Diffstat (limited to 'lib/Format/UnwrappedLineParser.h')
-rw-r--r-- | lib/Format/UnwrappedLineParser.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Format/UnwrappedLineParser.h b/lib/Format/UnwrappedLineParser.h index 017daf587f..837b5391f6 100644 --- a/lib/Format/UnwrappedLineParser.h +++ b/lib/Format/UnwrappedLineParser.h @@ -27,6 +27,9 @@ #include <vector> namespace clang { + +class DiagnosticsEngine; + namespace format { /// \brief A wrapper around a \c Token storing information about the @@ -116,7 +119,8 @@ public: class UnwrappedLineParser { public: - UnwrappedLineParser(const FormatStyle &Style, FormatTokenSource &Tokens, + UnwrappedLineParser(clang::DiagnosticsEngine &Diag, const FormatStyle &Style, + FormatTokenSource &Tokens, UnwrappedLineConsumer &Callback); /// Returns true in case of a structural error. @@ -161,6 +165,7 @@ private: FormatToken FormatTok; bool MustBreakBeforeNextToken; + clang::DiagnosticsEngine &Diag; const FormatStyle &Style; FormatTokenSource *Tokens; UnwrappedLineConsumer &Callback; |