mirror of
https://github.com/github/codeql.git
synced 2026-02-20 00:43:44 +01:00
29 lines
758 B
Plaintext
29 lines
758 B
Plaintext
/**
|
|
* Provides classes for identifying files that created to test the
|
|
* build configuration. It is often desirable to exclude these files
|
|
* from analysis.
|
|
*/
|
|
|
|
import File
|
|
|
|
/**
|
|
* A file created to test the system configuration.
|
|
*/
|
|
abstract class ConfigurationTestFile extends File { }
|
|
|
|
/**
|
|
* A file created by CMake to test the system configuration.
|
|
*/
|
|
class CmakeTryCompileFile extends ConfigurationTestFile {
|
|
CmakeTryCompileFile() {
|
|
exists(Folder folder, Folder parent |
|
|
folder = this.getParentContainer() and
|
|
parent = folder.getParentContainer()
|
|
|
|
|
folder.getBaseName().matches("TryCompile-%") and
|
|
parent.getBaseName() = "CMakeScratch" and
|
|
parent.getParentContainer().getBaseName() = "CMakeFiles"
|
|
)
|
|
}
|
|
}
|