cost 178 ms
Visual Studio Code C Intellisense 不显示 macOS 上的函数描述/文档(使用 C/C++ Intellisense 或 Clangd) - Visual Studio Code C Intellisense doesn't show functions description/documentation on macOS (Using Either C/C++ Intellisense or Clangd)

我的 mac 上的 vscode 一直存在这个问题,当我 hover 或调用系统函数时,它没有显示它们的描述,它只显示 arguments,没有任何解释。 我尝试使用 MS C/Cpp 扩展及其默认的智能感知并切换到 clangd,但都没有用。 相反,当我使用 CLion 时,它显示一切都很好。 ...

clangd 不识别标准标头 - clangd doesn't recognize standard headers

这个问题已经被问过和回答过很多次了,但似乎没有一个答案对我有用。 我一直在尝试在clangd lsp 中设置 clangd。 我用bear生成了compile_commands.json ,但是 clangd 仍然给我错误,告诉我它找不到标准库头文件。 这是一个最小的例子: 主.cpp: 然后我运行 ...

如何忽略 VSCode 的 clangd 插件的一些警告? - How can I ignore some warning of VSCode's clangd plugin?

我在VSCode中安装了一个clangd插件来开发C++。 这个插件运行良好,但它在我们的项目中显示了一些代码错误/警告,因为我们在 <zstd.h> 中使用了已弃用的 function。 包括 <zstd.h> 弃用 function 如何在不更改代码的情况下屏蔽此错误? ...

VSCode - clangd 扩展在保存时不格式化/lint - VSCode - clangd extension does not format/lint on save

我正在使用带有 clangd 扩展的 VSCode 进行 C++ 开发(通过远程 SSH 扩展)。 我有 my.clang-format 和 .clang-tidy 文件,其中包含我要执行的规则。 如果我手动格式化代码(Ctrl-Alt-F 或右键单击 -> 格式化文档),代码将毫无问题地格 ...

有没有办法在不重新编译的情况下指定clangd的c++标准? - Is there a way to specify the c++ standard of clangd without recompiling it?

我正在尝试使用 c++17(const lambdas) 中的一个功能,而不会出现 clangd 错误。 我在网上搜索过,每个答案都告诉我用标志重新编译clangd。 真的没有别的办法了吗? 编辑:Clangd 不是编译器。 它是一个语言服务器,它是一个与 IDE 一起使用的程序,它基本上在编译代 ...

我如何使用 neovim 和 coc.nvim 在 linux 上开发 windows c++ 应用程序 - How can i use neovim and coc.nvim for develop windows c++ apps on linux

我在 linux 上开发 c++ 应用程序,并使用带有coc.nvim和coc-clangd插件的 neovim。 我想为 windows 开发一个应用程序,但我对 linux 和 neovim 感到满意,所以我想使用它们。 但我得到一些包含一些 windows 标头(等“windows.h”)的错 ...

在包含的文件中:在 Neovim LSP 中找不到“begin_code.h”文件 - In included file: 'begin_code.h' file not found occurring in Neovim LSP

我正在尝试为 C 开发设置我的 Neovim,但是,每当我使用:#include <SDL2/SDL.h> 时,我都会收到一条错误消息,提示“在包含的文件中:找不到‘begin_code.h’文件”。 我做了一些挖掘,在我的包含文件中,我确实看到了“begin_code.h”。 我只是很 ...

如何使 SCons 导出编译命令,包括指向 conda 虚拟环境的标志? - How to make SCons export compile commands including flags pointing to a conda virtual environment?

我正在开发一个使用 SCons 构建的 C++ 项目。 我使用系统的 package 管理器安装了 SCons。 该项目有一些我使用 conda 安装到虚拟环境中的依赖项。 我按照 SCons文档导出了compile_commands.json 。 当我激活项目的 conda 环境,然后运行 ​​ ...

带有 .inl 文件的 vscode-clangd - vscode-clangd with .inl files

我知道对此有很多问题,但似乎不是我需要的或不够清楚。 我正在为我的 c++ 项目使用 Visual Studio 代码。 起初我使用的是智能感知,它工作得很好,除了我错过了调用层次结构这一事实。 我听说使用Visual Studio clangd 扩展,你可以有这个调用层次结构,我确实有,但现在我的 ...

Visual Studio Code clangd 查找所有引用仅适用于本地文件夹 - Visual Studio Code clangd Find all references only works for local folder

我有一个项目,其中包含多个文件夹中的源文件。 我使用 clangd 作为我的语言服务器。 我的源文件夹顶部有一个 cmake 文件(我实际上不使用 cmake 来构建我的项目,我只使用它来生成compile_commands.json以允许 clangd 知道包含目录和其他文件项目)。 我的 cma ...

为什么 clang 会发出警告:文件末尾未终止的“#pragma pack (push, …)”? - Why does clang give a warning: unterminated ‘#pragma pack (push, …)’ at end of file?

我在启用了 clangd 的vscode中创建了一个 main.cpp,并将以下代码放入其中。 clangd在第一行发出警告消息: 警告:文件末尾未终止“#pragma pack (push, …)” main.cpp的全部内容: 另见: https://releases.llvm.org/1 ...

2022-06-01 03:20:00   2   714    c++ / clangd  

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM