forked from FreeRADIUS/freeradius-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clangd
52 lines (52 loc) · 1.38 KB
/
.clangd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Doxygen table of contents
If:
PathMatch: .*doc/doxygen/.*
Index:
Background: Skip
---
# osmocom code has many errors/warnings and seems to lock up clangd
If:
PathMatch: .*/rlm_sigtran/(libosmo|asn1).*
Index:
Background: Skip
---
# Should apply only to header files
If:
PathMatch: .*\.h
CompileFlags:
# macos: non-system clangd doesn't seem to include /usr/local/include in the default path
Add: [
"-I/usr/local/include"
]
# macos: flags that come from xcrun that brewd clangd doesn't understand
Remove: [
"-clang-vendor-feature*",
"-fno-odr-hash-protocols"
]
Diagnostics:
Suppress: [
# Clangd doesn't register that functions or macros are used in source files which
# include the header files, making these warnings useless.
"unused-macros",
"unused-function"
]
---
# Applies to all files
CompileFlags:
# macos: non-system clangd doesn't seem to include /usr/local/include in the default path
Add: [
"-I/usr/local/include",
"-D__clangd__"
]
# macos: flags that come from xcrun that brewed clangd doesn't understand
Remove: [
"-clang-vendor-feature*",
"-fno-odr-hash-protocols*"
]
Diagnostics:
ClangTidy:
Remove: [
# This is stupid and warns over talloc_array_length using sizeof(foo) / sizeof(foo *)
# to determine the number of elements in an array.
"bugprone-sizeof-expression"
]