in constructors.
llvm-svn: 169440
Out << " = 0";
else if (D->isDeletedAsWritten())
Out << " = delete";
+ else if (D->isExplicitlyDefaulted())
+ Out << " = default";
else if (D->doesThisDeclarationHaveABody() && !Policy.TerseOutput) {
if (!D->hasPrototype() && D->getNumParams()) {
// This is a K&R function definition, so we need to print the
" A() = default;"
"};",
constructorDecl(ofClass(hasName("A"))).bind("id"),
- "A() noexcept"));
- // WRONG; Should be: "A() = default;"
+ "A() noexcept = default"));
+ // Should be: "A() = default;" if we care about noexcept as written
}
TEST(DeclPrinter, TestCXXConstructorDecl9) {