We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e72b8b + e80c3b5 commit ffc1c62Copy full SHA for ffc1c62
cpp/ql/src/utils/modelgenerator/internal/CaptureModels.qll
@@ -45,6 +45,13 @@ private predicate isUninterestingForModels(Callable api) {
45
api = any(Cpp::LambdaExpression lambda).getLambdaFunction()
46
or
47
api.isFromUninstantiatedTemplate(_)
48
+ or
49
+ // Exclude functions in test directories (but not the ones in the CodeQL test directory)
50
+ exists(Cpp::File f |
51
+ f = api.getFile() and
52
+ f.getAbsolutePath().matches("%test%") and
53
+ not f.getAbsolutePath().matches("%test/library-tests/dataflow/modelgenerator/dataflow/%")
54
+ )
55
}
56
57
private predicate relevant(Callable api) {
0 commit comments