[PATCH] D77383: [FileCheck] Allow parenthesized expressions

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 3 05:20:39 PDT 2020


arichardson created this revision.
arichardson added reviewers: thopre, probinson, jhenderson.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77383

Files:
  llvm/lib/Support/FileCheck.cpp
  llvm/lib/Support/FileCheckImpl.h
  llvm/unittests/Support/FileCheckTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77383.254754.patch
Type: text/x-patch
Size: 7186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200403/fe706210/attachment.bin>


More information about the llvm-commits mailing list