This is an archive of the discontinued LLVM Phabricator instance.

[include-cleaner] Attribute references to explicit specializations
ClosedPublic

Authored by kadircet on Mar 23 2023, 9:37 AM.

Diff Detail

Event Timeline

kadircet created this revision.Mar 23 2023, 9:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2023, 9:37 AM
kadircet requested review of this revision.Mar 23 2023, 9:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2023, 9:37 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.Mar 24 2023, 2:14 AM
hokein added inline comments.
clang-tools-extra/include-cleaner/lib/WalkAST.cpp
81

I think we should be careful about the case where ND == nullptr, isa will trigger an assertion, use isa_and_present.

82

We seem to miss a testcase for TypeAliasTemplateDecl, add one?

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

nit: The indentation looks weird, the template... should not align with the above testWalk text, would be better to add 4 space indentation.

This revision is now accepted and ready to land.Mar 24 2023, 2:14 AM
kadircet marked 3 inline comments as done.Mar 24 2023, 3:31 AM
kadircet added inline comments.
clang-tools-extra/include-cleaner/lib/WalkAST.cpp
82

we already have one, pointed it there

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

this is where we have the template alias type test already

kadircet updated this revision to Diff 508025.Mar 24 2023, 3:32 AM
kadircet marked an inline comment as done.
  • use isa_and_present
  • indentation for tests
This revision was landed with ongoing or failed builds.Mar 24 2023, 3:43 AM
This revision was automatically updated to reflect the committed changes.