Simplify definitions.qll for C++.

This commit is contained in:
Pavel Avgustinov
2018-08-03 16:11:38 +01:00
parent 382ae85431
commit 3bc06627e1

View File

@@ -186,7 +186,7 @@ Top definitionOf(Top e, string kind) {
not exists(MacroInvocation mi, Location l1, Location l2 |
l1 = e.(Include).getLocation() and
l2 = mi.getLocation() and
l1.getFile() = l2.getFile() and
l1.getContainer() = l2.getContainer() and
l1.getStartLine() = l2.getStartLine()
// (an #include directive must be always on it's own line)
)