C++: Add heuristics for meson configuration files

This commit is contained in:
Jeroen Ketema
2026-03-31 10:25:57 +02:00
parent afd33e4dcd
commit 5122f7cf92
2 changed files with 16 additions and 1 deletions

View File

@@ -26,3 +26,19 @@ class CmakeTryCompileFile extends ConfigurationTestFile {
)
}
}
/**
* A file created by Meson to test the system configuration.
*/
class MesonPrivateTestFile extends ConfigurationTestFile {
MesonPrivateTestFile() {
this.getBaseName() = "testfile.c" and
exists(Folder folder, Folder parent |
folder = this.getParentContainer() and
parent = folder.getParentContainer()
|
folder.getBaseName().matches("tmp%") and
parent.getBaseName() = "meson-private"
)
}
}

View File

@@ -1 +0,0 @@
| testfile.c:6:3:6:8 | call to strlen | This expression has no effect (because $@ has no external side effects). | testfile.c:3:8:3:13 | strlen | strlen |