Skip to content

Support C++ header file extensions (.hpp, .hh, .hxx, .h++) in LSP language detection #12660

@Huijiro

Description

@Huijiro

Problem

C++ projects commonly use header file extensions like .hpp, .hh, .hxx, and .h++ in addition to the standard .h extension. These are already supported by the clangd LSP server and clang-format formatter, but they're not currently mapped in the LSP language detection system.

Solution

Map these additional C++ header file extensions to the cpp language type in LANGUAGE_EXTENSIONS so they receive proper syntax highlighting and LSP support.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions