clang 8.0.0

SerializedDiagnostics.h
Go to the documentation of this file.
1 //===--- SerializedDiagnostics.h - Common data for serialized diagnostics -===//
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 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_CLANG_FRONTEND_SERIALIZE_DIAGNOSTICS_H_
11 #define LLVM_CLANG_FRONTEND_SERIALIZE_DIAGNOSTICS_H_
12
13 #include "llvm/Bitcode/BitCodes.h"
14
15 namespace clang {
16 namespace serialized_diags {
17
18 enum BlockIDs {
19 /// 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,
22
23 /// The this block acts as a container for all the information
24 /// for a specific diagnostic.
25 BLOCK_DIAG
26 };
27
28 enum RecordIDs {
29 RECORD_VERSION = 1,
30 RECORD_DIAG,
31 RECORD_SOURCE_RANGE,
32 RECORD_DIAG_FLAG,
33 RECORD_CATEGORY,
34 RECORD_FILENAME,
35 RECORD_FIXIT,
36 RECORD_FIRST = RECORD_VERSION,
37 RECORD_LAST = RECORD_FIXIT
38 };
39
40 /// A stable version of DiagnosticIDs::Level.
41 ///
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.
44 enum Level {
45 Ignored = 0,
46 Note,
47 Warning,
48 Error,
49 Fatal,
50 Remark
51 };
52
53 /// The serialized diagnostics version number.
54 enum { VersionNumber = 2 };
55
56 } // end serialized_diags namespace
57 } // end clang namespace
58
59 #endif
clang::serialized_diags::Level
Level
A stable version of DiagnosticIDs::Level.
Definition: SerializedDiagnostics.h:44
clang::serialized_diags::RECORD_FIXIT
Definition: SerializedDiagnostics.h:35
clang::serialized_diags::RECORD_LAST
Definition: SerializedDiagnostics.h:37
clang::serialized_diags::RECORD_CATEGORY
Definition: SerializedDiagnostics.h:33
clang::serialized_diags::Error
Definition: SerializedDiagnostics.h:48
clang::serialized_diags::RECORD_DIAG_FLAG
Definition: SerializedDiagnostics.h:32
clang::serialized_diags::Warning
Definition: SerializedDiagnostics.h:47
clang::serialized_diags::RECORD_FIRST
Definition: SerializedDiagnostics.h:36
clang::serialized_diags::Fatal
Definition: SerializedDiagnostics.h:49
clang::serialized_diags::RECORD_SOURCE_RANGE
Definition: SerializedDiagnostics.h:31
clang::serialized_diags::RECORD_DIAG
Definition: SerializedDiagnostics.h:30
clang::serialized_diags::Ignored
Definition: SerializedDiagnostics.h:45
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:22
clang::serialized_diags::RecordIDs
RecordIDs
Definition: SerializedDiagnostics.h:28
clang::serialized_diags::BlockIDs
BlockIDs
Definition: SerializedDiagnostics.h:18
clang::serialized_diags::Remark
Definition: SerializedDiagnostics.h:50
clang::serialized_diags::VersionNumber
Definition: SerializedDiagnostics.h:54
clang::serialized_diags::RECORD_VERSION
Definition: SerializedDiagnostics.h:29
clang::serialized_diags::Note
Definition: SerializedDiagnostics.h:46
clang::serialized_diags::BLOCK_DIAG
The this block acts as a container for all the information for a specific diagnostic.
Definition: SerializedDiagnostics.h:25
clang::serialized_diags::BLOCK_META
A top-level block which represents any meta data associated with the diagostics, including versioning...
Definition: SerializedDiagnostics.h:21
clang::serialized_diags::RECORD_FILENAME
Definition: SerializedDiagnostics.h:34