Instantiation pattern is null for incomplete template types and using
specializaiton decl results in not seeing re-declarations.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang-tools-extra/include-cleaner/lib/WalkAST.cpp | ||
|---|---|---|
| 85–86 | update comment - dependent or not resolved to a pattern yet? | |
| clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp | ||
| 163 | There's no incomplete template here (did you mean template <typename struct Foo; or template <typename T> struct Foo<T*>;?) If it's enough that the template is never instantiated then maybe it's still clearer not to provide a definition (and tweak the comment slightly?) | |
- Update comments & test
| clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp | ||
|---|---|---|
| 163 |
right, i meant the instantiation being "incomplete", not the template-decl itself. dropping the definition and updating the comment | |
update comment - dependent or not resolved to a pattern yet?