[all-commits] [llvm/llvm-project] 3be5e5: [FileCheck] Allow parenthesized expressions

Alexander Richardson via All-commits all-commits at lists.llvm.org
Wed May 27 08:34:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3be5e53f208d63135bb4e8499abdc1ac8a2b3266
      https://github.com/llvm/llvm-project/commit/3be5e53f208d63135bb4e8499abdc1ac8a2b3266
  Author: Alex Richardson <Alexander.Richardson at cl.cam.ac.uk>
  Date:   2020-05-27 (Wed, 27 May 2020)

  Changed paths:
    M llvm/docs/CommandGuide/FileCheck.rst
    M llvm/lib/Support/FileCheck.cpp
    M llvm/lib/Support/FileCheckImpl.h
    M llvm/test/FileCheck/numeric-expression.txt
    M llvm/unittests/Support/FileCheckTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list