| Issue |
61652
|
| Summary |
[include-cleaner] Attribution of uses of explicit specializations
|
| Labels |
clang-include-cleaner
|
| Assignees |
|
| Reporter |
kadircet
|
Currently all specializations are attributed to the primary template, we should make sure explicit specializations get attributed to the relevant pattern instead, e.g.:
a.h:
```
#pragma once
template <typename T> struct Foo{};
```
b.h:
```
#pragma once
#include "a.h"
template <> struct Foo<int> {};
```
use.cc:
```
#include "b.h"
void foo() { Foo<int> x; }
```
here use.cc shouldn't have any missing or unused includes.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs