]> granicus.if.org Git - clang/commitdiff
Add stub TableGen file for diagnostic options.
authorTed Kremenek <kremenek@apple.com>
Wed, 18 Mar 2009 21:13:53 +0000 (21:13 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 18 Mar 2009 21:13:53 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67238 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Diagnostic.td
include/clang/Basic/DiagnosticOptions.td [new file with mode: 0644]

index dd8a872183b91d38aee7b951f5beb1ae9a80932d..5f1e4ec4da84014c7b114149f2ec4ad4ef048c5e 100644 (file)
@@ -37,6 +37,7 @@ class Option<string name, list<OptionControlled> members> : OptionControlled {
   list<OptionControlled> Members = members;
 }
 
+// Definitions for Diagnostics.
 include "DiagnosticASTKinds.td"
 include "DiagnosticAnalysisKinds.td"
 include "DiagnosticCommonKinds.td"
@@ -46,3 +47,5 @@ include "DiagnosticLexKinds.td"
 include "DiagnosticParseKinds.td"
 include "DiagnosticSemaKinds.td"
 
+// Definitions for options ("warning groups").
+include "DiagnosticOptions.td"
diff --git a/include/clang/Basic/DiagnosticOptions.td b/include/clang/Basic/DiagnosticOptions.td
new file mode 100644 (file)
index 0000000..270d07a
--- /dev/null
@@ -0,0 +1,14 @@
+//===--- DiagnosticOptions.td - C Language Family Diagnostic Handling -----===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+//  This file defines the TableGen definitions for the diagnostics options.
+//
+//===----------------------------------------------------------------------===//
+
+def UnusedMacrosDiags : Option<"unused-macros", [pp_macro_not_used]>;