| 1 |
# https://clangd.llvm.org/config |
| 2 |
--- |
| 3 |
# Default conditions, apply everywhere. |
| 4 |
|
| 5 |
Diagnostics: |
| 6 |
Includes: |
| 7 |
IgnoreHeader: |
| 8 |
- \.compat\.inc |
| 9 |
--- |
| 10 |
# Header-specific conditions. |
| 11 |
|
| 12 |
If: |
| 13 |
PathMatch: .*\.(h|hh|hpp|hxx|inc) |
| 14 |
|
| 15 |
# Exclude certain, noisy warnings that lack full context. Replace with lowered severity if/when |
| 16 |
# clangd gets diagnostic severity support. (See: https://github.com/clangd/clangd/issues/1937) |
| 17 |
CompileFlags: |
| 18 |
Add: |
| 19 |
- -Wno-unneeded-internal-declaration |
| 20 |
- -Wno-unused-const-variable |
| 21 |
- -Wno-unused-function |
| 22 |
- -Wno-unused-variable |
| 23 |
--- |
| 24 |
# Suppress all third-party warnings. |
| 25 |
|
| 26 |
If: |
| 27 |
PathMatch: thirdparty/.* |
| 28 |
|
| 29 |
Diagnostics: |
| 30 |
Suppress: "*" |