From 8ed1a03f92bdfe9565c208831b382654e91adb68 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 8 Dec 2018 19:06:01 +0100 Subject: [PATCH] Consider *.c and *.hpp files formattable as well --- cmake/modules/BasicConfig.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/BasicConfig.cmake b/cmake/modules/BasicConfig.cmake index 5f0863c..71f3c00 100644 --- a/cmake/modules/BasicConfig.cmake +++ b/cmake/modules/BasicConfig.cmake @@ -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