diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-02-10 19:06:37 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-02-10 19:06:37 +0000 |
commit | 4809f9bcd2f9b1473fa0d8b1db56cc6887ff814c (patch) | |
tree | e380e3fbc466701b1bb11f493d5a76fed574d3d3 /include/clang/Basic/DiagnosticLexKinds.td | |
parent | d387ffe0387f0df0886482ccdb90f99b0199fcf4 (diff) |
Basic: Clean up malformed pragma diagnostics
Create a new diagnostic, -Wignored-pragmas and use it to handle any
case where a pragma would have a side effect but is ignored.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticLexKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.td | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index 0edf376c52..4607eb0532 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -437,7 +437,8 @@ def err_pragma_message_malformed : Error< def err_pragma_push_pop_macro_malformed : Error< "pragma %0 requires a parenthesized string">; def warn_pragma_pop_macro_no_push : Warning< - "pragma pop_macro could not pop '%0', no matching push_macro">; + "pragma pop_macro could not pop '%0', no matching push_macro">, + InGroup<IgnoredPragmas>; def warn_pragma_message : Warning<"%0">, InGroup<PoundPragmaMessage>, DefaultWarnNoWerror; def err_pragma_message : Error<"%0">; @@ -472,7 +473,7 @@ def warn_pragma_diagnostic_unknown_warning : InGroup<UnknownPragmas>; // - #pragma __debug def warn_pragma_debug_unexpected_command : Warning< - "unexpected debug command '%0'">; + "unexpected debug command '%0'">, InGroup<IgnoredPragmas>; def err_defined_macro_name : Error<"'defined' cannot be used as a macro name">; def err_paste_at_start : Error< |