From 84b9f9de7301c34bc34e26dc11e56fea94d05cf4 Mon Sep 17 00:00:00 2001 From: Username404 Date: Fri, 10 Sep 2021 22:20:41 +0200 Subject: [PATCH] Add the [[unlikely]] attribute to the '\r' case in lexer.cpp --- src/etc/lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/lexer.cpp b/src/etc/lexer.cpp index 3d6b0f7..74bb336 100644 --- a/src/etc/lexer.cpp +++ b/src/etc/lexer.cpp @@ -23,7 +23,7 @@ vector lex(const string& in, const char separatorCharacter) case DOT: case DOLLAR_SIGN: case SQUOTE: resVal.emplace_back(static_cast(current), string(1, current), lineNumber); break; [[likely]] case '\n': ++lineNumber; case ';': resVal.emplace_back(SEPARATOR, string(1, separatorCharacter), lineNumber); - [[likely]] case ' ': case '\t': case '\r': break; + [[likely]] case ' ': case '\t': [[unlikely]] case '\r': break; default: { tok::type type = getIdentifierCharType(current); bool isTypeString = (type == STRING);