clangd / vscode-clangd

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

Support excluding code analysis for specific file patterns like `C_Cpp.codeAnalysis.exclude` #673

Open Aneureka opened 2 months ago

Aneureka commented 2 months ago

As titled, think it would be helpful to have settings like C_Cpp.files.exclude or C_Cpp.codeAnalysis.exclude to avoid analyzing specific source files (e.g., large header files with ~100k lines of code, currently clangd analyzes these huge files and probably causes OOM) to prevent from occupying plenty of resources.

HighCommander4 commented 2 months ago

See https://github.com/clangd/vscode-clangd/issues/185 for a similar request.