diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-22 23:48:51 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-22 23:48:51 +0100 |
| commit | ee3b7c3b8d1072e2ff424046b2835831b6d57ec5 (patch) | |
| tree | 6eec2a9209607db67c560648f0c7e48d4b517587 /src/kernel/NeKit | |
| parent | c965bc54982d6b90ae91edd3bb1103a8d356e59a (diff) | |
chore: ran format.sh
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/NeKit')
| -rw-r--r-- | src/kernel/NeKit/Config.h | 18 | ||||
| -rw-r--r-- | src/kernel/NeKit/Domain.h | 6 | ||||
| -rw-r--r-- | src/kernel/NeKit/Ref.h | 4 | ||||
| -rw-r--r-- | src/kernel/NeKit/Vettable.h | 4 |
4 files changed, 15 insertions, 17 deletions
diff --git a/src/kernel/NeKit/Config.h b/src/kernel/NeKit/Config.h index e4e34e2c..3eceb79e 100644 --- a/src/kernel/NeKit/Config.h +++ b/src/kernel/NeKit/Config.h @@ -191,9 +191,9 @@ template <class Type> struct FalseResult final { using ResultType = Type; using ResultTypeRef = ResultType&; - using TypeRef = ResultTypeRef; - using ConstType = const Type&; - using TypePtr = Type*; + using TypeRef = ResultTypeRef; + using ConstType = const Type&; + using TypePtr = Type*; static constexpr bool kValue = false; }; @@ -202,9 +202,9 @@ template <class Type> struct TrueResult final { using ResultType = Type; using ResultTypeRef = ResultType&; - using TypeRef = ResultTypeRef; - using ConstType = const Type&; - using TypePtr = Type*; + using TypeRef = ResultTypeRef; + using ConstType = const Type&; + using TypePtr = Type*; static constexpr bool kValue = true; }; @@ -213,9 +213,9 @@ template <class Type> struct PropertyResult final { using ResultType = Type; using ResultTypeRef = ResultType&; - using TypeRef = ResultTypeRef; - using ConstType = const Type&; - using TypePtr = Type*; + using TypeRef = ResultTypeRef; + using ConstType = const Type&; + using TypePtr = Type*; static constexpr bool kValue = Type::kValue; }; diff --git a/src/kernel/NeKit/Domain.h b/src/kernel/NeKit/Domain.h index 376fd9d5..534d6901 100644 --- a/src/kernel/NeKit/Domain.h +++ b/src/kernel/NeKit/Domain.h @@ -14,9 +14,9 @@ template <class Type> struct IsDefined final { using ResultType = Type; using ResultTypeRef = Type&; - using TypeRef = ResultTypeRef; - using ConstType = const Type&; - using TypePtr = Type*; + using TypeRef = ResultTypeRef; + using ConstType = const Type&; + using TypePtr = Type*; static constexpr bool kValue = true; }; diff --git a/src/kernel/NeKit/Ref.h b/src/kernel/NeKit/Ref.h index 58a77238..ee7d6e7d 100644 --- a/src/kernel/NeKit/Ref.h +++ b/src/kernel/NeKit/Ref.h @@ -61,9 +61,9 @@ class Ref final { explicit operator bool() { if constexpr (IsVettable<Type>) { - return Type::kVettable; + return Type::kVettable; } else { - return false; + return false; } } diff --git a/src/kernel/NeKit/Vettable.h b/src/kernel/NeKit/Vettable.h index a09a6aae..f59d803c 100644 --- a/src/kernel/NeKit/Vettable.h +++ b/src/kernel/NeKit/Vettable.h @@ -16,9 +16,7 @@ namespace Kernel { template <class Type> -concept IsVettable = requires(Type) { - (Type::kVettable); -}; +concept IsVettable = requires(Type) { (Type::kVettable); }; } // namespace Kernel #endif // !__NE_KIT_VETTABLE_H__ |
