[PATCH] D56752: [ASTDump] Mark BlockDecls which capture this with a tag
Stephen Kelly via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 15 15:39:39 PST 2019
steveire created this revision.
steveire added a reviewer: aaron.ballman.
Herald added a subscriber: cfe-commits.
Removal of the child node makes it easier to separate traversal from
output generation.
Repository:
rC Clang
https://reviews.llvm.org/D56752
Files:
lib/AST/ASTDumper.cpp
Index: lib/AST/ASTDumper.cpp
===================================================================
--- lib/AST/ASTDumper.cpp
+++ lib/AST/ASTDumper.cpp
@@ -1379,12 +1379,12 @@
if (D->isVariadic())
OS << " variadic";
+ if (D->capturesCXXThis())
+ OS << "captures_this";
+
for (auto I : D->parameters())
dumpDecl(I);
- if (D->capturesCXXThis())
- dumpChild([=]{ OS << "capture this"; });
-
for (const auto &I : D->captures())
Visit(I);
dumpStmt(D->getBody());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56752.181905.patch
Type: text/x-patch
Size: 494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190115/0720faf8/attachment.bin>
More information about the cfe-commits
mailing list