GSoC 2026: Improving HLSL Support in clangd HLSL (High-Level Shading Language) is a C++-like language used for GPU shader programming. Clang already parses HLSL and represents many of its constructs in the AST. clangd, however, reuses its C/C++ infrastructure to provide IDE…
GSoC 2026: Improving HLSL Support in clangd HLSL (High-Level Shading Language) is a C++-like language used for GPU shader programming. Clang already parses HLSL and represents many of its constructs in the AST. clangd, however, reuses its C/C++ infrastructure to provide IDE…
Why it matters: Mentions tracked project clangd. clangd is in Language & Toolchain (one of your focus areas).
Important features still missing for the module support of clangd
I'm trying to use clangd (in neovim) for a project using C++ 20 modules. The version of clangd is the latest snapshot (20251214). For now, following critical features are missing (all features are listed here) inside the module: Project-wide renaming. Renaming names of functions or classes is very important for the code refactoring. Following error message is printed out when doing the renaming in a module: > Error on prepareRename: Cannot rename symbol: symbol may be used in other files (not eligible for indexing) Find references. It's also not possible to find all references in the project…
46score
cpp20storage
Demandweight 25% × value 0.49 = 12.2 pts4 reactions, 14 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsclangd is in Language & Toolchain (a focus area); issue needs cpp20, which you listedMaintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
Demand25% × 0.49 = 124 reactions, 14 comments
Technical fit30% × 0.61 = 18clangd is in Language & Toolchain (a focus area); issue needs cpp20, which you listed
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
Feasibility20% × 0.50 = 10clear scope; has reproduction steps; has code; project onboarding 25%
I'm trying to use clangd (in neovim) for a project using C++ 20 modules. The version of clangd is the latest snapshot (20251214). For now, following critical features are missing (all features are listed here) inside the module: Project-wide renaming. Renaming names of…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Nikita Alekseev sent to clangd-dev: However there are some usability features, one of which is that the background index is being put in the root of my project. This is inconvenient and I was wondering if it is possible to change the location of the index directory. I've looked through available options and did not find anything.
45score
storage
Demandweight 25% × value 0.70 = 17.4 pts16 reactions, 12 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; filed by a maintainerFeasibilityweight 20% × value 0.55 = 11.0 ptsnewcomer label; clear scope; project onboarding 25%
Demand25% × 0.70 = 1716 reactions, 12 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; filed by a maintainer
Nikita Alekseev sent to clangd-dev: However there are some usability features, one of which is that the background index is being put in the root of my project. This is inconvenient and I was wondering if it is possible to change the location of the index directory. I've looked…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Are you planning to ship releases for ARM (armv7l and arm64)
Are you planning to provide releases for armv7l (aka. armhf) and arm64 (aka. aarch64) for Linux? According to the LLVM download page, the 10.0.1 release has pre-built binaries for Linux ARM. Thank you!
45score
armlinux
Demandweight 25% × value 0.69 = 17.2 pts14 reactions, 20 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsclangd is in Language & Toolchain (a focus area); issue needs linux, which you listedMaintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.20 = 4.0 ptsclear scope; project onboarding 25%
Demand25% × 0.69 = 1714 reactions, 20 comments
Technical fit30% × 0.61 = 18clangd is in Language & Toolchain (a focus area); issue needs linux, which you listed
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
Are you planning to provide releases for armv7l (aka. armhf) and arm64 (aka. aarch64) for Linux? According to the LLVM download page, the 10.0.1 release has pre-built binaries for Linux ARM. Thank you!
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
It would be nice if some of {C++20 modules, clang header modules} worked in clangd. Essentially no configurations of this work today: occasionally things may happen to work but there are many reported problems and crashes. These are not just bugs that can be fixed, a design and new infrastructure is needed. Because clang's module functionality can be enabled by setting driver flags, it is possible/easy for people to end up in this broken and unsupportable state, and wasting (their + our) time debugging it. We should consider failing early and explicitly instead. AFAIK nobody has…
42score
cpp20
Demandweight 25% × value 0.75 = 18.8 pts67 reactions, 88 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsclangd is in Language & Toolchain (a focus area); issue needs cpp20, which you listedMaintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; filed by a maintainer
Demand25% × 0.75 = 1967 reactions, 88 comments
Technical fit30% × 0.61 = 18clangd is in Language & Toolchain (a focus area); issue needs cpp20, which you listed
Maintainer engagement25% × 0.20 = 5comments not checked; filed by a maintainer
Feasibility20% × 0.00 = 0clear scope; project onboarding 25%; long thread (88 comments) lowers it
It would be nice if some of {C++20 modules, clang header modules} worked in clangd. Essentially no configurations of this work today: occasionally things may happen to work but there are many reported problems and crashes. These are not just bugs that can be fixed, a design and…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Currently clangd doesn't work with non-self-contained files, even if people have a way to build their projects with those files, for example by merging some/all of non-self-contained files into a single TU and building that file.
42score
docs
Demandweight 25% × value 0.75 = 18.8 pts68 reactions, 53 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; filed by a maintainerFeasibilityweight 20% × value 0.30 = 6.0 ptsnewcomer label; clear scope; project onboarding 25%; long thread (53 comments) lowers it
Demand25% × 0.75 = 1968 reactions, 53 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; filed by a maintainer
Feasibility20% × 0.30 = 6newcomer label; clear scope; project onboarding 25%; long thread (53 comments) lowers it
Currently clangd doesn't work with non-self-contained files, even if people have a way to build their projects with those files, for example by merging some/all of non-self-contained files into a single TU and building that file.
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Move folding range `startLine` to the declaration line for function/class bodies
Discussion: #2664 Summary For function and class body folding ranges, set startLine to the line containing the declaration (i.e. the name), rather than the line containing the opening {. Current behavior Given a function with a multi-line signature: cpp void foo () { // ... } clangd reports the folding range starting at the line of {. When the editor collapses it, only that line is visible — every identifier needed to recognize the entity is hidden: Multi-line signatures are common in real C++ code (trailing return types, long template parameter lists, attributes, requires-clauses, noexcept…
38score
cpp20templates
Demandweight 25% × value 0.20 = 5.0 pts2 reactions, 0 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsclangd is in Language & Toolchain (a focus area); issue needs cpp20, which you listedMaintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
Demand25% × 0.20 = 52 reactions, 0 comments
Technical fit30% × 0.61 = 18clangd is in Language & Toolchain (a focus area); issue needs cpp20, which you listed
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
Feasibility20% × 0.50 = 10clear scope; has reproduction steps; has code; project onboarding 25%
Discussion: #2664 Summary For function and class body folding ranges, set startLine to the line containing the declaration (i.e. the name), rather than the line containing the opening {. Current behavior Given a function with a multi-line signature: cpp void foo () { // ... }…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
clangd reports an -Wempty-translation-unit warning in this C code, c int main() {} …under the following configuration. yaml CompileFlags: Add: -Wempty-translation-unit I think this is a bug in clangd because clang -Wempty-translation-unit on the same code doesn't print any warning. Logs text I[19:38:40.000] clangd version 21.0.0git ( a2ca2f3f10002da61e9860d0ce11e0272482baba) I[19:38:40.002] Features: mac+grpc+xpc I[19:38:40.002] PID: 485 I[19:38:40.002] Working directory: /Users/ud2/repro I[19:38:40.002] argv[0]: /Users/ud2/Downloads/clangd_snapshot_20250401/bin/clangd I[19:38:40.002]…
35score
networking
Demandweight 25% × value 0.42 = 10.5 pts4 reactions, 5 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.35 = 7.0 ptshas reproduction steps; has code; project onboarding 25%
Demand25% × 0.42 = 114 reactions, 5 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
clangd reports an -Wempty-translation-unit warning in this C code, c int main() {} …under the following configuration. yaml CompileFlags: Add: -Wempty-translation-unit I think this is a bug in clangd because clang -Wempty-translation-unit on the same code doesn't print any…
Suggested first step
Reproduce the bug on the latest main branch of clangd, reduce it to a minimal example, and post your findings on the issue before opening a PR.
cpp struct MyVec { template MyVec(T); }; void foo() { MyVec neighbors = { { 3 }, }; // , ^triggering signature help by pressing , here yields signature help for MyVec. } Looks like there are two issues here: one around not closing the scope of constructor call when initializer lists are involved another one for running semantic completion at all when the trigger is inside a comment.
34score
templates
Technical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; filed by a maintainerFeasibilityweight 20% × value 0.85 = 17.0 ptsnewcomer label; clear scope; has reproduction steps; has code; project onboarding 25%
cpp struct MyVec { template MyVec(T); }; void foo() { MyVec neighbors = { { 3 }, }; // , ^triggering signature help by pressing , here yields signature help for MyVec. } Looks like there are two issues here: one around not closing the scope of constructor call when initializer…
Suggested first step
Reproduce the bug on the latest main branch of clangd, reduce it to a minimal example, and post your findings on the issue before opening a PR.
It would be really nice if pressing Enter auto-continued comments. Examples (with ^ representing the cursor position when pressing Enter): // A comment^ to: // A comment // ^ and /* A comment^ */ to: /* A comment * ^ */ or something similar. It's not entirely clear whether this should be the job of the server or the client. I notice there is a "textDocument/onTypeFormatting" request, perhaps that would be a good fit?
34score
docs
Technical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.85 = 17.0 ptsnewcomer label; clear scope; has reproduction steps; has code; project onboarding 25%
It would be really nice if pressing Enter auto-continued comments. Examples (with ^ representing the cursor position when pressing Enter): // A comment^ to: // A comment // ^ and /* A comment^ */ to: /* A comment * ^ */ or something similar. It's not entirely clear whether this…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Tweak OverridePureVirtuals does not append the correct namespaces
Found on clangd 23.1.0. Take following snippet: namespace A { class Something; class AnotherThing { virtual void doSomething(Something &) = 0; }; } namespace B { class YetAnotherThing : A::AnotherThing { }; } On the symbol YetAnotherThing, you can execute the tweak OverridePureVirtuals (clang-tools-extra/clangd/refactor/tweaks/OverridePureVirtuals.cpp) The result is the following: namespace A { class Something; class AnotherThing { virtual void doSomething(Something &) = 0; }; } namespace B { class YetAnotherThing : A::AnotherThing { private: void doSomething(Something &) override { // TODO:…
34score
Technical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptsno maintainer comment yet; labelled (triaged)Feasibilityweight 20% × value 0.85 = 17.0 ptsnewcomer label; clear scope; has reproduction steps; has code; project onboarding 25%
Found on clangd 23.1.0. Take following snippet: namespace A { class Something; class AnotherThing { virtual void doSomething(Something &) = 0; }; } namespace B { class YetAnotherThing : A::AnotherThing { }; } On the symbol YetAnotherThing, you can execute the tweak…
Suggested first step
Reproduce the bug on the latest main branch of clangd, reduce it to a minimal example, and post your findings on the issue before opening a PR.
Rich hover documentation for GTK-Doc, kernel-doc, and GObject Introspection
clangd's hover currently only understands Doxygen-style doc comments. C projects in the GLib/GTK ecosystem use GTK-Doc conventions, the Linux kernel uses kernel-doc conventions, and many GLib/GTK headers ship no inline comments at all — their documentation lives in external GIR XML files. Would it be desirable for clangd to support: gtk-doc comments (the format is not well specified, but there are countless examples) kernel-doc comments ( GIR documentation fallback When no doc comment is found in AST or index, add a lookup from GIR XML system repository. Automatic comment format detection The…
33score
docslinuxstorage
Technical fitweight 30% × value 0.61 = 18.3 ptsclangd is in Language & Toolchain (a focus area); issue needs linux, which you listedMaintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
clangd's hover currently only understands Doxygen-style doc comments. C projects in the GLib/GTK ecosystem use GTK-Doc conventions, the Linux kernel uses kernel-doc conventions, and many GLib/GTK headers ship no inline comments at all — their documentation lives in external GIR…
Suggested first step
Read the code the issue refers to, draft the documentation change, and open a small PR that references the issue.
Technical fitweight 30% × value 0.61 = 18.3 ptsclangd is in Language & Toolchain (a focus area); issue needs cpp20, which you listedMaintainer engagementweight 25% × value 0.20 = 5.0 ptsno maintainer comment yet; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
Demand25% × 0.00 = 00 reactions, 0 comments
Technical fit30% × 0.61 = 18clangd is in Language & Toolchain (a focus area); issue needs cpp20, which you listed
llvm-header-guard check is not triggered in clangd
The check is expected to trigger when we open a .h file without any header guard. The reason is that we only replay the #include events in clangd. To make the check work, we should replay other macro-related events (macro definition, ifndef, endif).
33score
Demandweight 25% × value 0.20 = 5.1 pts1 reactions, 2 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.55 = 11.0 ptsnewcomer label; clear scope; project onboarding 25%
Demand25% × 0.20 = 51 reactions, 2 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
The check is expected to trigger when we open a .h file without any header guard. The reason is that we only replay the #include events in clangd. To make the check work, we should replay other macro-related events (macro definition, ifndef, endif).
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Auto-completion in `\N` i.e. universal-character-name
It would be nice if you could get auto-completion for *universal-character-name*s. For example, when typing: cpp U'\N{NO-BR}' ... it would be nice to complete this as cpp U'\N{NO-BREAK SPACE}' The basic infrastructure already seems to be there: This function is based on edit distance, which should give similar results to the Insert Unicode VSCode extension (although that one seems to use substring matches, not edit distance): I originally wanted to suggest something that's based on prefix matches only, but for code point names, it does make more sense to provide auto-completion based on…
33score
docs
Demandweight 25% × value 0.24 = 6.0 pts1 reactions, 4 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
Demand25% × 0.24 = 61 reactions, 4 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
Feasibility20% × 0.50 = 10clear scope; has reproduction steps; has code; project onboarding 25%
It would be nice if you could get auto-completion for *universal-character-name*s. For example, when typing: cpp U'\N{NO-BR}' ... it would be nice to complete this as cpp U'\N{NO-BREAK SPACE}' The basic infrastructure already seems to be there: This function is based on edit…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Show the macro name when calling `#endif` to end an `#ifdef` macro
It's quite common for C/++ codebases to add the name of the macro they are checking as defined by putting a comment next to an #endif, e.g. c #ifdef DEFINED_ITEM /* ... */ #endif /* DEFINED_ITEM */ I believe showing a hint like what is currently done for function arguments, e.g. c char* chars = /* ... */; size_t size = strlen(chars); /* <- shows in the IDE as strlen(s: chars); */ could also be applied to macros, like: c #ifdef DEFINED_ITEM /* ... */ #endif /* shows "DEFINED_ITEM" after endif */ This would be useful for readability, and removes the need to update comments if a define gets…
33score
Demandweight 25% × value 0.23 = 5.6 pts1 reactions, 3 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
Demand25% × 0.23 = 61 reactions, 3 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
Feasibility20% × 0.50 = 10clear scope; has reproduction steps; has code; project onboarding 25%
It's quite common for C/++ codebases to add the name of the macro they are checking as defined by putting a comment next to an #endif, e.g. c #ifdef DEFINED_ITEM /* ... */ #endif /* DEFINED_ITEM */ I believe showing a hint like what is currently done for function arguments…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Expand Clangd Configuration to let If match a compiler
Based on a discussion, I would like to request an extension to the if configuration based on looking at the compiler. This would also provide functionality in lieu of this issue being resolved, This could look something like the following: If: CompilerMatch: .*qcc # would pattern match argv[0] CompileFlags: Add: ['-D_QCC_FLAG1', '-D_QCC_FLAG2'] ---
33score
Demandweight 25% × value 0.23 = 5.6 pts1 reactions, 3 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
Demand25% × 0.23 = 61 reactions, 3 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
Feasibility20% × 0.50 = 10clear scope; has reproduction steps; has code; project onboarding 25%
Based on a discussion, I would like to request an extension to the if configuration based on looking at the compiler. This would also provide functionality in lieu of this issue being resolved, This could look something like the following: If: CompilerMatch: .*qcc # would…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
GNU/GCC plans to support reflection in version 16. I understand this to be an incremental feature that doesn't break the existing implementation. Does clangd have any plans in this regard?
32score
Demandweight 25% × value 0.58 = 14.4 pts13 reactions, 3 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.05 = 1.0 ptsproject onboarding 25%
Demand25% × 0.58 = 1413 reactions, 3 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
GNU/GCC plans to support reflection in version 16. I understand this to be an incremental feature that doesn't break the existing implementation. Does clangd have any plans in this regard?
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Support LSP 3.17 `collapsedText` for folding ranges
Discussion: #2664 Summary Emit the optional collapsedText field on folding ranges so capable clients can show a meaningful summary in place of the folded region — e.g. foo(…) { … } for a function body, class Foo { … } for a class. Motivation collapsedText was added to LSP in 3.17 (microsoft/language-server-protocol#1426) precisely to let servers control what users see when a region is folded. VS Code and several other clients support it. For C++ this is especially valuable because folded regions frequently span constructs whose identity is not obvious from any single visible line — overloaded…
32score
cpp20
Demandweight 25% × value 0.20 = 5.0 pts2 reactions, 0 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsclangd is in Language & Toolchain (a focus area); issue needs cpp20, which you listedMaintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.20 = 4.0 ptsclear scope; project onboarding 25%
Demand25% × 0.20 = 52 reactions, 0 comments
Technical fit30% × 0.61 = 18clangd is in Language & Toolchain (a focus area); issue needs cpp20, which you listed
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
Discussion: #2664 Summary Emit the optional collapsedText field on folding ranges so capable clients can show a meaningful summary in place of the folded region — e.g. foo(…) { … } for a function body, class Foo { … } for a class. Motivation collapsedText was added to LSP in…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Hi, The clangd adds underscores to all includes in VSCode (see the screenshots below). I personally find this rather distracting and have been thinking of adding an option to disable this behavior. VSCode adds underlines based on the documentLink responses, so my initial thought is to avoid returning the results altogether. I see a few options to do this: implement in clangd C++ code, add an option to the clangd binary (a command-line flag?) pros: probably the easiest to implement, can easily affect only includes if other kinds of links get added later, can be used in other editors if they…
32score
Demandweight 25% × value 0.45 = 11.2 pts3 reactions, 14 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.20 = 4.0 ptsclear scope; project onboarding 25%
Demand25% × 0.45 = 113 reactions, 14 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
Hi, The clangd adds underscores to all includes in VSCode (see the screenshots below). I personally find this rather distracting and have been thinking of adding an option to disable this behavior. VSCode adds underlines based on the documentLink responses, so my initial…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
As described in clangd/vscode-clangd#965, it would be a nice feature if clangd allowed LaTeX rendering of math in doxygen comments when hovering in VSCode. Since this apparently also requires changes to the server itself to treat math blocks as non-code blocks, I am opening this as a separate issue here.
29score
Demandweight 25% × value 0.32 = 8.1 pts5 reactions, 0 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.20 = 4.0 ptsclear scope; project onboarding 25%
Demand25% × 0.32 = 85 reactions, 0 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
As described in clangd/vscode-clangd#965, it would be a nice feature if clangd allowed LaTeX rendering of math in doxygen comments when hovering in VSCode. Since this apparently also requires changes to the server itself to treat math blocks as non-code blocks, I am opening…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Slow AST builds in code involving large array (e.g. 1000000 elements)
I am an algorithmic competition participant, and I have a VSCode workspace where I have organized my code from various online judging systems into folders. The directory tree looks roughly like this: OI (Workspace Root) Codeforces - CF001A.cpp - CF002B.cpp ATCoder - abc001_a.cpp - abc002_b.cpp luogu - P1001.cpp - P1002.cpp Clearly, my problem files are independent of each other, and I don't need or want to include the contents of other files in one file. I only need to include system header files like iostream and vector. However, when my problem repository folder reaches a certain size, I…
28score
performance
Technical fitweight 30% × value 0.61 = 18.3 ptsclangd is in Language & Toolchain (a focus area); issue needs performance, which you listedMaintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%; long thread (35 comments) lowers it
I am an algorithmic competition participant, and I have a VSCode workspace where I have organized my code from various online judging systems into folders. The directory tree looks roughly like this: OI (Workspace Root) Codeforces - CF001A.cpp - CF002B.cpp ATCoder …
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
code action : extract highlighted text to method / function
that would be nice if we could have a code action that allows to quickly refactor / clean code by extracting a portion of code to a member function or simple function. for example : Given : image the code action would extract the highlighted statement inside the condition and extract something similar (or close) to this image
28score
docs
Demandweight 25% × value 0.28 = 7.0 pts2 reactions, 2 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.20 = 4.0 ptsclear scope; project onboarding 25%
Demand25% × 0.28 = 72 reactions, 2 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
that would be nice if we could have a code action that allows to quickly refactor / clean code by extracting a portion of code to a member function or simple function. for example : Given : image the code action would extract the highlighted statement inside the condition and…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Inlay hints: show source field names for structured bindings
For structured bindings that decompose an aggregate, inlay hints show each binding's type. Proposal: also show which field each binding comes from, since the mapping is purely positional. Example setup: cpp struct Person { std::string name; int age; std::string city; }; auto [n, years, city] = p; Current: cpp auto [n: std::string, years: int, city: std::string] = p; Proposed: cpp auto [n=.name: std::string, years=.age: int, city: std::string] = p; The proposal mirrors the existing Designators hints for aggregate initialization. It could be enabled by that option or by a new one. When a…
27score
docs
Technical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptsno maintainer comment yet; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
Demand25% × 0.00 = 00 reactions, 0 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
For structured bindings that decompose an aggregate, inlay hints show each binding's type. Proposal: also show which field each binding comes from, since the mapping is purely positional. Example setup: cpp struct Person { std::string name; int age; std::string city; }; auto…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Add inlay hints for evaluated enum constant values
Feature Request I would like to suggest adding inlay hints that display the evaluated integer values of enum constants. Currently, clangd can display enum values in hover information, but checking each enumerator individually is inconvenient, especially when working with enums containing many implicitly assigned values. It would be useful to display these values directly in the editor without modifying the source code. 1. Show values at enum declarations For example, given the following code: cpp enum class LogLevel { Trace = 0, Debug, Info, Warning = 10, Error, Critical, }; It would be…
27score
docs
Technical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptsno maintainer comment yet; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
Demand25% × 0.00 = 00 reactions, 0 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
Feature Request I would like to suggest adding inlay hints that display the evaluated integer values of enum constants. Currently, clangd can display enum values in hover information, but checking each enumerator individually is inconvenient, especially when working with enums…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
`HeuristicResolver::resolveExprToType()` should also try to expand subscript operators
Not sure if this request should be opened at the main LLVM repository instead, but based on the commentary in clang/Sema/HeuristicResolver.h, clangd appears to be the only (or nearly so) consumer of this class, so opening it here. Feel free to redirect however. In any case, as the title implies, HeuristicResolver::resolveExprToType() currently does not unravel subscript operators (only handling deref operators) when predicting the type. So given: c++ template struct S { int a[N]; }; template void f(S & s) { (void)s.a[0]; } it does not resolve s.a[0] as int, keeping it as a dependent type.…
27score
templates
Technical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptsno maintainer comment yet; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
Not sure if this request should be opened at the main LLVM repository instead, but based on the commentary in clang/Sema/HeuristicResolver.h, clangd appears to be the only (or nearly so) consumer of this class, so opening it here. Feel free to redirect however. In any case, as…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
`textDocument/definition` on a function with a weak default definition returns the weak definition, not the strong one
What When a function has a weak default definition (__attribute__((weak))) in one translation unit and a strong definition in another TU, textDocument/definition returns the weak definition. There is no way to reach the strong definition through LSP navigation. This is the intended linker semantics: the strong definition wins at link time, so the weak body is dead code. Editors showing it as *the* definition is misleading. Reproducer Two files, no headers involved: c // main.c #include int __attribute__((weak)) test(int a) { return a + 1; } int main(void) { printf("%d\n", test(10)); // <- go…
27score
testing
Technical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptsno maintainer comment yet; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
Demand25% × 0.00 = 00 reactions, 0 comments
Technical fit30% × 0.40 = 12clangd is in Language & Toolchain (a focus area)
What When a function has a weak default definition (__attribute__((weak))) in one translation unit and a strong definition in another TU, textDocument/definition returns the weak definition. There is no way to reach the strong definition through LSP navigation. This is the…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Dependent call does not get semantic color in the presence of an explicit instantiation
In the following code: c++ template struct Waldo { struct Nested; void Find(Nested*); }; template struct Waldo ::Nested { Waldo* w; void Find() { w->Find(this); } // ; There is no semantic coloring for Find on the indicated line. I would expect there to be one of type DependentName (or perhaps Method after #297 is fixed). If I comment out the explicit instantiation Waldo , the DependentName coloring appears.
27score
templates
Technical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
In the following code: c++ template struct Waldo { struct Nested; void Find(Nested*); }; template struct Waldo ::Nested { Waldo* w; void Find() { w->Find(this); } // ; There is no semantic coloring for Find on the indicated line. I would expect there to be one of type…
Suggested first step
Reproduce the bug on the latest main branch of clangd, reduce it to a minimal example, and post your findings on the issue before opening a PR.
Support ignoring paths when searching for includes in .clangd files.
The layout of one of my projects is as the following: ROOT A B ROOT, A and B are all opend as a vscode folder. I placed different .clangd files in A and B. A doesn't include anything from B. However, clangd misrecognized a include in A to be some header foo.h with the same name from B, resulted in false-negative warnings. The point is, I cannot do anything about it. It seems that clangd's some default behavior resulted in this. Neither c compilers nor clangd provides an option to fix this. So I suggest a feature to ignore include paths for a more controllable behavior when working under…
27score
Technical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
The layout of one of my projects is as the following: ROOT A B ROOT, A and B are all opend as a vscode folder. I placed different .clangd files in A and B. A doesn't include anything from B. However, clangd misrecognized a include in A to be some header foo.h with the same name…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Code action for dropping qualifiers or using aliases
using ns::Foo; using Y = ns::Foo; ns::Foo bar() { ns::Foo x; return x; } A code action that replaces all ns::Foo with Foo or Y, triggered on the using declaration (or type alias) could be useful and goes well with the existing add using declaration code action, which performs a similar action in the other direction (That interaction could also benefit from replacing all the occurences).
27score
Technical fitweight 30% × value 0.40 = 12.0 ptsclangd is in Language & Toolchain (a focus area)Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; filed by a maintainerFeasibilityweight 20% × value 0.50 = 10.0 ptsclear scope; has reproduction steps; has code; project onboarding 25%
using ns::Foo; using Y = ns::Foo; ns::Foo bar() { ns::Foo x; return x; } A code action that replaces all ns::Foo with Foo or Y, triggered on the using declaration (or type alias) could be useful and goes well with the existing add using declaration code action, which performs a…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
○Health 37◐Contribution friendliness 65computed 20h ago
Activity0.00
0 merged PRs in 30 days (full marks at 20); 0 commits in 30 days (full marks at 60) [health score: no data for maintainer responsiveness; weights renormalized]health
Onboarding0.25
has CI; missing contributing guide, mainstream build (CMake/Bazel/Meson), docs site [contrib score: no data for maintainer responsiveness; weights renormalized]contrib
Entry points1.00
34 open, unassigned good-first-issue/help-wanted issues without a PR (full marks at 10) [contrib score: no data for maintainer responsiveness; weights renormalized]contrib
Release cadence1.00
last release 81 days ago (full marks within 90, zero after 730); 10 releases in 365 days (full marks at 4) [health score: no data for maintainer responsiveness; weights renormalized]health
Backlog pressure0.00
90% of 297 scanned open issues are older than a year (full marks at <= 20%, zero at >= 80%) [health score: no data for maintainer responsiveness; weights renormalized]health
Contributor breadth0.46
1 unique contributors in 90 days (full marks at 25); top contributor has 29% of commits; stars count for at most 5% of this signal [health score: no data for maintainer responsiveness; weights renormalized]health
Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.
Currently clangd doesn't work with non-self-contained files, even if people have a way to build their projects with those files, for example by merging some/all of non-self-contained files into a single TU and building that file.
It would be nice if some of {C++20 modules, clang header modules} worked in clangd. Essentially no configurations of this work today: occasionally things may happen to work but there are many reported problems and crashes. These are not jus