We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 382ae85 commit 3bc0662Copy full SHA for 3bc0662
cpp/ql/src/definitions.qll
@@ -186,7 +186,7 @@ Top definitionOf(Top e, string kind) {
186
not exists(MacroInvocation mi, Location l1, Location l2 |
187
l1 = e.(Include).getLocation() and
188
l2 = mi.getLocation() and
189
- l1.getFile() = l2.getFile() and
+ l1.getContainer() = l2.getContainer() and
190
l1.getStartLine() = l2.getStartLine()
191
// (an #include directive must be always on it's own line)
192
)
0 commit comments