]> granicus.if.org Git - clang/commitdiff
Import three interesting bits that apply only to C++ methods.
authorJohn McCall <rjmccall@apple.com>
Thu, 27 Jan 2011 02:37:01 +0000 (02:37 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 27 Jan 2011 02:37:01 +0000 (02:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124349 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTImporter.cpp

index 02be81b8ee16563bf407db5372e340dfee8ca586..a1e0070422e3f8a6ba1edc6d63b9a634eb9de488 100644 (file)
@@ -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.