From b67a090b79ddae8968aad610f3677554e00ea547 Mon Sep 17 00:00:00 2001 From: Itamar Date: Sat, 5 Feb 2022 20:28:36 +0200 Subject: [PATCH] LibCpp: Fix lexing of IncludePath token Previously, there was a duplicate IncludePath token in the lexing result. --- Userland/Libraries/LibCpp/Preprocessor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibCpp/Preprocessor.cpp b/Userland/Libraries/LibCpp/Preprocessor.cpp index dfb0d586915..b8da494a6e9 100644 --- a/Userland/Libraries/LibCpp/Preprocessor.cpp +++ b/Userland/Libraries/LibCpp/Preprocessor.cpp @@ -46,6 +46,7 @@ Vector Preprocessor::process_and_lex() m_processed_tokens.append(tokens[token_index]); m_processed_tokens.append(tokens[token_index + 1]); } + ++token_index; // Also skip IncludePath token continue; }