blob: dd86c287ac9e0e0a6e6e64efba4967df1460c5fa [file] [log] [blame]
Jordan Rose0832f822012-06-04 16:57:50 +00001//===- 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
13using namespace clang;
14
15const 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
22const size_t diagtool::BuiltinDiagnosticsCount =
23 sizeof(diagtool::BuiltinDiagnostics) /
24 sizeof(diagtool::BuiltinDiagnostics[0]) - 1;
25