Skip to content

Commit 0268cee

Browse files
committed
Add missing C++20 module file extension
Signed-off-by: Sebastian Javier D'Alessandro Szymanowski <sdalessandro@fi.uba.ar>
1 parent 74615fa commit 0268cee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,6 +1543,7 @@ FILE_VERSION_FILTER = "cleartool desc -fmt \%Vn"
15431543
<value name='*.cxxm'/>
15441544
<value name='*.cpp'/>
15451545
<value name='*.cppm'/>
1546+
<value name='*.ccm'/>
15461547
<value name='*.c++'/>
15471548
<value name='*.c++m'/>
15481549
<value name='*.java'/>

src/util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ EntryType guessSection(const QCString &name)
335335
{
336336
QCString n=name.lower();
337337
static const std::unordered_set<std::string> sourceExt = {
338-
"c","cc","cxx","cpp","c++","cppm","cxxm","c++m", // C/C++
338+
"c","cc","cxx","cpp","c++","cppm","ccm","cxxm","c++m", // C/C++
339339
"java", // Java
340340
"cs", // C#
341341
"m","mm", // Objective-C
@@ -5261,6 +5261,7 @@ void initDefaultExtensionMapping()
52615261
updateLanguageMapping(".c++", "c");
52625262
updateLanguageMapping(".cxxm", "c"); // C++20 modules
52635263
updateLanguageMapping(".cppm", "c"); // C++20 modules
5264+
updateLanguageMapping(".ccm", "c"); // C++20 modules
52645265
updateLanguageMapping(".c++m", "c"); // C++20 modules
52655266
updateLanguageMapping(".ii", "c");
52665267
updateLanguageMapping(".ixx", "c");

0 commit comments

Comments
 (0)