summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/DiagnosticCategories.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-06-15 21:46:43 +0000
committerJohn McCall <rjmccall@apple.com>2011-06-15 21:46:43 +0000
commit923cd5744a724d9302ea12baa5476ad1c37f474d (patch)
treed6234f708f98a4a82b1cf975b3c67975f2e731f2 /include/clang/Basic/DiagnosticCategories.h
parent8246702d0cbecc3fd5748b58614ffed7ad9e04a5 (diff)
Generate enumerators for diagnostic categories. Patch by Argyrios!
Depends on LLVM r133093. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticCategories.h')
-rw-r--r--include/clang/Basic/DiagnosticCategories.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticCategories.h b/include/clang/Basic/DiagnosticCategories.h
new file mode 100644
index 0000000000..4dd067ba1e
--- /dev/null
+++ b/include/clang/Basic/DiagnosticCategories.h
@@ -0,0 +1,26 @@
+//===- DiagnosticCategories.h - Diagnostic Categories Enumerators-*- C++ -*===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_BASIC_DIAGNOSTICCATEGORIES_H
+#define LLVM_CLANG_BASIC_DIAGNOSTICCATEGORIES_H
+
+namespace clang {
+ namespace diag {
+ enum {
+#define GET_CATEGORY_TABLE
+#define CATEGORY(X, ENUM) ENUM,
+#include "clang/Basic/DiagnosticGroups.inc"
+#undef CATEGORY
+#undef GET_CATEGORY_TABLE
+ DiagCat_NUM_CATEGORIES
+ };
+ } // end namespace diag
+} // end namespace clang
+
+#endif