# 禁用或跳过不必要的后台索引
Index:
Background: Skip # 对某些路径完全跳过后台索引(推荐先试这个)
# 或者限制标准库索引
Index:
StandardLibrary: false # 如果不需要 std:: 全局补全
# 编译标志优化(加速解析)
CompileFlags:
Add: [-Wall, -Wno-xxx] # 根据需要添加/移除标志,减少警告处理
Remove: [-Weverything] # 移除耗时检查
# 其他性能选项
Diagnostics:
ClangTidy:
FastCheckFilter: Strict # 只跑快速的 clang-tidy 检查
# 示例:只对特定目录禁用后台索引
---
If:
PathMatch: third_party/.* # 或 vendor/、build/ 等
Index:
Background: Skip