diff options
author | Richard Trieu <rtrieu@google.com> | 2018-12-14 03:35:10 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2018-12-14 03:35:10 +0000 |
commit | c18971ee2305995d7b953dac2e6a65304ba95408 (patch) | |
tree | 27aecece32f006a9aa4ffc91590975dfc53aafcf /include/clang/Basic/DiagnosticParseKinds.td | |
parent | db2a2bc824742204d0b901604afd8a87f31a377b (diff) |
Fix up diagnostics.
Move some diagnostics around between Diagnostic*Kinds.td files. Diagnostics
used in multiple places were moved to DiagnosticCommonKinds.td. Diagnostics
listed in the wrong place (ie, Sema diagnostics listed in
DiagnosticsParseKinds.td) were moved to the correct places. One diagnostic
split into two so that the diagnostic string is in the .td file instead of in
code. Cleaned up the diagnostic includes after all the changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticParseKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticParseKinds.td | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td index 3706b40424..ec07bb5c4f 100644 --- a/include/clang/Basic/DiagnosticParseKinds.td +++ b/include/clang/Basic/DiagnosticParseKinds.td @@ -343,6 +343,10 @@ def err_expected_parentheses_around_typename : Error< def err_expected_case_before_expression: Error< "expected 'case' keyword before expression">; +def ext_warn_gnu_final : ExtWarn< + "__final is a GNU extension, consider using C++11 final">, + InGroup<GccCompat>; + // Declarations. def err_typename_requires_specqual : Error< "type name requires a specifier or qualifier">; @@ -370,6 +374,12 @@ def ext_c11_static_assert : Extension< def warn_cxx98_compat_static_assert : Warning< "static_assert declarations are incompatible with C++98">, InGroup<CXX98Compat>, DefaultIgnore; +def ext_static_assert_no_message : ExtWarn< + "static_assert with no message is a C++17 extension">, InGroup<CXX17>; +def warn_cxx14_compat_static_assert_no_message : Warning< + "static_assert with no message is incompatible with C++ standards before " + "C++17">, + DefaultIgnore, InGroup<CXXPre17Compat>; def err_function_definition_not_allowed : Error< "function definition is not allowed here">; def err_expected_end_of_enumerator : Error< @@ -500,6 +510,13 @@ def err_dynamic_and_noexcept_specification : Error< "cannot have both throw() and noexcept() clause on the same function">; def err_except_spec_unparsed : Error< "unexpected end of exception specification">; +def ext_dynamic_exception_spec : ExtWarn< + "ISO C++17 does not allow dynamic exception specifications">, + InGroup<DynamicExceptionSpec>, DefaultError; +def warn_exception_spec_deprecated : Warning< + "dynamic exception specifications are deprecated">, + InGroup<DeprecatedDynamicExceptionSpec>, DefaultIgnore; +def note_exception_spec_deprecated : Note<"use '%0' instead">; def warn_cxx98_compat_noexcept_decl : Warning< "noexcept specifications are incompatible with C++98">, InGroup<CXX98Compat>, DefaultIgnore; |