[PATCH] D148112: [include-cleaner] Improve handling for templates
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 12 04:13:54 PDT 2023
kadircet created this revision.
Herald added a subscriber: mgrang.
Herald added a project: All.
kadircet requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Principal here is:
- Making sure each template instantiation implies use of the most specialized template. As explicit instantiations/specializations are not redeclarations of the primary template.
- Introducing a use from explicit instantiions/specializaitons to the primary template, as they're required but not traversed as part of the RAV.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148112
Files:
clang-tools-extra/include-cleaner/lib/WalkAST.cpp
clang-tools-extra/include-cleaner/unittests/AnalysisTest.cpp
clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148112.512770.patch
Type: text/x-patch
Size: 15115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230412/38a1f83a/attachment-0001.bin>
More information about the cfe-commits
mailing list