clangd / clangd

clangd language server
https://clangd.llvm.org
Apache License 2.0
1.56k stars 64 forks source link

stl thread hdr not found #1422

Open uuuuu-diwu opened 1 year ago

uuuuu-diwu commented 1 year ago

platform: macos

compiler:

Apple clang version 12.0.0 (clang-1200.0.32.29) Target: x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

clangd version: v0.1.23, vscode plugin

vs code settings.json args : { "clangd.arguments": [ "--query-driver=/usr/bin/clang", // 在后台自动分析文件(基于complie_commands) "--background-index", // clang-tidy功能 "--clang-tidy", "--clang-tidy-checks=performance-,bugprone-", // 全局补全(会自动补充头文件) "--all-scopes-completion", // 更详细的补全内容 "--completion-style=detailed", // 补充头文件的形式 "--header-insertion=iwyu", // pch优化的位置 "--pch-storage=disk", "--compile-commands-dir=${workspaceFolder}/build/", "-log=verbose", ], "C_Cpp.intelliSenseEngine": "disabled", }

image

HighCommander4 commented 1 year ago

Could you attach clangd logs please?