[PATCH] D81667: [RFC, FileCheck] Add precision to format specifier
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 18 17:31:41 PDT 2020
MaskRay added a comment.
I want to raise one point. Some people may expect format specifier to be similar to scanf, instead of printf. scanf uses similar but less powerful format specifiers than printf. For instance, `.` is not valid in scanf. `%.4u` should fail (though glibc appears to be weird things; musl is good). In scanf, `%4u` reads **at most** 4 digits, not exactly 4 digits. The only way is `%4c` plus a conversion -> this is certainly not suitable in FileCheck. Anyway `%.4u` stills looks good to me.
If no variable is captured, is the syntax `[[#%.4u:]]`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81667/new/
https://reviews.llvm.org/D81667
More information about the llvm-commits
mailing list