Skip to content
0.2.0-dev Download ZIP
57 lines ·1.1 KB Raw
1# https://clangd.llvm.org/config
2
3---
4
5# Default conditions, apply everywhere.
6
7CompileFlags:
8 Add:
9 # Some thirdparty includes seem to require a high -ferror-limit to pass checks.
10 - -ferror-limit=100
11
12Diagnostics:
13 Includes:
14 IgnoreHeader:
15 - \.compat\.inc
16
17---
18
19# Header-specific conditions.
20
21If:
22 PathMatch: .*\.(h|hh|hpp|hxx|inc)
23
24# Exclude certain, noisy warnings that lack full context. Replace with lowered severity if/when
25# clangd gets diagnostic severity support. (See: https://github.com/clangd/clangd/issues/1937)
26CompileFlags:
27 Add:
28 - -Wno-unneeded-internal-declaration
29 - -Wno-unused-const-variable
30 - -Wno-unused-function
31 - -Wno-unused-variable
32
33---
34
35# Stylistic rules; apply gradually to codebase.
36
37If:
38 PathExclude: core/.*
39Diagnostics:
40 ClangTidy:
41 Remove: [readability-identifier-naming]
42
43---
44
45# Suppress warnings for third-party or partial code.
46
47If:
48 PathMatch:
49 - bin/build_deps/.*
50 - misc/dist/apple_embedded_xcode/.*
51 - tests/compatibility_test/.*
52 - thirdparty/.*
53 - .*/thirdparty/.*
54 - .*-so_wrap.[ch]
55
56Diagnostics:
57 Suppress: "*"