[clang] cf0b3af - [clang][utils] make-ast-dump-check.sh: strip line and column numbers when generating serialization tests
Bruno Ricci via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 6 08:52:51 PDT 2020
Author: Bruno Ricci
Date: 2020-07-06T16:52:35+01:00
New Revision: cf0b3affed47811b02127383c7eec27285ac35a3
URL: https://github.com/llvm/llvm-project/commit/cf0b3affed47811b02127383c7eec27285ac35a3
DIFF: https://github.com/llvm/llvm-project/commit/cf0b3affed47811b02127383c7eec27285ac35a3.diff
LOG: [clang][utils] make-ast-dump-check.sh: strip line and column numbers when generating serialization tests
Added:
Modified:
clang/utils/make-ast-dump-check.sh
Removed:
################################################################################
diff --git a/clang/utils/make-ast-dump-check.sh b/clang/utils/make-ast-dump-check.sh
index f0c268c883e9..365f227cc1c6 100755
--- a/clang/utils/make-ast-dump-check.sh
+++ b/clang/utils/make-ast-dump-check.sh
@@ -70,6 +70,10 @@ BEGIN {
if ($generate_serialization_test == 1) {
gsub(" imported", "{{( imported)?}}", s)
gsub(" <undeserialized declarations>", "{{( <undeserialized declarations>)?}}", s)
+ gsub("line:[0-9]+:[0-9]+", "line:{{.*}}", s)
+ gsub("line:[0-9]+", "line:{{.*}}", s)
+ gsub("col:[0-9]+", "col:{{.*}}", s)
+ gsub(":[0-9]+:[0-9]+", "{{.*}}", s)
}
}
More information about the cfe-commits
mailing list