|
|
|||
File indexing completed on 2026-05-10 08:36:55
0001 //===--- SerializedDiagnostics.h - Common data for serialized diagnostics -===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 0009 #ifndef LLVM_CLANG_FRONTEND_SERIALIZEDDIAGNOSTICS_H 0010 #define LLVM_CLANG_FRONTEND_SERIALIZEDDIAGNOSTICS_H 0011 0012 #include "llvm/Bitstream/BitCodes.h" 0013 0014 namespace clang { 0015 namespace serialized_diags { 0016 0017 enum BlockIDs { 0018 /// A top-level block which represents any meta data associated 0019 /// with the diagostics, including versioning of the format. 0020 BLOCK_META = llvm::bitc::FIRST_APPLICATION_BLOCKID, 0021 0022 /// The this block acts as a container for all the information 0023 /// for a specific diagnostic. 0024 BLOCK_DIAG 0025 }; 0026 0027 enum RecordIDs { 0028 RECORD_VERSION = 1, 0029 RECORD_DIAG, 0030 RECORD_SOURCE_RANGE, 0031 RECORD_DIAG_FLAG, 0032 RECORD_CATEGORY, 0033 RECORD_FILENAME, 0034 RECORD_FIXIT, 0035 RECORD_FIRST = RECORD_VERSION, 0036 RECORD_LAST = RECORD_FIXIT 0037 }; 0038 0039 /// A stable version of DiagnosticIDs::Level. 0040 /// 0041 /// Do not change the order of values in this enum, and please increment the 0042 /// serialized diagnostics version number when you add to it. 0043 enum Level { 0044 Ignored = 0, 0045 Note, 0046 Warning, 0047 Error, 0048 Fatal, 0049 Remark 0050 }; 0051 0052 /// The serialized diagnostics version number. 0053 enum { VersionNumber = 2 }; 0054 0055 } // end serialized_diags namespace 0056 } // end clang namespace 0057 0058 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|