[PATCH] D17845: [ASTImporter] Import "implicit" attribute of FunctionDecls

Pavel Labath via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 3 02:09:03 PST 2016


labath created this revision.
labath added a reviewer: akyrtzi.
labath added a subscriber: cfe-commits.

ASTImporter was importing this attribute only on destructor and constructor decls, as they take
it in the constructor, but other decls can have this attribute as well, notably the global
operator new. Make sure we import the attribute on all FunctionDecls.

http://reviews.llvm.org/D17845

Files:
  lib/AST/ASTImporter.cpp

Index: lib/AST/ASTImporter.cpp
===================================================================
--- lib/AST/ASTImporter.cpp
+++ lib/AST/ASTImporter.cpp
@@ -2922,6 +2922,7 @@
   ToFunction->setVirtualAsWritten(D->isVirtualAsWritten());
   ToFunction->setTrivial(D->isTrivial());
   ToFunction->setPure(D->isPure());
+  ToFunction->setImplicit(D->isImplicit());
   Importer.Imported(D, ToFunction);
 
   // Set the parameters.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17845.49723.patch
Type: text/x-patch
Size: 428 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160303/0988e5fe/attachment.bin>


More information about the cfe-commits mailing list