This is an archive of the discontinued LLVM Phabricator instance.

[include-fixer] do not index friend function declaration.
ClosedPublic

Authored by ioeric on Jun 9 2016, 2:35 AM.

Details

Summary

we want to exclude friend declaration, but the DeclContext of a
friend function declaration is not the class in which it is declared, so we need
to explicitly check if the parent is a friendDecl.

Diff Detail

Event Timeline

ioeric updated this revision to Diff 60147.Jun 9 2016, 2:35 AM
ioeric retitled this revision from to [include-fixer] do not index friend function declaration..
ioeric updated this object.
ioeric added a reviewer: bkramer.
ioeric added a subscriber: cfe-commits.
bkramer accepted this revision.Jun 9 2016, 6:38 AM
bkramer edited edge metadata.

Makes sense.

This revision is now accepted and ready to land.Jun 9 2016, 6:38 AM
This revision was automatically updated to reflect the committed changes.