diff options
author | Itamar <itamar8910@gmail.com> | 2022-02-05 20:28:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-09 00:51:31 +0100 |
commit | b67a090b79ddae8968aad610f3677554e00ea547 (patch) | |
tree | 5b351f538203b32172405dbb17b67fadf7906cdd /Userland/Libraries/LibCpp | |
parent | bed60b2d494715bb3738f6c8ce2def22f7f51ae4 (diff) | |
download | serenity-b67a090b79ddae8968aad610f3677554e00ea547.zip |
LibCpp: Fix lexing of IncludePath token
Previously, there was a duplicate IncludePath token in the lexing
result.
Diffstat (limited to 'Userland/Libraries/LibCpp')
-rw-r--r-- | Userland/Libraries/LibCpp/Preprocessor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCpp/Preprocessor.cpp b/Userland/Libraries/LibCpp/Preprocessor.cpp index dfb0d58691..b8da494a6e 100644 --- a/Userland/Libraries/LibCpp/Preprocessor.cpp +++ b/Userland/Libraries/LibCpp/Preprocessor.cpp @@ -46,6 +46,7 @@ Vector<Token> 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; } |