clangd / vscode-clangd

Visual Studio Code extension for clangd
https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
MIT License
594 stars 97 forks source link

On MacOS, show's a lot of error or warning from clang-tidy in system headers #580

Closed levihuayuzhang closed 5 months ago

levihuayuzhang commented 5 months ago

Like in sys/socket.h, shows a lot reversed-indentifier hints.

Wondering if there any way to set the clangd or clang-tidy to stop analyzing the system or 3rd party headers/code, and suppress relatited warning or errors?

levihuayuzhang commented 5 months ago

It seems because I enabled the ~/Library/Preferences/clangd/config.yaml, remove the user config file and set it in vscode extension settings would be fine. As for the clang-tidy options, use .clang-tidy in project root directory.