[.gitignore] Ignore .clangd config file (#174287)

If anyone wants to use a custom `.clangd` config in the repo, they will
need to manually "git ignore it". Since clangd is a popular tool and
`.clangd` config is usually set up per-person, it's beneficial to add it
to gitignore.

As a matter of fact, I wanted to enable diagnostics from all clang-tidy
checks in IDE, with such config:

```
Diagnostics:
    ClangTidy:
        FastCheckFilter: None
```

(By default, clangd will skip some "expensive" checks like
const-correctness)
This commit is contained in:
Baranov Victor 2026-01-04 10:23:54 +03:00 committed by GitHub
parent 60bf38180b
commit 2528224ab9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

1
.gitignore vendored
View file

@ -73,6 +73,7 @@ pythonenv*
# clangd index. (".clangd" is a config file now, thus trailing slash)
.clangd/
.cache
.clangd
# static analyzer regression testing project files
/clang/utils/analyzer/projects/*/CachedSource
/clang/utils/analyzer/projects/*/PatchedSource