Skip to content

Commit 50ed141

Browse files
committed
C++: Expand on hasLocationInfo fragility
1 parent 52f1710 commit 50ed141

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cpp/ql/lib/semmle/code/cpp/regex/RegexTreeView.qll‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ private module Impl implements RegexTreeViewSig {
234234
* Holds if this term is found at the specified location offsets.
235235
*
236236
* Note: these locations may not be accurate when the regex was not defined as a raw string
237-
* and contains `\`-escaped characters.
237+
* and contains `\`-escaped characters, or when macros were used to define the regex.
238238
*/
239239
predicate hasLocationInfo(
240240
string filepath, int startline, int startcolumn, int endline, int endcolumn

0 commit comments

Comments
 (0)