New in version 3.26.
This property is implemented only when
OBJCXX, and only has an effect when
Specify a directory for the
clang-tidy tool to put
containing its suggested changes in. This can be used for automated mass
clang-tidy. Each object file that gets compiled will have a
.yaml file in this directory. After the build is completed,
you can run
clang-apply-replacements on this directory to simultaneously
apply all suggested changes to the code base. If this property is not an
absolute directory, it is assumed to be relative to the target's binary
directory. This property should be preferred over adding an
--fix argument directly to the
When this property is set, CMake takes ownership of the specified directory, and may create, modify, or delete files and directories within the directory at any time during configure or build time. Users should use a dedicated directory for exporting clang-tidy fixes to avoid having files deleted or overwritten by CMake. Users should not create, modify, or delete files in this directory.
This property is initialized by the value of
CMAKE_<LANG>_CLANG_TIDY_EXPORT_FIXES_DIR variable if it is set
when a target is created.