This is an archive of the discontinued LLVM Phabricator instance.

[include-cleaner] Unify behaviour for static & instance members
ClosedPublic

Authored by kadircet on Apr 17 2023, 11:28 AM.

Diff Detail

Event Timeline

kadircet created this revision.Apr 17 2023, 11:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 11:28 AM
kadircet requested review of this revision.Apr 17 2023, 11:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 11:28 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.Apr 17 2023, 11:52 PM
hokein added inline comments.
clang-tools-extra/include-cleaner/lib/WalkAST.cpp
128–134

We have two handled cases, it is not quite obvious to spot the difference between them. It would be nice to add a comment clarifying this is for accessing the static member instance.

clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp
117

can you add a testcase for static-member-call as well?

This revision is now accepted and ready to land.Apr 17 2023, 11:52 PM
kadircet updated this revision to Diff 514546.Apr 18 2023, 12:51 AM
kadircet marked 2 inline comments as done.
  • Adress review comments
  • Handle Qualifier being null