@@ -481,7 +481,7 @@ class sema
481
481
}
482
482
// --------- END TEMPORARY REGRESSION TEST CODE FOR G_D_O OPTIMIZATION VERIFICATION -----------
483
483
484
- auto timer = scope_timer (" get_declaration_of_new - including external caching" );
484
+ CPP2_SCOPE_TIMER (" get_declaration_of_new - including external caching" );
485
485
486
486
// Check the cache first to avoid duplicate computations
487
487
//
@@ -554,7 +554,7 @@ class sema
554
554
) const
555
555
-> declaration_sym const *
556
556
{
557
- auto timer = scope_timer (" get_declaration_of - old" );
557
+ CPP2_SCOPE_TIMER (" get_declaration_of - old" );
558
558
559
559
// First find the position the query is coming from
560
560
// and remember its depth
@@ -750,15 +750,15 @@ class sema
750
750
) const
751
751
-> declaration_sym const *
752
752
{
753
- auto timer = scope_timer (" get_declaration_of_new" );
753
+ CPP2_SCOPE_TIMER (" get_declaration_of_new" );
754
754
755
755
// First find the position the query is coming from
756
756
// and remember its depth
757
757
auto i = symbols.cbegin ();
758
758
auto depth = 0 ;
759
759
760
760
{
761
- auto timer1 = scope_timer (" get_declaration_of_new - phase 1 initial loop" );
761
+ CPP2_SCOPE_TIMER (" get_declaration_of_new - phase 1 initial loop" );
762
762
763
763
// If the declaration_starts list got this far yet, use that to
764
764
// skip repeating the whole linear search from the table beginning
@@ -887,20 +887,20 @@ class sema
887
887
}
888
888
}
889
889
890
- auto timer2 = scope_timer (" get_declaration_of_new - phase 2 backward scan loop" );
890
+ CPP2_SCOPE_TIMER (" get_declaration_of_new - phase 2 backward scan loop" );
891
891
892
892
// Then look backward to find the first declaration of
893
893
// this name that is not deeper (in a nested scope)
894
894
// and is in the same function
895
895
using I = stable_vector<symbol>::const_iterator;
896
896
auto advance = [](I& i, int n, I bound) { // TODO Use `std::ranges::advance`
897
- auto timer2a = scope_timer (" get_declaration_of_new - phase 2a 'advance' part of loop" );
897
+ CPP2_SCOPE_TIMER (" get_declaration_of_new - phase 2a 'advance' part of loop" );
898
898
auto in = i;
899
899
if (std::abs (n) >= std::abs (bound - i)) {
900
900
i = bound;
901
901
}
902
902
else {
903
- auto timer2aa = scope_timer (" get_declaration_of_new - phase 2aa 'std::advance' specifically" );
903
+ CPP2_SCOPE_TIMER (" get_declaration_of_new - phase 2aa 'std::advance' specifically" );
904
904
std::advance (i, n);
905
905
}
906
906
return n - (i - in);
@@ -942,7 +942,7 @@ class sema
942
942
return &decl;
943
943
}
944
944
945
- auto timer2b = scope_timer (" get_declaration_of_new - phase 2b 'move this' part of loop" );
945
+ CPP2_SCOPE_TIMER (" get_declaration_of_new - phase 2b 'move this' part of loop" );
946
946
947
947
// If we reached a 'move this' parameter, look it up in the type members
948
948
if (
0 commit comments