languages: Recognize module interface file as C++ file#45968
Merged
Veykril merged 3 commits intozed-industries:mainfrom Mar 18, 2026
Merged
languages: Recognize module interface file as C++ file#45968Veykril merged 3 commits intozed-industries:mainfrom
Veykril merged 3 commits intozed-industries:mainfrom
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
Veykril
approved these changes
Feb 4, 2026
Member
|
Thanks! |
yeskunall
reviewed
Feb 6, 2026
crates/languages/src/cpp/config.toml
Outdated
| name = "C++" | ||
| grammar = "cpp" | ||
| path_suffixes = ["cc", "hh", "cpp", "h", "hpp", "cxx", "hxx", "c++", "h++", "ipp", "inl", "ino", "ixx", "cu", "cuh", "C", "H"] | ||
| path_suffixes = ["cc", "hh", "cpp", "h", "hpp", "cxx", "hxx", "c++", "h++", "ipp", "inl", "ino", "ixx", "cu", "cuh", "C", "H", "cppm", "ccm", "cxxm"] |
Member
There was a problem hiding this comment.
@hokein does it make sense to add .tpp files too?
Can we also add .tpp suffix for C++ ? Thank you,
Member
There was a problem hiding this comment.
On second thought: what about this list mentioned here?
Contributor
Author
There was a problem hiding this comment.
I think it makes sense to add them. (I would rather do it in a separate PR, as this one only focuses on the module files.)
Member
There was a problem hiding this comment.
I mean I’m not against updating the PR title and just squeezing in the rest -- the end goal is greater file_types recognition for C++ projects in Zed. But maybe I’m still misunderstanding something.
Contributor
Author
|
Is there anything else I should address on my end to get this ready for merge? |
AmaanBilwar
pushed a commit
to AmaanBilwar/zed
that referenced
this pull request
Mar 20, 2026
…s#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.
AmaanBilwar
pushed a commit
to AmaanBilwar/zed
that referenced
this pull request
Mar 23, 2026
…s#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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://clang.llvm.org/docs/StandardCPlusPlusModules.html#file-name-requirements,
.cppm, '.ccm', ".cxxm" files are C++20 module interface files.Release Notes: