Skip to content

Commit 9fa2c70

Browse files
committed
Parser.cpp: fix TypeLoc::Elaborated wrapped inside TypeLoc::Qualified
1 parent 4b6b3ca commit 9fa2c70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CppParser/Parser.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2649,7 +2649,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
26492649
UTL = TL->getUnqualifiedLoc();
26502650
TL = &UTL;
26512651
}
2652-
else if (TypeLocClass == TypeLoc::Elaborated)
2652+
if (TypeLocClass == TypeLoc::Elaborated)
26532653
{
26542654
ETL = TL->getAs<ElaboratedTypeLoc>();
26552655
ITL = ETL.getNextTypeLoc();
@@ -2698,7 +2698,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
26982698
UTL = TL->getUnqualifiedLoc();
26992699
TL = &UTL;
27002700
}
2701-
else if (TypeLocClass == TypeLoc::Elaborated)
2701+
if (TypeLocClass == TypeLoc::Elaborated)
27022702
{
27032703
ETL = TL->getAs<ElaboratedTypeLoc>();
27042704
ITL = ETL.getNextTypeLoc();
@@ -2747,7 +2747,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
27472747
UTL = TL->getUnqualifiedLoc();
27482748
TL = &UTL;
27492749
}
2750-
else if (TypeLocClass == TypeLoc::Elaborated)
2750+
if (TypeLocClass == TypeLoc::Elaborated)
27512751
{
27522752
ETL = TL->getAs<ElaboratedTypeLoc>();
27532753
ITL = ETL.getNextTypeLoc();

0 commit comments

Comments
 (0)