-
-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy path.clangd
More file actions
26 lines (26 loc) · 1.2 KB
/
.clangd
File metadata and controls
26 lines (26 loc) · 1.2 KB
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
# https://clangd.llvm.org/config
Index:
StandardLibrary: Yes
Diagnostics:
UnusedIncludes: Strict
MissingIncludes: Strict
Includes:
IgnoreHeader:
- "fmt/format\.h" # Do not remove or add this
- "fmt/compile\.h" # private -> use fmt/format.h
- "asm-generic/socket\.h" # private -> use sys/socket.h
- "asm/unistd_32\.h" # private -> use unistd.h
- "asm/unistd_64\.h" # private -> use unistd.h
- "bits/.*" # private -> use standard headers like <string>, etc.
- "google/protobuf/.*" # checked by envoy linting -> use source/common/protobuf/protobuf.h
- "linux/in\.h" # private -> use netinet/in.h
- "linux/in6\.h" # private -> use netinet/in.h
- "mutex" # checked by envoy linting -> use source/common/common/thread.h
- "cstdint" # Do not complain the uint64_t is not directly included
# CompileFlags:
# CompilationDatabase: ./compile_commands.json
# # Unfortunately, above config isn't working as expected.
# # Therefore it's recommended to use clangd argument
# # `--compile-commands-dir=<working_dir>` to improve the
# # clangd support for the external Envoy bazel-dependencies.
# # See https://github.com/clangd/clangd/discussions/907