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
|
# clangd settings for whoson, taken from zash. The Makefile's flags are not a
# compilation database, so the editor is told the same language level and
# macros here.
CompileFlags:
Add: [-std=c23, -D_XOPEN_SOURCE=600, -D_POSIX_C_SOURCE=200809L,
-D_ALL_SOURCE, -D_EXT, -D_OPEN_SYS, -D_OPEN_SYS_FILE_EXT=1,
-Wall, -Wextra, -Wshadow, -Wconversion, -Wstrict-prototypes,
-Wmissing-prototypes]
# IBM Open XL only: the editor is not that compiler.
Remove: [-fzos-le-char-mode=*, -m64]
---
Diagnostics:
UnusedIncludes: Strict
MissingIncludes: None
# The tree only builds on z/OS with IBM Open XL: Linux clangd has no
# <sys/ps.h>, no attrib_t/st_tag, no F_CONTROL_CVT and no __fchattr, so its
# cascade from the missing z/OS headers is noise. The build on z/OS is the
# authority; these are the diagnostics that cascade from those headers.
Suppress:
- pp_file_not_found
- undeclared_var_use
- unknown_typename
- incomplete_type
- implicit_function_declaration
- implicit-function-declaration
- typecheck_decl_incomplete_type
- field_incomplete_or_sizeless
- no_member
- fatal_too_many_errors
ClangTidy:
# Use .clang-tidy; do not duplicate its checks here.
FastCheckFilter: Strict
# Two checks .clang-tidy already switches off or allows. clangd applies
# its CheckOptions unevenly between clang-tidy versions, so name them
# here too. The tree writes `if (ptr)` and depends on compiler-only
# spellings such as `__attribute__`, which is the implementation's
# namespace to define.
Remove:
- readability-implicit-bool-conversion
- bugprone-reserved-identifier
Index:
Background: Build
InlayHints:
Enabled: false
Hover:
ShowAKA: true
Completion:
AllScopes: false
Style:
FullyQualifiedNamespaces: []
|