Skip to content

Commit 4e2e017

Browse files
committed
[ast-dumper] Dump the NoImplicitCopyAttr when dumping Decls.
1 parent 4cd1201 commit 4e2e017

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "swift/AST/ASTContext.h"
1818
#include "swift/AST/ASTPrinter.h"
1919
#include "swift/AST/ASTVisitor.h"
20+
#include "swift/AST/Attr.h"
2021
#include "swift/AST/ClangModuleLoader.h"
2122
#include "swift/AST/ForeignAsyncConvention.h"
2223
#include "swift/AST/ForeignErrorConvention.h"
@@ -928,6 +929,9 @@ namespace {
928929
if (P->getAttrs().hasAttribute<NonEphemeralAttr>())
929930
OS << " nonEphemeral";
930931

932+
if (P->getAttrs().hasAttribute<NoImplicitCopyAttr>())
933+
OS << " noImplicitCopy";
934+
931935
if (P->getDefaultArgumentKind() != DefaultArgumentKind::None) {
932936
printField("default_arg",
933937
getDefaultArgumentKindString(P->getDefaultArgumentKind()));

0 commit comments

Comments
 (0)