Consider *.c and *.hpp files formattable as well

This commit is contained in:
Martchus 2018-12-08 19:06:01 +01:00
parent 2f0a7050ac
commit 8ed1a03f92
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ set(FORMATABLE_FILES
)
# only format C/C++ files (and not eg. QML files)
if(FORMATABLE_FILES)
list(FILTER FORMATABLE_FILES INCLUDE REGEX ".*\\.(cpp|h)")
list(FILTER FORMATABLE_FILES INCLUDE REGEX ".*\\.(c|cpp|h|hpp)")
endif()
# add command for symlinking clang-{format,tidy} rules so the tools can find it