Parcourir la source

monostate: make it clear to the linter that we want value and monostate_v to be global

Michele Caini il y a 2 ans
Parent
commit
86cdb6f55d
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/entt/core/monostate.hpp

+ 2 - 0
src/entt/core/monostate.hpp

@@ -43,6 +43,7 @@ struct monostate {
 
 private:
     template<typename Type>
+    // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
     inline static ENTT_MAYBE_ATOMIC(Type) value{};
 };
 
@@ -51,6 +52,7 @@ private:
  * @tparam Value Value used to differentiate between different variables.
  */
 template<id_type Value>
+// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
 inline monostate<Value> monostate_v{};
 
 } // namespace entt