"initializer of a builtin type can only take one argument")
DIAG(err_value_init_for_array_type, ERROR,
"array types cannot be value-initialized")
-// Temporary
-DIAG(err_unsupported_class_constructor, ERROR,
- "class constructors are not supported yet")
DIAG(err_invalid_use_of_function_type, ERROR,
"a function type is not allowed here")
DIAG(err_invalid_use_of_array_type, ERROR,
#include "clang/AST/ExprCXX.h"
#include "clang/AST/ASTContext.h"
#include "clang/Parse/DeclSpec.h"
+#include "clang/Lex/Preprocessor.h"
#include "clang/Basic/Diagnostic.h"
using namespace clang;
return Diag(TyBeginLoc, diag::err_invalid_incomplete_type_use,
Ty.getAsString(), FullRange);
- // "class constructors are not supported yet"
- return Diag(TyBeginLoc, diag::err_unsupported_class_constructor, FullRange);
+ unsigned DiagID = PP.getDiagnostics().getCustomDiagID(Diagnostic::Error,
+ "class constructors are not supported yet");
+ return Diag(TyBeginLoc, DiagID);
}
// C++ 5.2.3p1: