This is an archive of the discontinued LLVM Phabricator instance.

[ASTMatchers] Fix parent-child traversal between functions and parms
AbandonedPublic

Authored by steveire on Feb 5 2021, 3:40 AM.

Details

Summary

Having to match on the typeLoc in AsIs mode is undesirable, but keep it
for now for compatbility.

Diff Detail

Event Timeline

steveire created this revision.Feb 5 2021, 3:40 AM
steveire requested review of this revision.Feb 5 2021, 3:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2021, 3:40 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

I have no issues here, but see what the others say as well.
Also related post to cfe-dev - https://lists.llvm.org/pipermail/cfe-dev/2021-February/067629.html

clang/lib/ASTMatchers/ASTMatchFinder.cpp
148–151

nit: Inner If doesn't need braces, but I'd prefer the loop to have them.

klimek added a comment.Feb 8 2021, 1:01 AM

Can you explain the change and the before/after a bit more? Thanks!

Can you explain the change and the before/after a bit more? Thanks!

I'm not sure. Can you ask a more-specific question? Did you read the link that Nathan posted? Is the unit test unclear?

steveire abandoned this revision.Feb 28 2021, 6:46 PM

Clearing this out of my outgoing list.