File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
cpp/ql/src/semmle/code/cpp Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,15 @@ private bindingset[comment] predicate autogeneratedComment(string comment) {
2323
2424 // changes made in this file will be lost
2525 "(changes made in this file will be lost)|" +
26-
27- // do not edit/modify
26+
27+ // do not edit/modify (not mid-sentence)
2828 "(^ do(n't|nt| not) (hand-?)?(edit|modify))|" +
29- "(! do(n't|nt| not) (hand-?)?(edit|modify))" and
30-
29+ "(! do(n't|nt| not) (hand-?)?(edit|modify))|" +
30+
31+ // do not edit/modify + generated
32+ "(do(n't|nt| not) (hand-?)?(edit|modify).*generated)|" +
33+ "(generated.*do(n't|nt| not) (hand-?)?(edit|modify))" and
34+
3135 comment .regexpMatch ( "(?si).*(" +
3236 // replace `generated` with a regexp that also catches things like
3337 // `auto-generated`.
You can’t perform that action at this time.
0 commit comments