-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C++: Silence alerts coming from CMake test compilation files
- Loading branch information
Showing
8 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* 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" | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters