#ifndef LLVM_CLANG_FRONTEND_SERIALIZE_DIAGNOSTIC_PRINTER_H_
#define LLVM_CLANG_FRONTEND_SERIALIZE_DIAGNOSTIC_PRINTER_H_
+#include "llvm/Bitcode/BitstreamWriter.h"
+
namespace llvm {
class raw_ostream;
}
class DiagnosticsEngine;
namespace serialized_diags {
+
+enum BlockIDs {
+ /// \brief The DIAG block, which acts as a container around a diagnostic.
+ BLOCK_DIAG = llvm::bitc::FIRST_APPLICATION_BLOCKID,
+ /// \brief The STRINGS block, which contains strings
+ /// from multiple diagnostics.
+ BLOCK_STRINGS
+};
+
+enum RecordIDs {
+ RECORD_DIAG = 1,
+ RECORD_DIAG_FLAG,
+ RECORD_CATEGORY,
+ RECORD_FILENAME
+};
+
/// \brief Returns a DiagnosticConsumer that serializes diagnostics to
/// a bitcode file.
///
//===----------------------------------------------------------------------===//
#include <vector>
-#include "llvm/Bitcode/BitstreamWriter.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/SmallString.h"
#include "clang/Frontend/SerializedDiagnosticPrinter.h"
using namespace clang;
+using namespace clang::serialized_diags;
namespace {
/// \brief Flag indicating whether or not we are in the process of
/// emitting a non-note diagnostic.
bool inNonNoteDiagnostic;
-
- enum BlockIDs {
- /// \brief The DIAG block, which acts as a container around a diagnostic.
- BLOCK_DIAG = llvm::bitc::FIRST_APPLICATION_BLOCKID,
- /// \brief The STRINGS block, which contains strings
- /// from multiple diagnostics.
- BLOCK_STRINGS
- };
-
- enum RecordIDs {
- RECORD_DIAG = 1,
- RECORD_DIAG_FLAG,
- RECORD_CATEGORY,
- RECORD_FILENAME
- };
};
} // end anonymous namespace