qt5base-lts/util/cmake/tests/data
Alexandru Croitor 2389aaf8c7 pro2cmake: Handle qmake condition operator precedence
Unfortunately qmake does not have operator precedence in conditions,
and each sub-expression is simply evaluated left to right.

So c1|c2:c3 is evaluated as (c1|c2):c3 and not c1|(c2:c3). To handle
that in pro2cmake, wrap each condition sub-expression in parentheses.

It's ugly, but there doesn't seem to be another way of handling it,
because SymPy uses Python operator precedence for condition operators,
and it's not possible to change the precendece.

Fixes: QTBUG-78929
Change-Id: I6ab767c4243e3f2d0fea1c36cd004409faba3a53
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2022-02-28 15:41:11 +01: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 Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
condition_operator_precedence.pro pro2cmake: Handle qmake condition operator precedence 2022-02-28 15:41:11 +01:00
condition_without_scope.pro Improve qmake syntax parser in pro2cmake.py 2019-05-23 14:17:46 +00:00
contains_scope.pro CMake: pro2cmake.py: Better parsing of scopes with else 2019-02-27 16:02:45 +00:00
definetest.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
else2.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
else3.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
else4.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
else5.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
else6.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
else7.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
else8.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
else.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
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 Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
include.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +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
lc.pro CMake: pro2cmake.py: Simplify code and add test for line continuation 2019-02-28 08:08:41 +00:00
load.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
multi_condition_divided_by_lc.pro Improve qmake syntax parser in pro2cmake.py 2019-05-23 14:17:46 +00:00
multiline_assign.pro CMake: pro2cmake.py: Better parsing of scopes with else 2019-02-27 16:02:45 +00:00
nested_function_calls.pro Improve qmake syntax parser in pro2cmake.py 2019-05-23 14:17:46 +00:00
quoted.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
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 Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
unset.pro Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
value_function.pro Add support for converting qtTargetLibrary() value assignments 2019-08-08 13:03:28 +00:00