Compare commits

...

1 Commits

Author SHA1 Message Date
Philip Ginsbach
5c53979210 fix QL match-string pattern 2022-12-02 11:54:08 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
import cpp
predicate incomplete(Macro m) {
exists(string body | body = m.getBody() and not m.getBody().matches("%\\") |
exists(string body | body = m.getBody() and not m.getBody().matches("%\\\\") |
body.regexpMatch("[^(]*\\).*") or
body.regexpMatch("[^\\[]*].*") or
body.regexpMatch("[^{]*}.*") or

View File

@@ -12,7 +12,7 @@
import cpp
predicate incomplete(Macro m) {
exists(string body | body = m.getBody() and not m.getBody().matches("%\\") |
exists(string body | body = m.getBody() and not m.getBody().matches("%\\\\") |
body.regexpMatch("[^(]*\\).*") or
body.regexpMatch("[^\\[]*].*") or
body.regexpMatch("[^{]*}.*") or