clang
20.0.0git
include
clang
Frontend
SerializedDiagnostics.h
Go to the documentation of this file.
1
//===--- SerializedDiagnostics.h - Common data for serialized diagnostics -===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef LLVM_CLANG_FRONTEND_SERIALIZEDDIAGNOSTICS_H
10
#define LLVM_CLANG_FRONTEND_SERIALIZEDDIAGNOSTICS_H
11
12
#include "llvm/Bitstream/BitCodes.h"
13
14
namespace
clang
{
15
namespace
serialized_diags {
16
17
enum
BlockIDs
{
18
/// A top-level block which represents any meta data associated
19
/// with the diagostics, including versioning of the format.
20
BLOCK_META
= llvm::bitc::FIRST_APPLICATION_BLOCKID,
21
22
/// The this block acts as a container for all the information
23
/// for a specific diagnostic.
24
BLOCK_DIAG
25
};
26
27
enum
RecordIDs
{
28
RECORD_VERSION
= 1,
29
RECORD_DIAG
,
30
RECORD_SOURCE_RANGE
,
31
RECORD_DIAG_FLAG
,
32
RECORD_CATEGORY
,
33
RECORD_FILENAME
,
34
RECORD_FIXIT
,
35
RECORD_FIRST
=
RECORD_VERSION
,
36
RECORD_LAST
=
RECORD_FIXIT
37
};
38
39
/// A stable version of DiagnosticIDs::Level.
40
///
41
/// Do not change the order of values in this enum, and please increment the
42
/// serialized diagnostics version number when you add to it.
43
enum
Level
{
44
Ignored
= 0,
45
Note
,
46
Warning
,
47
Error
,
48
Fatal
,
49
Remark
50
};
51
52
/// The serialized diagnostics version number.
53
enum
{
VersionNumber
= 2 };
54
55
}
// end serialized_diags namespace
56
}
// end clang namespace
57
58
#endif
clang::serialized_diags::RecordIDs
RecordIDs
Definition:
SerializedDiagnostics.h:27
clang::serialized_diags::RECORD_VERSION
@ RECORD_VERSION
Definition:
SerializedDiagnostics.h:28
clang::serialized_diags::RECORD_LAST
@ RECORD_LAST
Definition:
SerializedDiagnostics.h:36
clang::serialized_diags::RECORD_FIRST
@ RECORD_FIRST
Definition:
SerializedDiagnostics.h:35
clang::serialized_diags::RECORD_FILENAME
@ RECORD_FILENAME
Definition:
SerializedDiagnostics.h:33
clang::serialized_diags::RECORD_DIAG_FLAG
@ RECORD_DIAG_FLAG
Definition:
SerializedDiagnostics.h:31
clang::serialized_diags::RECORD_SOURCE_RANGE
@ RECORD_SOURCE_RANGE
Definition:
SerializedDiagnostics.h:30
clang::serialized_diags::RECORD_FIXIT
@ RECORD_FIXIT
Definition:
SerializedDiagnostics.h:34
clang::serialized_diags::RECORD_CATEGORY
@ RECORD_CATEGORY
Definition:
SerializedDiagnostics.h:32
clang::serialized_diags::RECORD_DIAG
@ RECORD_DIAG
Definition:
SerializedDiagnostics.h:29
clang::serialized_diags::VersionNumber
@ VersionNumber
Definition:
SerializedDiagnostics.h:53
clang::serialized_diags::BlockIDs
BlockIDs
Definition:
SerializedDiagnostics.h:17
clang::serialized_diags::BLOCK_DIAG
@ BLOCK_DIAG
The this block acts as a container for all the information for a specific diagnostic.
Definition:
SerializedDiagnostics.h:24
clang::serialized_diags::BLOCK_META
@ BLOCK_META
A top-level block which represents any meta data associated with the diagostics, including versioning...
Definition:
SerializedDiagnostics.h:20
clang::serialized_diags::Level
Level
A stable version of DiagnosticIDs::Level.
Definition:
SerializedDiagnostics.h:43
clang::serialized_diags::Fatal
@ Fatal
Definition:
SerializedDiagnostics.h:48
clang::serialized_diags::Note
@ Note
Definition:
SerializedDiagnostics.h:45
clang::serialized_diags::Warning
@ Warning
Definition:
SerializedDiagnostics.h:46
clang::serialized_diags::Remark
@ Remark
Definition:
SerializedDiagnostics.h:49
clang::serialized_diags::Error
@ Error
Definition:
SerializedDiagnostics.h:47
clang::serialized_diags::Ignored
@ Ignored
Definition:
SerializedDiagnostics.h:44
clang
The JSON file list parser is used to communicate input to InstallAPI.
Definition:
CalledOnceCheck.h:17
Generated on Fri Nov 22 2024 09:47:16 for clang by
1.9.6