mirror of
https://github.com/github/codeql.git
synced 2026-05-23 15:47:11 +02:00
fix QL match-string pattern
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user