Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cpp/common/src/codingstandards/cpp/Exclusions.qll
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ predicate isExcluded(Element e, Query query) { isExcluded(e, query, _) }

bindingset[e, query]
predicate isExcluded(Element e, Query query, string reason) {
e.isFromUninstantiatedTemplate(_) and reason = "Element is from an uninstantiated template."
or
e.(Variable).isCompilerGenerated() and reason = "Element is compiler generated."
or
e.(Function).isCompilerGenerated() and reason = "Element is compiler generated."
or
e instanceof ExcludedElement and reason = "Element is an excluded element."
or
e.getFile() instanceof ExcludedFile and reason = "Element is part of an excluded file."
Expand Down