From f7c5a795ab2855372ad0840b566ccf0888ef3037 Mon Sep 17 00:00:00 2001 From: Bolshakov Date: Tue, 17 Jan 2023 10:55:33 +0300 Subject: [PATCH] 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. --- iwyu_ast_util.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/iwyu_ast_util.cc b/iwyu_ast_util.cc index eae8dc7..55c5190 100644 --- a/iwyu_ast_util.cc +++ b/iwyu_ast_util.cc @@ -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; }