qt6-bb10/util/cmake/tests/data
Alexandru Croitor 76f5b784ce Fix the fix to correctly handle comments in multi-line assignments
The previous fix where the Grammar comment style was changed to
remove the newlines was incorrect, because if you have

 foo=1#comment
 bar=2

after the Grammar comment ignoring, it would transform into

 foo=1bar=2

which will clearly fail to parse, so the new line has to stay.

But we would still have the following case which would fail:
 foo=a \
 # comment
 b

Apparently qmake things that's the equivalent of
foo=a b

but the grammar parses it as
 foo=a \
 \n (newline)
 b

Thus the parsing fails because there's a newline and then some
weird 'b' token which the grammar does not expect.

The best fix I found is to preprocess the source, to remove
completely commented out lines.

So:
 foo=a \
 # comment
 b

gets transformed into

 foo=a \
 b

Change-Id: I2487a0dbf94a6ad4d917d0a0ce05247341e9b7da
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-05-20 13:18:11 +00:00
..
comment_scope.pro CMake: pro2cmake.py: Better parsing of scopes with else 2019-02-27 16:02:45 +00:00
complex_assign.pro CMake: pro2cmake.py: Handle values with () in assignments 2019-02-27 16:03:20 +00:00
complex_condition.pro CMake: pro2cmake.py: Handle complex conditions 2019-02-28 08:06:49 +00:00
complex_values.pro
contains_scope.pro CMake: pro2cmake.py: Better parsing of scopes with else 2019-02-27 16:02:45 +00:00
definetest.pro
else.pro
else2.pro
else3.pro
else4.pro
else5.pro
else6.pro
else7.pro
else8.pro
escaped_value.pro CMake: pro2cmake.py: Make \$\$QT_FOO work in assignments 2019-02-28 08:08:17 +00:00
for.pro CMake: pro2cmake.py: Fix parsing of for loops 2019-02-28 08:08:00 +00:00
function_if.pro
include.pro
lc.pro CMake: pro2cmake.py: Simplify code and add test for line continuation 2019-02-28 08:08:41 +00:00
lc_with_comment.pro Fix the fix to correctly handle comments in multi-line assignments 2019-05-20 13:18:11 +00:00
load.pro
multiline_assign.pro CMake: pro2cmake.py: Better parsing of scopes with else 2019-02-27 16:02:45 +00:00
quoted.pro
single_line_for.pro CMake: pro2cmake.py: Handle for loops without block 2019-02-28 08:08:30 +00:00
sql.pro CMake: pro2cmake.py: Fix parsing of Line continuation before end of file 2019-02-28 08:08:08 +00:00
standardpaths.pro CMake: pro2cmake.py: Better parsing of scopes with else 2019-02-27 16:02:45 +00:00
unset.pro