mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Merge pull request #1188 from geoffw0/donotedit
CPP: Consider more files to be generated.
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user