From e47525931005b6c1ff086c7fcbaeb5f3ea342473 Mon Sep 17 00:00:00 2001 From: wed150 Date: Sat, 20 Jun 2026 21:17:26 +0800 Subject: [PATCH] chore: update clang files --- .clang-format | 2 +- .clang-tidy | 3 +-- .clangd | 14 ++++++-------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.clang-format b/.clang-format index 4a24aec..e0b1f4c 100644 --- a/.clang-format +++ b/.clang-format @@ -43,4 +43,4 @@ PackConstructorInitializers: CurrentLine PointerAlignment: Left TabWidth: 4 UseTab: Never -SortIncludes: CaseSensitive +SortIncludes: CaseSensitive \ No newline at end of file diff --git a/.clang-tidy b/.clang-tidy index 915eee8..7bb1854 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,4 +1,3 @@ -# Generated from CLion Inspection settings --- Checks: '-*, bugprone-argument-comment, @@ -123,7 +122,6 @@ portability-simd-intrinsics, readability-avoid-const-params-in-decls, readability-const-return-type, readability-container-size-empty, -readability-convert-member-functions-to-static, readability-delete-null-pointer, readability-deleted-default, readability-inconsistent-declaration-parameter-name, @@ -143,3 +141,4 @@ readability-static-definition-in-anonymous-namespace, readability-string-compare, readability-uniqueptr-delete-release, readability-use-anyofallof' +... \ No newline at end of file diff --git a/.clangd b/.clangd index 797c8f3..171b41d 100644 --- a/.clangd +++ b/.clangd @@ -1,15 +1,13 @@ Diagnostics: - Suppress: + Suppress: - "-Wmicrosoft-enum-forward-reference" - "-Wc++11-narrowing" - "-Wc++2b-extensions" - "-Wmicrosoft-cast" CompileFlags: - Add: + Add: - "-ferror-limit=0" - - "-D__FUNCTION__=\"dummy\"" - - "-Yumc/_HeaderOutputPredefine.h" - - "-FImc/_HeaderOutputPredefine.h" # clangd bug can't find pch file - Remove: - - "/Yu_HeaderOutputPredefine.h" - - "/FI_HeaderOutputPredefine.h" + - '-D__FUNCTION__="dummy"' + - "-Dnsel_CONFIG_SELECT_EXPECTED=nsel_EXPECTED_NONSTD" + - "/std:c++20" + - "-D_HAS_CXX23=1" \ No newline at end of file