Skip to content

Commit 9a2c7d3

Browse files
committed
C++: Simplify 'parseParens'.
1 parent 2e74ae4 commit 9a2c7d3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,7 @@ private predicate parseAngles(
647647
/** Holds if `s` can be broken into a string of the form `(betweenParens)`. */
648648
bindingset[s]
649649
pragma[inline_late]
650-
private predicate parseParens(string s, string betweenParens) {
651-
betweenParens = s.regexpCapture("\\(([^\\)]+)\\)", 1)
652-
}
650+
private predicate parseParens(string s, string betweenParens) { s = "(" + betweenParens + ")" }
653651

654652
/**
655653
* Holds if `elementSpec(_, type, _, name, signature, _)` and:

0 commit comments

Comments
 (0)