Skip to content

Commit c485d9d

Browse files
authored
Add .clangd as a filename for YAML (#7063)
* Add .clangd as a filename for YAML * Add a sample YAML file with filename .clangd
1 parent bc6e2c8 commit c485d9d

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

lib/linguist/languages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8275,6 +8275,7 @@ YAML:
82758275
filenames:
82768276
- ".clang-format"
82778277
- ".clang-tidy"
8278+
- ".clangd"
82788279
- ".gemrc"
82798280
- CITATION.cff
82808281
- glide.lock

samples/YAML/filenames/.clangd

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
CompileFlags:
2+
CompilationDatabase: "cmake-build"
3+
Add: [
4+
-pedantic,
5+
-Wall,
6+
-Wextra,
7+
-Wconversion,
8+
-Wshadow,
9+
-Wfloat-equal,
10+
-Wmisleading-indentation,
11+
-Wimplicit-fallthrough,
12+
]
13+
Diagnostics:
14+
Suppress:
15+
- variadic_device_fn
16+
- attributes_not_allowed
17+
UnusedIncludes: Strict
18+
ClangTidy:
19+
Add: ['*']
20+
Remove:
21+
- abseil-*
22+
- altera-*
23+
- android-*
24+
- fuchsia-*
25+
- google-*
26+
- llvm*
27+
- modernize-use-trailing-return-type
28+
- zircon-*
29+
- readability-else-after-return
30+
- readability-static-accessed-through-instance
31+
- readability-avoid-const-params-in-decls
32+
- cppcoreguidelines-non-private-member-variables-in-classes
33+
- misc-non-private-member-variables-in-classes
34+
CheckOptions:
35+
readability-identifier-naming.VariableCase: lower_case
36+
readability-identifier-naming.FunctionCase: lower_case
37+
readability-identifier-naming.ClassCase: Leading_upper_snake_case
38+
readability-identifier-naming.StructCase: Leading_upper_snake_case
39+
cppcoreguidelines-init-variables.IncludeStyle: google
40+
InlayHints:
41+
BlockEnd: true

0 commit comments

Comments
 (0)