summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ClangTidy
Commit message (Collapse)AuthorAgeFilesLines
* clang-tidy: add <LANG>_CLANG_TIDY_EXPORT_FIXES_DIR propertyKyle Edwards2022-12-068-0/+173
| | | | Fixes: #21362
* clang-tidy: Don't append compiler commands if using -pCraig Scott2022-10-072-0/+8
| | | | | | | | | | | | | When the -p option is given to clang-tidy, it doesn't need the compile command line to be appended. It can get everything it needs from the compile_commands.json file in the directory specified with the -p option. When the compiler being used is not the system default compiler, clang-tidy has been observed to pick up the wrong headers when the compiler command line is given, but not if only the -p option is used. Therefore, don't append the compiler command line if -p is present in the <LANG>_CLANG_TIDY target property. Fixes: #24017
* clang-tidy: allow OBJC and OBJCXXAndrew Fuller2020-11-0511-0/+32
|
* cmake: Report if the <LANG>_CLANG_TIDY tool exits with non-zeroBrad King2016-11-184-0/+7
| | | | | | | | When using `<LANG>_CLANG_TIDY` our internal launcher for the tool must capture its return code and stderr and report them on failure. Otherwise incorrect command lines silently fail. Closes: #16435
* Revise C++ coding style using clang-formatKitware Robot2016-05-162-2/+8
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Add options to run clang-tidy with the compilerDaniel Pfeifer2016-04-1312-0/+43
Create a <LANG>_CLANG_TIDY target property (initialized by a CMAKE_<LANG>_CLANG_TIDY variable) to specify a clang-tidy command line to be run along with the compiler.