clangformat-cmake
clangformat-cmake copied to clipboard
Include HEADERs and CXX_MODULEs
This fixes an issue where the new FILE_SETs (CMake 3.23) would cause files to be excluded from formatting. It also fixes the issue where if the default sources (not part of a FILE_SET) is empty it would try to add a target file named "target_sources-NOTFOUND", which is the error condition for the SOURCES target_property not existing.