summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-09 16:37:12 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-09 19:36:01 (GMT)
commit45d1925efc5ed19066d179ed15bfbcb6ae31ae9a (patch)
tree35e572920eb7fcf5305f28d056b231309740dfef /Source/cmSourceFile.h
parent8c96d145c1f9b5431643403caad9264a5b9e1402 (diff)
downloadCMake-45d1925efc5ed19066d179ed15bfbcb6ae31ae9a.zip
CMake-45d1925efc5ed19066d179ed15bfbcb6ae31ae9a.tar.gz
CMake-45d1925efc5ed19066d179ed15bfbcb6ae31ae9a.tar.bz2
Treat '.ccm', '.cxxm', and '.c++m' files as C++ sources
These extensions are used by convention for C++ module interface units with Clang. For now, do not add any tests using these extensions. Very few compilers recognize them as C++ sources. Tests can be added later as part of C++ modules support.
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index c1c5201..9308af4 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -183,8 +183,8 @@ private:
#define CM_HEADER_REGEX "\\.(h|hh|h\\+\\+|hm|hpp|hxx|in|txx|inl)$"
#define CM_SOURCE_REGEX \
- "\\.(C|F|M|c|c\\+\\+|cc|cpp|mpp|cxx|ixx|cppm|cu|f|f90|for|fpp|ftn|m|mm|" \
- "rc|def|r|odl|idl|hpj|bat)$"
+ "\\.(C|F|M|c|c\\+\\+|cc|cpp|mpp|cxx|ixx|cppm|ccm|cxxm|c\\+\\+m|cu" \
+ "|f|f90|for|fpp|ftn|m|mm|rc|def|r|odl|idl|hpj|bat)$"
#define CM_PCH_REGEX "cmake_pch(_[^.]+)?\\.(h|hxx)$"