diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-07-19 20:18:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-23 11:33:50 (GMT) |
commit | d427f12b7324c13d0b90cf02d2261cce8cf7be84 (patch) | |
tree | 9ff072ce1ea829ee652274f2d47d105b9e6100c4 /Source/LexerParser/cmExprParser.y | |
parent | 59b3000c08d5ba3de947cd196620c73c0e823b45 (diff) | |
download | CMake-d427f12b7324c13d0b90cf02d2261cce8cf7be84.zip CMake-d427f12b7324c13d0b90cf02d2261cce8cf7be84.tar.gz CMake-d427f12b7324c13d0b90cf02d2261cce8cf7be84.tar.bz2 |
math(EXPR): Implement ~(exp_NOT) expression as documented
Fixes: #19252
Diffstat (limited to 'Source/LexerParser/cmExprParser.y')
-rw-r--r-- | Source/LexerParser/cmExprParser.y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/LexerParser/cmExprParser.y b/Source/LexerParser/cmExprParser.y index 2137473..7ae2118 100644 --- a/Source/LexerParser/cmExprParser.y +++ b/Source/LexerParser/cmExprParser.y @@ -151,6 +151,9 @@ unary: | exp_MINUS unary { $<Number>$ = - $<Number>2; } +| exp_NOT unary { + $<Number>$ = ~ $<Number>2; + } factor: exp_NUMBER { |