Merge pull request #1188 from geoffw0/donotedit

CPP: Consider more files to be generated.
This commit is contained in:
Jonas Jensen
2019-04-03 09:52:28 +02:00
committed by GitHub

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`.