HomePhabricator

[FileCheck] Allow parenthesized expressions

Authored by arichardson on May 27 2020, 7:13 AM.

Description

[FileCheck] Allow parenthesized expressions

With this change it is be possible to write FileCheck expressions such
as #(VAR+1)-2. Currently, the only supported arithmetic operators are
plus and minus, so this is not particularly useful yet. However, it our
CHERI fork we have tests that benefit from having multiplication in
FileCheck expressions. Allowing parenthesized expressions is the simplest
way for us to work around the current lack of operator precedence in
FileCheck expressions.

Reviewed By: thopre, jhenderson
Differential Revision: https://reviews.llvm.org/D77383

Details

Committed
arichardsonMay 27 2020, 8:31 AM
Reviewer
thopre
Differential Revision
D77383: [FileCheck] Allow parenthesized expressions
Parents
rG461af57de781: Add support for UnaryOperator in SyntaxTree
Branches
Unknown
Tags
Unknown