summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/Basic/DiagnosticKinds.def
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/Basic/DiagnosticKinds.def')
-rw-r--r--clang/include/clang/Basic/DiagnosticKinds.def10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/DiagnosticKinds.def b/clang/include/clang/Basic/DiagnosticKinds.def
index 8517222c1db..30238f6d6f9 100644
--- a/clang/include/clang/Basic/DiagnosticKinds.def
+++ b/clang/include/clang/Basic/DiagnosticKinds.def
@@ -562,6 +562,8 @@ DIAG(warn_statement_disambiguation, WARNING,
"statement was disambiguated as %0")
DIAG(warn_parens_disambiguated_as_function_decl, WARNING,
"parentheses were disambiguated as a function declarator")
+DIAG(err_expected_member_or_base_name, ERROR,
+ "expected class member or base class name")
// Language specific pragmas
@@ -1240,6 +1242,14 @@ DIAG(err_expected_class_name, ERROR,
DIAG(err_anon_type_definition, ERROR,
"declaration of anonymous %0 must be a definition")
+// C++ member initializers.
+DIAG(err_mem_init_not_member_or_class, ERROR,
+ "member initializer '%0' does not name a non-static data member or base class")
+DIAG(err_base_init_does_not_name_class, ERROR,
+ "constructor initializer '%0' does not name a class")
+DIAG(err_base_init_direct_and_virtual, ERROR,
+ "base class initializer '%0' names both a direct base class and an inherited virtual base class")
+
// Derived classes.
DIAG(err_dup_virtual, ERROR,
"duplicate 'virtual' in base specifier")
OpenPOWER on IntegriCloud