mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Style: Add .clangd
config
This commit is contained in:
parent
75ce4266c4
commit
debf19a4e5
2 changed files with 32 additions and 1 deletions
31
.clangd
Normal file
31
.clangd
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# https://clangd.llvm.org/config
|
||||||
|
---
|
||||||
|
# Default conditions, apply everywhere.
|
||||||
|
|
||||||
|
Diagnostics:
|
||||||
|
Includes:
|
||||||
|
IgnoreHeader:
|
||||||
|
- core/typedefs\.h # Our "main" header, featuring transitive includes; allow everywhere.
|
||||||
|
- \.compat\.inc
|
||||||
|
---
|
||||||
|
# Header-specific conditions.
|
||||||
|
|
||||||
|
If:
|
||||||
|
PathMatch: .*\.(h|hh|hpp|hxx|inc)
|
||||||
|
|
||||||
|
# Exclude certain, noisy warnings that lack full context. Replace with lowered severity if/when
|
||||||
|
# clangd gets diagnostic severity support. (See: https://github.com/clangd/clangd/issues/1937)
|
||||||
|
CompileFlags:
|
||||||
|
Add:
|
||||||
|
- -Wno-unneeded-internal-declaration
|
||||||
|
- -Wno-unused-const-variable
|
||||||
|
- -Wno-unused-function
|
||||||
|
- -Wno-unused-variable
|
||||||
|
---
|
||||||
|
# Suppress all third-party warnings.
|
||||||
|
|
||||||
|
If:
|
||||||
|
PathMatch: thirdparty/.*
|
||||||
|
|
||||||
|
Diagnostics:
|
||||||
|
Suppress: "*"
|
|
@ -18,7 +18,7 @@ indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
# YAML requires indentation with spaces instead of tabs.
|
# YAML requires indentation with spaces instead of tabs.
|
||||||
[*.{yml,yaml}]
|
[{*.{yml,yaml},.clang{-format,-tidy,d}}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue