C++: Address review.

This commit is contained in:
Cornelius Riemenschneider
2020-10-26 09:27:29 +01:00
parent a82cf74161
commit fca141146b
2 changed files with 4 additions and 1 deletions

View File

@@ -11,5 +11,8 @@ import definitions
from Top e, Top def, string kind
where
def = definitionOf(e, kind) and
// We need to exclude definitions for elements inside template instantiations,
// as these often lead to multiple links to definitions from the same source location.
// LGTM does not support this bevaviour.
not e.isFromTemplateInstantiation(_)
select e, def, kind

View File

@@ -13,4 +13,4 @@ external string selectedSourceFile();
from Top e, Top def, string kind
where def = definitionOf(e, kind) and e.getFile() = getEncodedFile(selectedSourceFile())
select e.getLocation(), def.getLocation(), kind
select e, def, kind