Skip to content

Commit

Permalink
Add .clangd as a filename for YAML (#7063)
Browse files Browse the repository at this point in the history
* Add .clangd as a filename for YAML

* Add a sample YAML file with filename .clangd
  • Loading branch information
tahmid-khan authored Nov 25, 2024
1 parent bc6e2c8 commit c485d9d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8275,6 +8275,7 @@ YAML:
filenames:
- ".clang-format"
- ".clang-tidy"
- ".clangd"
- ".gemrc"
- CITATION.cff
- glide.lock
Expand Down
41 changes: 41 additions & 0 deletions samples/YAML/filenames/.clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
CompileFlags:
CompilationDatabase: "cmake-build"
Add: [
-pedantic,
-Wall,
-Wextra,
-Wconversion,
-Wshadow,
-Wfloat-equal,
-Wmisleading-indentation,
-Wimplicit-fallthrough,
]
Diagnostics:
Suppress:
- variadic_device_fn
- attributes_not_allowed
UnusedIncludes: Strict
ClangTidy:
Add: ['*']
Remove:
- abseil-*
- altera-*
- android-*
- fuchsia-*
- google-*
- llvm*
- modernize-use-trailing-return-type
- zircon-*
- readability-else-after-return
- readability-static-accessed-through-instance
- readability-avoid-const-params-in-decls
- cppcoreguidelines-non-private-member-variables-in-classes
- misc-non-private-member-variables-in-classes
CheckOptions:
readability-identifier-naming.VariableCase: lower_case
readability-identifier-naming.FunctionCase: lower_case
readability-identifier-naming.ClassCase: Leading_upper_snake_case
readability-identifier-naming.StructCase: Leading_upper_snake_case
cppcoreguidelines-init-variables.IncludeStyle: google
InlayHints:
BlockEnd: true

0 comments on commit c485d9d

Please sign in to comment.