@@ -461,7 +461,7 @@ CXScopeSet* clang_scope_getEnumConstants(CXScope S) {
461461 Set->Scopes = new CXScope[Set->Count ]; // NOLINT(*-owning-memory)
462462 for (auto En : llvm::enumerate (ED->enumerators ())) {
463463 auto Idx = En.index ();
464- auto Val = En.value ();
464+ auto * Val = En.value ();
465465 Set->Scopes [Idx] = makeCXScope (getMeta (S), Val, CXScope_EnumConstant);
466466 }
467467
@@ -575,7 +575,7 @@ CXScopeSet* clang_scope_getUsingNamespaces(CXScope S) {
575575 Set->Scopes = new CXScope[Set->Count ]; // NOLINT(*-owning-memory)
576576 for (auto En : llvm::enumerate (DC->using_directives ())) {
577577 auto Idx = En.index ();
578- auto Val = En.value ();
578+ auto * Val = En.value ();
579579 Set->Scopes [Idx] = makeCXScope (getMeta (S), Val->getNominatedNamespace (),
580580 CXScope_Namespace);
581581 }
@@ -757,7 +757,7 @@ CXScopeSet* clang_scope_getClassMethods(CXScope S) {
757757 Set->Scopes = new CXScope[Set->Count ]; // NOLINT(*-owning-memory)
758758 for (auto En : llvm::enumerate (Methods)) {
759759 auto Idx = En.index ();
760- auto Val = En.value ();
760+ auto * Val = En.value ();
761761 Set->Scopes [Idx] = makeCXScope (getMeta (S), Val, CXScope_Function);
762762 }
763763
@@ -795,7 +795,7 @@ CXScopeSet* clang_scope_getFunctionTemplatedDecls(CXScope S) {
795795 Set->Scopes = new CXScope[Set->Count ]; // NOLINT(*-owning-memory)
796796 for (auto En : llvm::enumerate (Methods)) {
797797 auto Idx = En.index ();
798- auto Val = En.value ();
798+ auto * Val = En.value ();
799799 Set->Scopes [Idx] = makeCXScope (getMeta (S), Val, CXScope_Function);
800800 }
801801
@@ -865,7 +865,7 @@ CXScopeSet* clang_scope_getFunctionsUsingName(CXScope S, const char* name) {
865865 Set->Scopes = new CXScope[Set->Count ]; // NOLINT(*-owning-memory)
866866 for (auto En : llvm::enumerate (Funcs)) {
867867 auto Idx = En.index ();
868- auto Val = En.value ();
868+ auto * Val = En.value ();
869869 Set->Scopes [Idx] = makeCXScope (getMeta (S), Val, CXScope_Function);
870870 }
871871
@@ -1015,7 +1015,7 @@ CXScopeSet* clang_scope_getClassTemplatedMethods(const char* name,
10151015 Set->Scopes = new CXScope[Set->Count ]; // NOLINT(*-owning-memory)
10161016 for (auto En : llvm::enumerate (Funcs)) {
10171017 auto Idx = En.index ();
1018- auto Val = En.value ();
1018+ auto * Val = En.value ();
10191019 Set->Scopes [Idx] = makeCXScope (getMeta (parent), Val, CXScope_Function);
10201020 }
10211021
@@ -1136,7 +1136,7 @@ CXScopeSet* clang_scope_getDatamembers(CXScope S) {
11361136 Set->Scopes = new CXScope[Set->Count ]; // NOLINT(*-owning-memory)
11371137 for (auto En : llvm::enumerate (CXXRD->fields ())) {
11381138 auto Idx = En.index ();
1139- auto Val = En.value ();
1139+ auto * Val = En.value ();
11401140 Set->Scopes [Idx] = makeCXScope (getMeta (S), Val, CXScope_Function);
11411141 }
11421142
0 commit comments