软件提示:SonarLint is unable to analyze C and C++ file(s) because there is no configured compilation
database.
软件提供方案:No compilation databases were found in the workspace
https://github.com/SonarSource/sonarlint-vscode/wiki/C-and-CPP-Analysis
操作环境、软件版本等信息 :win11、vscode、sonarlint v3.6.0
尝试过的解决方法 :(1)下了bear插件,看了安装文档,还是不会安装。(2)下了sonarqube和sonarcloud,不会用。(3)搜了百度和谷歌,在谷歌上遇到类似问题,问答也没给出解决方法,貌似是要一个compile_commands.json文件。
我想要达到的结果:sonarlint检测C/C++代码。
重新安装下vs
给你找了一篇非常好的博客,你可以看看是否有帮助,链接:VS Code中Sonarlint的安装和配置