Desugar UsingType among others

`clang::UsingType` denotes a sugar type which is introduced by a using-
declaration (e.g., `using ns::SomeType;`). It has not such a special
meaning in IWYU as `TypedefType` or `TemplateSpecializationType`.

No functional change is expected.
This commit is contained in:
Bolshakov 2023-01-17 10:55:33 +03:00 committed by Kim Gräsman
parent 971a300bb9
commit f7c5a795ab
1 changed files with 0 additions and 1 deletions

View File

@ -1144,7 +1144,6 @@ const Type* Desugar(const Type* type) {
while (true) {
// Don't desugar types that (potentially) add a name.
if (cur->getTypeClass() == Type::Typedef ||
cur->getTypeClass() == Type::Using ||
cur->getTypeClass() == Type::TemplateSpecialization) {
return cur;
}