1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

(glslang) fix misleading indentation warning

This commit is contained in:
libretroadmin 2024-04-06 18:15:49 +02:00
parent 5d66883e81
commit c359ae5522

View File

@ -185,17 +185,21 @@ bool TInputScanner::scanVersion(int& version, EProfile& profile, bool& notFirstT
if (lookingInMiddle) {
notFirstToken = true;
// make forward progress by finishing off the current line plus extra new lines
if ((peek() == '\n') || (peek() == '\r')) {
if ((peek() == '\n') || (peek() == '\r'))
{
while ((peek() == '\n') || (peek() == '\r'))
get();
} else
}
else
{
do {
c = get();
} while (c != EndOfInput && c != '\n' && c != '\r');
while ((peek() == '\n') || (peek() == '\r'))
get();
if (peek() == EndOfInput)
return true;
}
while ((peek() == '\n') || (peek() == '\r'))
get();
if (peek() == EndOfInput)
return true;
}
lookingInMiddle = true;
@ -270,7 +274,7 @@ bool TInputScanner::scanVersion(int& version, EProfile& profile, bool& notFirstT
profile = ECompatibilityProfile;
return versionNotFirst;
};
}
}
// Fill this in when doing glslang-level scanning, to hand back to the parser.