summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/pseudo_tidy.c
Commit message (Collapse)AuthorAgeFilesLines
* clang-tidy: Don't append compiler commands if using -pCraig Scott2022-10-071-0/+10
| | | | | | | | | | | | | 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
* cmake: Report if the <LANG>_CLANG_TIDY tool exits with non-zeroBrad King2016-11-181-0/+6
| | | | | | | | 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-161-5/+3
| | | | | | | | | | | | | 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-131-0/+16
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.