clang 20.0.0 (based on r547379) from build 12806354. Bug: http://b/379133546 Test: N/A Change-Id: I2eb8938af55d809de674be63cb30cf27e801862b Upstream-Commit: ad834e67b1105d15ef907f6255d4c96e8e733f57
59 lines
1.5 KiB
C++
59 lines
1.5 KiB
C++
//===--- SerializedDiagnostics.h - Common data for serialized diagnostics -===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_CLANG_FRONTEND_SERIALIZEDDIAGNOSTICS_H
|
|
#define LLVM_CLANG_FRONTEND_SERIALIZEDDIAGNOSTICS_H
|
|
|
|
#include "llvm/Bitstream/BitCodes.h"
|
|
|
|
namespace clang {
|
|
namespace serialized_diags {
|
|
|
|
enum BlockIDs {
|
|
/// A top-level block which represents any meta data associated
|
|
/// with the diagostics, including versioning of the format.
|
|
BLOCK_META = llvm::bitc::FIRST_APPLICATION_BLOCKID,
|
|
|
|
/// The this block acts as a container for all the information
|
|
/// for a specific diagnostic.
|
|
BLOCK_DIAG
|
|
};
|
|
|
|
enum RecordIDs {
|
|
RECORD_VERSION = 1,
|
|
RECORD_DIAG,
|
|
RECORD_SOURCE_RANGE,
|
|
RECORD_DIAG_FLAG,
|
|
RECORD_CATEGORY,
|
|
RECORD_FILENAME,
|
|
RECORD_FIXIT,
|
|
RECORD_FIRST = RECORD_VERSION,
|
|
RECORD_LAST = RECORD_FIXIT
|
|
};
|
|
|
|
/// A stable version of DiagnosticIDs::Level.
|
|
///
|
|
/// Do not change the order of values in this enum, and please increment the
|
|
/// serialized diagnostics version number when you add to it.
|
|
enum Level {
|
|
Ignored = 0,
|
|
Note,
|
|
Warning,
|
|
Error,
|
|
Fatal,
|
|
Remark
|
|
};
|
|
|
|
/// The serialized diagnostics version number.
|
|
enum { VersionNumber = 2 };
|
|
|
|
} // end serialized_diags namespace
|
|
} // end clang namespace
|
|
|
|
#endif
|