[PATCH] D120949: [clang][AST matchers] adding hasSubStmt matcher under attributedStmt so we can actually match the stmt inside the attribute is attached to
Alister Johnson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 3 17:05:32 PST 2022
ajohnson-uoregon created this revision.
Herald added a project: All.
ajohnson-uoregon requested review of this revision.
Herald added projects: clang, clang-tools-extra.
Herald added a subscriber: cfe-commits.
fixing to use new [[clang::matcher_block]] attr and clean up some old code; currently inserts/replaces code at the wrong place because it thinks the compoundStmt brackets are the start and end of the match when really it's one char after/before...
...the brackets
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120949
Files:
clang-tools-extra/clang-rewrite/ClangRewrite.cpp
clang-tools-extra/clang-rewrite/MatcherGenCallback.h
clang-tools-extra/clang-rewrite/NewCodeCallback.h
clang-tools-extra/clang-rewrite/RewriteCallback.h
clang-tools-extra/clang-rewrite/tests/new.cpp
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/lib/ASTMatchers/Dynamic/Registry.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120949.412870.patch
Type: text/x-patch
Size: 12122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220304/e684d36e/attachment-0001.bin>
More information about the cfe-commits
mailing list