forked from OSchip/llvm-project
[clang][utils] make-ast-dump-check.sh: strip line and column numbers when generating serialization tests
This commit is contained in:
parent
7308e14326
commit
cf0b3affed
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue