aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorThomas Preud'homme <thomasp@graphcore.ai>2020-06-11 16:14:24 +0100
committerThomas Preud'homme <thomasp@graphcore.ai>2020-08-30 19:40:57 +0100
commit998709b7d553e89c4ff89725d3fa646468b7b437 (patch)
tree04ae8358db75a41d1526fde25c0b8afdb7491d3c /llvm/lib/FileCheck/FileCheck.cpp
parent719548d63d9f906b3b0e0e7d7681a9bfa1d3d8cf (diff)
downloadllvm-998709b7d553e89c4ff89725d3fa646468b7b437.zip
llvm-998709b7d553e89c4ff89725d3fa646468b7b437.tar.gz
llvm-998709b7d553e89c4ff89725d3fa646468b7b437.tar.bz2
[FileCheck] Add precision to format specifier
Add printf-style precision specifier to pad numbers to a given number of digits when matching them if the value is smaller than the given precision. This works on both empty numeric expression (e.g. variable definition from input) and when matching a numeric expression. The syntax is as follows: [[#%.<precision><format specifier>, ...] where <format specifier> is optional and ... can be a variable definition or not with an empty expression or not. In the absence of a precision specifier, a variable definition will accept leading zeros. Reviewed By: jhenderson, grimar Differential Revision: https://reviews.llvm.org/D81667
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions