Skip to content

Commit 3bc0662

Browse files
committed
Simplify definitions.qll for C++.
1 parent 382ae85 commit 3bc0662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/definitions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Top definitionOf(Top e, string kind) {
186186
not exists(MacroInvocation mi, Location l1, Location l2 |
187187
l1 = e.(Include).getLocation() and
188188
l2 = mi.getLocation() and
189-
l1.getFile() = l2.getFile() and
189+
l1.getContainer() = l2.getContainer() and
190190
l1.getStartLine() = l2.getStartLine()
191191
// (an #include directive must be always on it's own line)
192192
)

0 commit comments

Comments
 (0)