diff options
| author | Stephen Kelly <steveire@gmail.com> | 2019-01-18 21:55:24 +0000 |
|---|---|---|
| committer | Stephen Kelly <steveire@gmail.com> | 2019-01-18 21:55:24 +0000 |
| commit | 5110ebd9fe5f3c4d6714b6b01635f8f211786808 (patch) | |
| tree | 71e885ffc35931e0c4d164a56999cced36d3a60c /clang/lib/AST | |
| parent | 96e47014010440adbc700e66c68e566236dfc2dd (diff) | |
| download | bcm5719-llvm-5110ebd9fe5f3c4d6714b6b01635f8f211786808.tar.gz bcm5719-llvm-5110ebd9fe5f3c4d6714b6b01635f8f211786808.zip | |
[ASTDump] Mark BlockDecls which capture this with a tag
Summary:
Removal of the child node makes it easier to separate traversal from
output generation.
Reviewers: aaron.ballman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D56752
llvm-svn: 351600
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/ASTDumper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp index b99ed3b286b..e2390baa7a4 100644 --- a/clang/lib/AST/ASTDumper.cpp +++ b/clang/lib/AST/ASTDumper.cpp @@ -1379,12 +1379,12 @@ void ASTDumper::VisitBlockDecl(const BlockDecl *D) { 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()); |

