We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 752ca94 commit bce6ee5Copy full SHA for bce6ee5
1 file changed
cpp/ql/src/semmle/code/cpp/AutogeneratedFile.qll
@@ -23,11 +23,15 @@ private bindingset[comment] predicate autogeneratedComment(string comment) {
23
24
// changes made in this file will be lost
25
"(changes made in this file will be lost)|" +
26
-
27
- // do not edit/modify
+
+ // do not edit/modify (not mid-sentence)
28
"(^ do(n't|nt| not) (hand-?)?(edit|modify))|" +
29
- "(! do(n't|nt| not) (hand-?)?(edit|modify))" and
30
+ "(! do(n't|nt| not) (hand-?)?(edit|modify))|" +
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
35
comment.regexpMatch("(?si).*(" +
36
// replace `generated` with a regexp that also catches things like
37
// `auto-generated`.
0 commit comments