Skip to content

Add more cpp extensions#1410

Closed
silvanshade wants to merge 1 commit intooraios:mainfrom
silvanshade:more-cpp-extensions
Closed

Add more cpp extensions#1410
silvanshade wants to merge 1 commit intooraios:mainfrom
silvanshade:more-cpp-extensions

Conversation

@silvanshade
Copy link
Copy Markdown
Contributor

This PR adds several missing extensions that clangd understands to cpp. This enables recognition of C++20 module interface files among other things.

Most of these extensions are taken directly from the clang driver frontend:

https://github.com/llvm/llvm-project/blob/08992737d23113d3b9a78974b87b1ba3e7ecb6cb/clang/lib/Driver/Types.cpp#L309

One exception is *.ixx which is the default extension Visual Studio uses for C++20 module interface files:

https://learn.microsoft.com/en-us/cpp/cpp/modules-cpp?view=msvc-170#single-partition-modules

Related: #1259

@silvanshade silvanshade force-pushed the more-cpp-extensions branch from a3d50e1 to 1b4977f Compare April 24, 2026 19:31
@silvanshade
Copy link
Copy Markdown
Contributor Author

Closing this because I have a more comprehensive PR in the pipeline which addresses several other issues with the clangd integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant