From: John McCall Date: Thu, 27 Jan 2011 02:37:01 +0000 (+0000) Subject: Import three interesting bits that apply only to C++ methods. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2eca2cf302c50b79891f24b3861d64ea9263831;p=clang Import three interesting bits that apply only to C++ methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124349 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTImporter.cpp b/lib/AST/ASTImporter.cpp index 02be81b8ee..a1e0070422 100644 --- a/lib/AST/ASTImporter.cpp +++ b/lib/AST/ASTImporter.cpp @@ -2396,6 +2396,9 @@ Decl *ASTNodeImporter::VisitFunctionDecl(FunctionDecl *D) { } ToFunction->setAccess(D->getAccess()); ToFunction->setLexicalDeclContext(LexicalDC); + ToFunction->setVirtualAsWritten(D->isVirtualAsWritten()); + ToFunction->setTrivial(D->isTrivial()); + ToFunction->setPure(D->isPure()); Importer.Imported(D, ToFunction); // Set the parameters.