1 //===--- SerializedDiagnostics.h - Common data for serialized diagnostics -===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CLANG_FRONTEND_SERIALIZE_DIAGNOSTICS_H_
11 #define LLVM_CLANG_FRONTEND_SERIALIZE_DIAGNOSTICS_H_
13 #include "llvm/Bitcode/BitCodes.h"
16 namespace serialized_diags {
19 /// \brief A top-level block which represents any meta data associated
20 /// with the diagostics, including versioning of the format.
21 BLOCK_META = llvm::bitc::FIRST_APPLICATION_BLOCKID,
23 /// \brief The this block acts as a container for all the information
24 /// for a specific diagnostic.
36 RECORD_FIRST = RECORD_VERSION,
37 RECORD_LAST = RECORD_FIXIT
40 /// \brief A stable version of DiagnosticIDs::Level.
42 /// Do not change the order of values in this enum, and please increment the
43 /// serialized diagnostics version number when you add to it.
53 /// \brief The serialized diagnostics version number.
54 enum { VersionNumber = 2 };
56 } // end serialized_diags namespace
57 } // end clang namespace