From 62d7acc6d4f2e4563b5a71d6e5c90352bf732c79 Mon Sep 17 00:00:00 2001 From: Oleksandr Koval Date: Wed, 9 Sep 2020 15:49:35 +0300 Subject: cmCommandArgumentParserHelper: rework input handling Old implementation uses involved Flex input management technique that requires usage of obsolete YY_INPUT macro. This causes a lot of useless allocations and byte-by-byte scanning. New implementation avoids those hacks, it uses yy_scan_string() API to setup Flex input. Also it fixes reporting of syntax error position and corresponding tests. --- Tests/RunCMake/Syntax/NameWithNewline-stderr.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Tests/RunCMake/Syntax/NameWithNewline-stderr.txt') diff --git a/Tests/RunCMake/Syntax/NameWithNewline-stderr.txt b/Tests/RunCMake/Syntax/NameWithNewline-stderr.txt index 5cc111b5c0..77bd470fab 100644 --- a/Tests/RunCMake/Syntax/NameWithNewline-stderr.txt +++ b/Tests/RunCMake/Syntax/NameWithNewline-stderr.txt @@ -7,6 +7,6 @@ \${var\\nwith\\nnewline} - syntax error, unexpected cal_SYMBOL, expecting } \(7\) + syntax error, unexpected cal_SYMBOL, expecting } \(6\) Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\)$ -- cgit v1.2.1