aboutsummaryrefslogtreecommitdiff
path: root/clang/Driver/TextDiagnosticPrinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Driver/TextDiagnosticPrinter.h')
-rw-r--r--clang/Driver/TextDiagnosticPrinter.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/clang/Driver/TextDiagnosticPrinter.h b/clang/Driver/TextDiagnosticPrinter.h
deleted file mode 100644
index 633f29e..0000000
--- a/clang/Driver/TextDiagnosticPrinter.h
+++ /dev/null
@@ -1,52 +0,0 @@
-//===--- TextDiagnosticPrinter.h - Text Diagnostic Client -------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This is a concrete diagnostic client, which prints the diagnostics to
-// standard error.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef TEXT_DIAGNOSTIC_PRINTER_H_
-#define TEXT_DIAGNOSTIC_PRINTER_H_
-
-#include "TextDiagnostics.h"
-#include "clang/Basic/SourceLocation.h"
-#include "llvm/Support/Streams.h"
-
-namespace clang {
-class SourceManager;
-
-class TextDiagnosticPrinter : public TextDiagnostics {
- FullSourceLoc LastWarningLoc;
- FullSourceLoc LastLoc;
- llvm::OStream OS;
-public:
- TextDiagnosticPrinter(llvm::OStream &os = llvm::cerr) : OS(os) {}
-
- void PrintIncludeStack(FullSourceLoc Pos);
-
- void HighlightRange(const SourceRange &R,
- SourceManager& SrcMgr,
- unsigned LineNo, unsigned FileID,
- std::string &CaratLine,
- const std::string &SourceLine);
-
- virtual void HandleDiagnostic(Diagnostic &Diags,
- Diagnostic::Level DiagLevel,
- FullSourceLoc Pos,
- diag::kind ID,
- const std::string *Strs,
- unsigned NumStrs,
- const SourceRange *Ranges,
- unsigned NumRanges);
-};
-
-} // end namspace clang
-
-#endif