-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for clang-tidy [1] and iwyu [2] tools. ### Overview These tools allow to statically find potential programming issues and include issues, respectively. They are able to find a lot of potential issues (both bugs or style problems), so they are a useful addition for contributors. For now, no specific configuration is included but it is possible to give a style file which would control what we consider to be errors and what are not. The use of the tools is controlled through the respective `GINKGO_WITH_CLANG_TIDY` and `GINKGO_WITH_IWYU` variables. They are turned off by default, but their availability is highlighted in the main `README.md` [1]: https://clang.llvm.org/extra/clang-tidy/ [2]: https://include-what-you-use.org/ ### Details + Fix some unrelated link problems in the main `README.md`. + The two programs are found through CMake `find_program`. This means that the path can be directly given for `iwyu` and `clang-tidy` through the variables `GINKGO_IWYU_PATH=/path/to/iwyu` and `GINKGO_CLANG_TIDY_PATH=/path/to/clang-tidy`, respectively. + Adapt containers to bundle a correct version of `iwyu` and `clang-tidy`. There are often problems with standard C headers for these tools and this can be fixed either through adding symlinks or through correct compilation. See [this link for more information](include-what-you-use/include-what-you-use#679). + Add CI steps which gather the full `iwyu` and `clang-tidy` output ### Related PR: #298
- Loading branch information
Showing
14 changed files
with
148 additions
and
12 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
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
Binary file not shown.
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