From 6e8f533393890ad2b111e8abc7a9412efa3dc30f Mon Sep 17 00:00:00 2001 From: Tahmid Khan <60913202+tahmid-khan@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:51:31 +0000 Subject: [PATCH 1/2] Add .clangd as a filename for YAML --- lib/linguist/languages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 9bde77235a..bb2f7b7978 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -8254,6 +8254,7 @@ YAML: filenames: - ".clang-format" - ".clang-tidy" + - ".clangd" - ".gemrc" - CITATION.cff - glide.lock From acd5a208e7979e4bd216f5dc0ea0ca96d6c393ca Mon Sep 17 00:00:00 2001 From: Tahmid Khan <60913202+tahmid-khan@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:54:42 +0000 Subject: [PATCH 2/2] Add a sample YAML file with filename .clangd --- samples/YAML/filenames/.clangd | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 samples/YAML/filenames/.clangd diff --git a/samples/YAML/filenames/.clangd b/samples/YAML/filenames/.clangd new file mode 100644 index 0000000000..38dbc328ac --- /dev/null +++ b/samples/YAML/filenames/.clangd @@ -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