KDEClangFormatΒΆ
This module provides a functionality to format the source code of your repository according to a predefined KDE clang-format file.
This module provides the following function:
kde_clang_format(<files>)
Using this function will create a clang-format target that will format all
<files>
passed to the function with the predefined KDE clang-format style.
Example usage:
include(KDEClangFormat)
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
Since 5.64