Browse Source

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

master
Martchus 4 months ago
parent
commit
2de07d4cd0
  1. 2
      cmake/modules/BasicConfig.cmake

2
cmake/modules/BasicConfig.cmake

@ -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

Loading…
Cancel
Save