[clang][utils] make-ast-dump-check.sh: strip line and column numbers when generating serialization tests

This commit is contained in:
Bruno Ricci 2020-07-06 16:48:50 +01:00
parent 7308e14326
commit cf0b3affed
No known key found for this signature in database
GPG Key ID: D58C906B2F684D92
1 changed files with 4 additions and 0 deletions

View File

@ -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)
}
}