New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clangd cannot complete concepts correctly #1103
Comments
Could you elaborate on the bolded part please:
Other than auto-completion for the |
Keyword completion is tracked in #89. |
clangd does give concept names a semantic token, but it uses a dedicated
|
I have prepared a change to fix completion and find references: https://reviews.llvm.org/D124441 (has not landed yet)
|
…sions Add support for concepts and requires expression in the clang index. Genarate USRs for concepts. Also change how `RecursiveASTVisitor` handles return type requirement in requires expressions. The new code unpacks the synthetic template parameter list used for storing the actual expression. This simplifies implementation of the indexing. No code seems to depend on the original traversal anyway and the synthesized template parameter list is easily accessible from inside the requires expression if needed. Add tests in the clangd codebase. Fixes clangd/clangd#1103. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D124441
…sions Add support for concepts and requires expression in the clang index. Genarate USRs for concepts. Also change how `RecursiveASTVisitor` handles return type requirement in requires expressions. The new code unpacks the synthetic template parameter list used for storing the actual expression. This simplifies implementation of the indexing. No code seems to depend on the original traversal anyway and the synthesized template parameter list is easily accessible from inside the requires expression if needed. Add tests in the clangd codebase. Fixes clangd/clangd#1103. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D124441
Clangd cannot intellisense concepts even if I set "std=c++20" in the compile_commands.json
For example,
and the .vscode/compile_commands.json
and the clangd arguments
clangd will not autocomplete the c++ key word "concept" and list the concepts in .
Of cause,clang++ can compile the file correctly.
And after I finished the code segment manually,clangd did not report any errors, color the words correctly except concepts.
Logs
Well,clangd is running normally.There is no error in the output windows.
System information
clangd version:14.0.0 (https://github.com/llvm/llvm-project 329fda39c507e8740978d10458451dcdb21563be)
Editor:vscode-insiders
LSP plugs:clangd0.1.15
Operating system:Windows
The text was updated successfully, but these errors were encountered: