This is an archive of the discontinued LLVM Phabricator instance.

Porting shouldVisitImplicitCode to DataRecursiveASTVisitor.
AbandonedPublic

Authored by bcraig on Nov 9 2015, 11:59 AM.

Details

Reviewers
akyrtzi
rsmith
Summary

RecursiveASTVisitor allows visitors to specify whether they wish to visit
implicitly created code or not. I have ported that code over to
DataRecursiveASTVisitor.

DataRecursiveASTVisitor didn't have any tests before this change, so I forked
RecursiveASTVisitorTestExprVisitor. This test exercised some
defaultArgumentWasInherited() cases, so I got those working as well.

I plan on using this new feature in a checker that searches for excess padding.

Diff Detail

Repository
rL LLVM

Event Timeline

bcraig updated this revision to Diff 39731.Nov 9 2015, 11:59 AM
bcraig retitled this revision from to Porting shouldVisitImplicitCode to DataRecursiveASTVisitor..
bcraig updated this object.
bcraig added reviewers: zaks.anna, rsmith.
bcraig added a subscriber: cfe-commits.
zaks.anna edited reviewers, added: akyrtzi; removed: zaks.anna.Nov 9 2015, 2:48 PM
zaks.anna added a subscriber: zaks.anna.

Removed myself as a reviewer and added Argyrios instead.

Ping. Note that the test is basically a copy / paste job, and the new code in DataRecursiveASTVisitor.h is a very direct translation from the 'regular' RecursiveASTVisitor.h.

akyrtzi edited edge metadata.Nov 16 2015, 1:07 PM
akyrtzi added a subscriber: akyrtzi.

LGTM.

bcraig abandoned this revision.Nov 24 2015, 1:32 PM

Largely supplanted by r253958