Skip to content

languages: Recognize module interface file as C++ file#45968

Merged
Veykril merged 3 commits intozed-industries:mainfrom
hokein:more-cpp-files
Mar 18, 2026
Merged

languages: Recognize module interface file as C++ file#45968
Veykril merged 3 commits intozed-industries:mainfrom
hokein:more-cpp-files

Conversation

@hokein
Copy link
Copy Markdown
Contributor

@hokein hokein commented Jan 2, 2026

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.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 2, 2026
@maxdeviant maxdeviant changed the title Recognize module interface file as C++ file. Recognize module interface file as C++ file Jan 2, 2026
@yeskunall yeskunall self-assigned this Jan 3, 2026
@yeskunall

This comment was marked as off-topic.

@Veykril Veykril changed the title Recognize module interface file as C++ file languages: Recognize module interface file as C++ file Feb 4, 2026
@Veykril
Copy link
Copy Markdown
Member

Veykril commented Feb 4, 2026

Thanks!

@Veykril Veykril enabled auto-merge (squash) February 4, 2026 11:21
@yeskunall yeskunall disabled auto-merge February 6, 2026 10:17
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"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hokein does it make sense to add .tpp files too?

Can we also add .tpp suffix for C++ ? Thank you,

#45977 (comment)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought: what about this list mentioned here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@hokein
Copy link
Copy Markdown
Contributor Author

hokein commented Mar 17, 2026

Is there anything else I should address on my end to get this ready for merge?

@Veykril Veykril enabled auto-merge (squash) March 18, 2026 05:59
@Veykril Veykril merged commit e6939ad into zed-industries:main Mar 18, 2026
29 checks passed
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants