[PATCH] D64589: [UpdateLLCTestChecks] Emit warning when invalid value for -check-prefix option
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 13:57:32 PDT 2019
xbolva00 updated this revision to Diff 209324.
xbolva00 added a comment.
More precise checker.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64589/new/
https://reviews.llvm.org/D64589
Files:
utils/update_llc_test_checks.py
Index: utils/update_llc_test_checks.py
===================================================================
--- utils/update_llc_test_checks.py
+++ utils/update_llc_test_checks.py
@@ -102,6 +102,13 @@
check_prefixes = [item for m in common.CHECK_PREFIX_RE.finditer(filecheck_cmd)
for item in m.group(1).split(',')]
+
+ if len(check_prefixes) > 1:
+ wrong_prefix = ",".join(check_prefixes)
+ if ("-check-prefix=" + wrong_prefix) in filecheck_cmd:
+ print('WARNING: Prefix \'%s\' is invalid. Did you mean \'-check-prefixes=%s\'?' %
+ (wrong_prefix, wrong_prefix), file=sys.stderr)
+
if not check_prefixes:
check_prefixes = ['CHECK']
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64589.209324.patch
Type: text/x-patch
Size: 740 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190711/7dc1a730/attachment.bin>
More information about the llvm-commits
mailing list