Jordan Rose | 0832f82 | 2012-06-04 16:57:50 +0000 | [diff] [blame^] | 1 | //===- DiagnosticNames.cpp - Defines a table of all builtin 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 | #include "DiagnosticNames.h" |
| 11 | #include "clang/Basic/AllDiagnostics.h" |
| 12 | |
| 13 | using namespace clang; |
| 14 | |
| 15 | const diagtool::DiagnosticRecord diagtool::BuiltinDiagnostics[] = { |
| 16 | #define DIAG_NAME_INDEX(ENUM) { #ENUM, diag::ENUM, STR_SIZE(#ENUM, uint8_t) }, |
| 17 | #include "clang/Basic/DiagnosticIndexName.inc" |
| 18 | #undef DIAG_NAME_INDEX |
| 19 | { 0, 0, 0 } |
| 20 | }; |
| 21 | |
| 22 | const size_t diagtool::BuiltinDiagnosticsCount = |
| 23 | sizeof(diagtool::BuiltinDiagnostics) / |
| 24 | sizeof(diagtool::BuiltinDiagnostics[0]) - 1; |
| 25 | |