فهرست منبع

clang-tidy: refine config to match my tastes too :)

skypjack 4 ماه پیش
والد
کامیت
4c19d2844e
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 0
      .clang-tidy
  2. 1 1
      src/entt/meta/meta.hpp

+ 1 - 0
.clang-tidy

@@ -21,6 +21,7 @@ Checks: >
     -readability-else-after-return,
     -readability-else-after-return,
     -readability-function-cognitive-complexity,
     -readability-function-cognitive-complexity,
     -readability-named-parameter,
     -readability-named-parameter,
+    -readability-redundant-member-init
     -readability-uppercase-literal-suffix,
     -readability-uppercase-literal-suffix,
 CheckOptions:
 CheckOptions:
     - key: cppcoreguidelines-avoid-magic-numbers.IgnoreAllFloatingPointValues
     - key: cppcoreguidelines-avoid-magic-numbers.IgnoreAllFloatingPointValues

+ 1 - 1
src/entt/meta/meta.hpp

@@ -735,7 +735,7 @@ public:
     }
     }
 
 
 private:
 private:
-    meta_any any;
+    meta_any any{};
 };
 };
 
 
 /*! @brief Opaque wrapper for user defined data of any type. */
 /*! @brief Opaque wrapper for user defined data of any type. */