From 9fa2c70675aba7c074d796845b964e5b8bc294ab Mon Sep 17 00:00:00 2001 From: Deadlocklogic Date: Tue, 2 Jan 2024 07:19:25 +0200 Subject: [PATCH] Parser.cpp: fix TypeLoc::Elaborated wrapped inside TypeLoc::Qualified --- src/CppParser/Parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp index 379a1b8c9..81f6f0b7b 100644 --- a/src/CppParser/Parser.cpp +++ b/src/CppParser/Parser.cpp @@ -2649,7 +2649,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL, UTL = TL->getUnqualifiedLoc(); TL = &UTL; } - else if (TypeLocClass == TypeLoc::Elaborated) + if (TypeLocClass == TypeLoc::Elaborated) { ETL = TL->getAs(); ITL = ETL.getNextTypeLoc(); @@ -2698,7 +2698,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL, UTL = TL->getUnqualifiedLoc(); TL = &UTL; } - else if (TypeLocClass == TypeLoc::Elaborated) + if (TypeLocClass == TypeLoc::Elaborated) { ETL = TL->getAs(); ITL = ETL.getNextTypeLoc(); @@ -2747,7 +2747,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL, UTL = TL->getUnqualifiedLoc(); TL = &UTL; } - else if (TypeLocClass == TypeLoc::Elaborated) + if (TypeLocClass == TypeLoc::Elaborated) { ETL = TL->getAs(); ITL = ETL.getNextTypeLoc();