diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-05 22:53:06 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-05 22:53:06 +0000 |
commit | ddb2968ba69e14bafec765401d70f2477bc977f6 (patch) | |
tree | 1083a0deac28e571f61295370355cdb6135acf6a /lib | |
parent | 9867ebaac9efe9346fcdc3bc816c85a7a25c6bf2 (diff) |
In DeclPrint add printing of '= default'
in constructors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AST/DeclPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index a5e1378b46..f277f1fac7 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/lib/AST/DeclPrinter.cpp @@ -565,6 +565,8 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) { 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 |