Deleted Added
full compact
TextDiagnosticPrinter.h (210299) TextDiagnosticPrinter.h (221345)
1//===--- TextDiagnosticPrinter.h - Text Diagnostic Client -------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 39 unchanged lines hidden (view full) ---

48 void BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) {
49 LangOpts = &LO;
50 }
51
52 void EndSourceFile() {
53 LangOpts = 0;
54 }
55
1//===--- TextDiagnosticPrinter.h - Text Diagnostic Client -------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 39 unchanged lines hidden (view full) ---

48 void BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) {
49 LangOpts = &LO;
50 }
51
52 void EndSourceFile() {
53 LangOpts = 0;
54 }
55
56 void PrintIncludeStack(SourceLocation Loc, const SourceManager &SM);
56 void PrintIncludeStack(Diagnostic::Level Level, SourceLocation Loc,
57 const SourceManager &SM);
57
58 void HighlightRange(const CharSourceRange &R,
59 const SourceManager &SrcMgr,
60 unsigned LineNo, FileID FID,
61 std::string &CaretLine,
62 const std::string &SourceLine);
63
58
59 void HighlightRange(const CharSourceRange &R,
60 const SourceManager &SrcMgr,
61 unsigned LineNo, FileID FID,
62 std::string &CaretLine,
63 const std::string &SourceLine);
64
64 void EmitCaretDiagnostic(SourceLocation Loc,
65 void EmitCaretDiagnostic(Diagnostic::Level Level, SourceLocation Loc,
65 CharSourceRange *Ranges, unsigned NumRanges,
66 const SourceManager &SM,
67 const FixItHint *Hints,
68 unsigned NumHints,
69 unsigned Columns,
70 unsigned OnMacroInst,
71 unsigned MacroSkipStart,
72 unsigned MacroSkipEnd);
73
66 CharSourceRange *Ranges, unsigned NumRanges,
67 const SourceManager &SM,
68 const FixItHint *Hints,
69 unsigned NumHints,
70 unsigned Columns,
71 unsigned OnMacroInst,
72 unsigned MacroSkipStart,
73 unsigned MacroSkipEnd);
74
74 virtual void HandleDiagnostic(Diagnostic::Level DiagLevel,
75 virtual void HandleDiagnostic(Diagnostic::Level Level,
75 const DiagnosticInfo &Info);
76};
77
78} // end namespace clang
79
80#endif
76 const DiagnosticInfo &Info);
77};
78
79} // end namespace clang
80
81#endif