clang 20.0.0git
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
14namespace clang {
15namespace serialized_diags {
16
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.
25};
26
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.
43enum Level {
49 Remark
50};
51
52/// The serialized diagnostics version number.
53enum { VersionNumber = 2 };
54
55} // end serialized_diags namespace
56} // end clang namespace
57
58#endif
@ BLOCK_DIAG
The this block acts as a container for all the information for a specific diagnostic.
@ BLOCK_META
A top-level block which represents any meta data associated with the diagostics, including versioning...
Level
A stable version of DiagnosticIDs::Level.
The JSON file list parser is used to communicate input to InstallAPI.