diff options
Diffstat (limited to 'clang/include/clang/Basic/DiagnosticKinds.def')
| -rw-r--r-- | clang/include/clang/Basic/DiagnosticKinds.def | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/DiagnosticKinds.def b/clang/include/clang/Basic/DiagnosticKinds.def index c4c3d0c9868..1972716e1d5 100644 --- a/clang/include/clang/Basic/DiagnosticKinds.def +++ b/clang/include/clang/Basic/DiagnosticKinds.def @@ -688,6 +688,22 @@ DIAG(err_constructor_redeclared, ERROR, DIAG(err_constructor_byvalue_arg, ERROR, "copy constructor must pass its first argument by reference") +// C++ destructors +DIAG(err_destructor_cannot_be, ERROR, + "destructor cannot be declared '%0'") +DIAG(err_invalid_qualified_destructor, ERROR, + "'%0' qualifier is not allowed on a destructor") +DIAG(err_destructor_return_type, ERROR, + "destructor cannot have a return type") +DIAG(err_destructor_redeclared, ERROR, + "destructor cannot be redeclared") +DIAG(err_destructor_with_params, ERROR, + "destructor cannot have any parameters") +DIAG(err_destructor_variadic, ERROR, + "destructor cannot be variadic") +DIAG(err_destructor_typedef_name, ERROR, + "destructor cannot be declared using a typedef '%0' of the class name") + // C++ initialization DIAG(err_not_reference_to_const_init, ERROR, "non-const reference to type '%0' cannot be initialized with a %1 of type '%2'") |

