forked from FreeRADIUS/freeradius-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clangd
40 lines (40 loc) · 1.15 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
# 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 brewd 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"
]