brew install gccbrew install llvmmake buildMacにデフォルトで搭載されているclangdは古いのでbrewで入れたllvmに付属するclangdを利用
{
"clangd": {
"command": "/opt/homebrew/opt/llvm/bin/clangd",
"rootPatterns": [".git/", "compile_flags.txt", "compile_commands.json"],
"filetypes": ["c", "cpp", "objc", "objcpp"]
}
}