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();