From: Chris Lattner Date: Wed, 15 Apr 2009 18:13:28 +0000 (+0000) Subject: move some pp diags to the right .td file. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16e48ff5e9c72101904d4422accd91c59f9f653f;p=clang move some pp diags to the right .td file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69193 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticCommonKinds.td b/include/clang/Basic/DiagnosticCommonKinds.td index 1347293398..e059d5e605 100644 --- a/include/clang/Basic/DiagnosticCommonKinds.td +++ b/include/clang/Basic/DiagnosticCommonKinds.td @@ -51,15 +51,8 @@ def warn_integer_too_large_for_signed : Warning< def note_invalid_subexpr_in_ice : Note< "subexpression not valid in an integer constant expression">; -// Driver -def pp_macro_not_used : Warning<"macro is not used">, DefaultIgnore, - IsGroup<"unused-macros">; - - +// clang-cc def err_pp_I_dash_not_supported : Error< "-I- not supported, please use -iquote instead">; -def warn_pp_undef_identifier : Warning< - "%0 is not defined, evaluates to 0">, - IsGroup<"undef">, DefaultIgnore; } diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index 586423bc26..a9f849eccf 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -100,6 +100,12 @@ def pp_out_of_date_dependency : Warning< "current file is older than dependency %0">; def pp_undef_builtin_macro : Warning<"undefining builtin macro">; def pp_redef_builtin_macro : Warning<"redefining builtin macro">; +def pp_macro_not_used : Warning<"macro is not used">, DefaultIgnore, + IsGroup<"unused-macros">; +def warn_pp_undef_identifier : Warning< + "%0 is not defined, evaluates to 0">, + IsGroup<"undef">, DefaultIgnore; + def pp_invalid_string_literal : Warning< "invalid string literal, ignoring final '\\'">; def warn_pp_expr_overflow : Warning<