We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70cb071 commit 927077bCopy full SHA for 927077b
source/sema.h
@@ -323,10 +323,8 @@ class sema
323
// Then look backward to find the first declaration of
324
// this name that is not deeper (in a nested scope)
325
// and is in the same function
326
- if (i->position() > t.position()) {
327
- --i;
328
- }
329
- ++i;
+ std::ranges::advance(i, -int(i->position() > t.position()), symbols.cbegin());
+ std::ranges::advance(i, 1, symbols.cend());
330
auto reached_type = false;
331
while (std::ranges::advance(i, -1, symbols.begin()) == 0)
332
{
0 commit comments