-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.clangd
50 lines (47 loc) · 1.32 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
# SPDX-FileCopyrightText: None
#
# SPDX-License-Identifier: CC0-1.0
---
CompileFlags:
Add:
- -Wall
- -Wextra
- -Wpedantic
- -Wimplicit-fallthrough
- -Wwrite-strings
- -Wshadow
- -Wundef
- -Wformat=2
- -Wnull-dereference
- -Wno-gnu-zero-variadic-macro-arguments
- -fno-exceptions
- -xc
- -std=c11
- -DTREE_SITTER_INTERNAL_BUILD
Diagnostics:
ClangTidy:
Add:
- android-cloexec-*
- bugprone-*
- cert-*
- cppcoreguidelines-*
- fuchsia-trailing-return
- google-global-names-in-headers
- hicpp-*
- misc-*
- modernize-*
- performance-*
- readability-*
Remove: modernize-use-trailing-return-type
CheckOptions:
cppcoreguidelines-avoid-do-while.IgnoreMacros: true
readability-function-cognitive-complexity.IgnoreMacros: true
readability-implicit-bool-conversion.AllowPointerConditions: true
readability-identifier-naming.ConstantCase: UPPER_CASE
readability-identifier-naming.LocalConstantCase: lower_case
readability-identifier-naming.EnumConstantCase: UPPER_CASE
readability-identifier-naming.FunctionCase: lower_case
readability-identifier-naming.MacroDefinitionCase: UPPER_CASE
readability-identifier-naming.VariableCase: lower_case
UnusedIncludes: Strict
# vim: set ft=yaml et: