This is an archive of the discontinued LLVM Phabricator instance.

[ASTMatchers] Add matchers for decomposition decls
ClosedPublic

Authored by steveire on Jan 30 2021, 8:27 AM.

Diff Detail

Event Timeline

steveire requested review of this revision.Jan 30 2021, 8:27 AM
steveire created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 30 2021, 8:27 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Thanks for this! It generally looks good, aside from some minor nits. Btw, it looks like the HTML documentation wasn't regenerated for the patch.

clang/include/clang/ASTMatchers/ASTMatchers.h
7392

Can you add code examples to all of the new functionality?

7395–7397
clang/lib/ASTMatchers/Dynamic/Registry.cpp
274

This should be kept in alphabetical order.

clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
2142–2144

Can you add some test coverage for the invalid cases as well, like asking for an out-of-range binding?

This revision is now accepted and ready to land.Feb 2 2021, 5:37 AM
This revision was landed with ongoing or failed builds.Feb 2 2021, 6:11 AM
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Feb 2 2021, 6:46 AM

Looks like this doesn't link on windows: http://45.33.8.238/win/32481/step_4.txt

Looks like this doesn't link on windows: http://45.33.8.238/win/32481/step_4.txt

Thanks, should be fixed now.

thakis added a comment.Feb 2 2021, 8:43 AM

Thanks for the quick fix!