Files
codeql/cpp/ql/test/library-tests/exclusions/exclusions.ql
Jonas Jensen 8d79634f8c C++: Factor out isFromMacroDefinition predicate
This trick for excluding elements from macro bodies but not macro
arguments looks promising and should probably be used much more. With
this commit, it's now easy to use from any query.

Performance is still good because the new predicate gets appropriately
magiced.
2019-11-13 14:07:33 +01:00

6 lines
98 B
Plaintext

import semmle.code.cpp.commons.Exclusions
from Element e
where isFromMacroDefinition(e)
select e