[PATCH] D104566: [UpdateCCTestChecks] Fix --replace-value-regex across RUN lines

Joel E. Denny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 18 12:48:27 PDT 2021


jdenny created this revision.
jdenny added reviewers: arichardson, ggeorgakoudis, jdoerfert, MaskRay, mtrofin, greened.
jdenny requested review of this revision.
Herald added a subscriber: sstefan1.
Herald added projects: clang, LLVM.

Without this patch, llvm/utils/update_cc_test_checks.py fails to
perform `--replace-value-regex` replacements when two RUN lines
produce the same output and use the same single FileCheck prefix.  The 
problem is that replacements in a RUN line's output are not performed
until after comparing against previous RUN lines' output, where
replacements have already been performed.  This patch fixes that.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104566

Files:
  clang/test/utils/update_cc_test_checks/Inputs/replace-value-regex-across-runs.c
  clang/test/utils/update_cc_test_checks/Inputs/replace-value-regex-across-runs.c.expected
  clang/test/utils/update_cc_test_checks/replace-value-regex-across-runs.test
  llvm/utils/UpdateTestChecks/common.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104566.353079.patch
Type: text/x-patch
Size: 5275 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210618/53b8aeb2/attachment-0001.bin>


More information about the cfe-commits mailing list