From e6939ad05c160b9757860cdccf06911d80b78a24 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 18 Mar 2026 07:10:58 +0100 Subject: [PATCH] languages: Recognize module interface file as C++ file (#45968) https://clang.llvm.org/docs/StandardCPlusPlusModules.html#file-name-requirements, `.cppm`, '.ccm', ".cxxm" files are C++20 module interface files. Release Notes: - Recognize module interface file as C++ file. --- crates/languages/src/cpp/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/languages/src/cpp/config.toml b/crates/languages/src/cpp/config.toml index e2608a8ce5f17cb648e4f86dc27da60ed8bdd2ae..b8e1136725b8633f07e5f864a867dc4d7dc5d77e 100644 --- a/crates/languages/src/cpp/config.toml +++ b/crates/languages/src/cpp/config.toml @@ -1,6 +1,6 @@ name = "C++" grammar = "cpp" -path_suffixes = ["cc", "hh", "cpp", "cppm", "h", "hpp", "cxx", "hxx", "c++", "h++", "ipp", "inl", "ino", "ixx", "cu", "cuh", "C", "H"] +path_suffixes = ["cc", "ccm", "hh", "cpp", "cppm", "h", "hpp", "cxx", "cxxm", "hxx", "c++", "c++m", "h++", "ipp", "inl", "ino", "ixx", "cu", "cuh", "C", "H"] line_comments = ["// ", "/// ", "//! "] first_line_pattern = '^//.*-\*-\s*C\+\+\s*-\*-' decrease_indent_patterns = [