Consider `*.cc` and `*.hh` files formatable

This commit is contained in:
Martchus 2021-08-02 16:48:35 +02:00
parent b16fff4b0a
commit 2de07d4cd0
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ set(FORMATABLE_FILES
${EXCLUDED_FILES})
# only format C/C++ files (and not eg. QML files)
if (FORMATABLE_FILES)
list(FILTER FORMATABLE_FILES INCLUDE REGEX ".*\\.(c|cpp|h|hpp)")
list(FILTER FORMATABLE_FILES INCLUDE REGEX ".*\\.(c|cc|cpp|h|hh|hpp)")
endif ()
# determine source files which might be passed to cmake-format