CPP: Consider more files to be generated.

This commit is contained in:
Geoffrey White
2019-04-01 18:26:44 +01:00
parent 752ca94402
commit bce6ee5c27

View File

@@ -23,11 +23,15 @@ private bindingset[comment] predicate autogeneratedComment(string comment) {
// changes made in this file will be lost
"(changes made in this file will be lost)|" +
// do not edit/modify
// do not edit/modify (not mid-sentence)
"(^ do(n't|nt| not) (hand-?)?(edit|modify))|" +
"(! do(n't|nt| not) (hand-?)?(edit|modify))" and
"(! do(n't|nt| not) (hand-?)?(edit|modify))|" +
// do not edit/modify + generated
"(do(n't|nt| not) (hand-?)?(edit|modify).*generated)|" +
"(generated.*do(n't|nt| not) (hand-?)?(edit|modify))" and
comment.regexpMatch("(?si).*(" +
// replace `generated` with a regexp that also catches things like
// `auto-generated`.