@@ -2643,13 +2643,12 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
26432643 if (LocValid)
26442644 {
26452645 TypeLoc UTL, ETL, ITL;
2646- auto TypeLocClass = TL->getTypeLocClass ();
2647- if (TypeLocClass == TypeLoc::Qualified)
2646+ if (TL->getTypeLocClass () == TypeLoc::Qualified)
26482647 {
26492648 UTL = TL->getUnqualifiedLoc ();
26502649 TL = &UTL;
26512650 }
2652- else if (TypeLocClass == TypeLoc::Elaborated)
2651+ if (TL-> getTypeLocClass () == TypeLoc::Elaborated)
26532652 {
26542653 ETL = TL->getAs <ElaboratedTypeLoc>();
26552654 ITL = ETL.getNextTypeLoc ();
@@ -2692,13 +2691,12 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
26922691 if (LocValid)
26932692 {
26942693 TypeLoc UTL, ETL, ITL;
2695- auto TypeLocClass = TL->getTypeLocClass ();
2696- if (TypeLocClass == TypeLoc::Qualified)
2694+ if (TL->getTypeLocClass () == TypeLoc::Qualified)
26972695 {
26982696 UTL = TL->getUnqualifiedLoc ();
26992697 TL = &UTL;
27002698 }
2701- else if (TypeLocClass == TypeLoc::Elaborated)
2699+ if (TL-> getTypeLocClass () == TypeLoc::Elaborated)
27022700 {
27032701 ETL = TL->getAs <ElaboratedTypeLoc>();
27042702 ITL = ETL.getNextTypeLoc ();
@@ -2747,7 +2745,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
27472745 UTL = TL->getUnqualifiedLoc ();
27482746 TL = &UTL;
27492747 }
2750- else if (TypeLocClass == TypeLoc::Elaborated)
2748+ if (TypeLocClass == TypeLoc::Elaborated)
27512749 {
27522750 ETL = TL->getAs <ElaboratedTypeLoc>();
27532751 ITL = ETL.getNextTypeLoc ();
0 commit comments