@@ -175,7 +175,7 @@ template <typename... Types>
175175struct TypeTraits <Tuple<Types...>> : public ObjectRefTypeTraitsBase<Tuple<Types...>> {
176176 using ObjectRefTypeTraitsBase<Tuple<Types...>>::CopyFromAnyViewAfterCheck;
177177
178- static TVM_FFI_INLINE std::string GetMismatchTypeInfo (const TVMFFIAny* src) {
178+ TVM_FFI_INLINE static std::string GetMismatchTypeInfo (const TVMFFIAny* src) {
179179 if (src->type_index != TypeIndex::kTVMFFIArray ) {
180180 return TypeTraitsBase::GetMismatchTypeInfo (src);
181181 }
@@ -187,7 +187,7 @@ struct TypeTraits<Tuple<Types...>> : public ObjectRefTypeTraitsBase<Tuple<Types.
187187 }
188188
189189 template <size_t I, typename T, typename ... Rest>
190- static TVM_FFI_INLINE std::string GetMismatchTypeInfoHelper (const Any* arr) {
190+ TVM_FFI_INLINE static std::string GetMismatchTypeInfoHelper (const Any* arr) {
191191 if constexpr (!std::is_same_v<T, Any>) {
192192 const Any& any_v = arr[I];
193193 if (!details::AnyUnsafe::CheckAnyStrict<T>(any_v) && !(any_v.try_cast <T>().has_value ())) {
@@ -203,7 +203,7 @@ struct TypeTraits<Tuple<Types...>> : public ObjectRefTypeTraitsBase<Tuple<Types.
203203 TVM_FFI_UNREACHABLE ();
204204 }
205205
206- static TVM_FFI_INLINE bool CheckAnyStrict (const TVMFFIAny* src) {
206+ TVM_FFI_INLINE static bool CheckAnyStrict (const TVMFFIAny* src) {
207207 if (src->type_index != TypeIndex::kTVMFFIArray ) return false ;
208208 const ArrayObj* n = reinterpret_cast <const ArrayObj*>(src->v_obj );
209209 if (n->size () != sizeof ...(Types)) return false ;
@@ -212,7 +212,7 @@ struct TypeTraits<Tuple<Types...>> : public ObjectRefTypeTraitsBase<Tuple<Types.
212212 }
213213
214214 template <size_t I, typename T, typename ... Rest>
215- static TVM_FFI_INLINE bool CheckAnyStrictHelper (const TVMFFIAny* src_arr) {
215+ TVM_FFI_INLINE static bool CheckAnyStrictHelper (const TVMFFIAny* src_arr) {
216216 if constexpr (!std::is_same_v<T, Any>) {
217217 if (!TypeTraits<T>::CheckAnyStrict (src_arr + I)) {
218218 return false ;
@@ -224,7 +224,7 @@ struct TypeTraits<Tuple<Types...>> : public ObjectRefTypeTraitsBase<Tuple<Types.
224224 return true ;
225225 }
226226
227- static TVM_FFI_INLINE std::optional<Tuple<Types...>> TryCastFromAnyView (const TVMFFIAny* src //
227+ TVM_FFI_INLINE static std::optional<Tuple<Types...>> TryCastFromAnyView (const TVMFFIAny* src //
228228 ) {
229229 if (src->type_index != TypeIndex::kTVMFFIArray ) return std::nullopt ;
230230 const ArrayObj* n = reinterpret_cast <const ArrayObj*>(src->v_obj );
@@ -243,7 +243,7 @@ struct TypeTraits<Tuple<Types...>> : public ObjectRefTypeTraitsBase<Tuple<Types.
243243 }
244244
245245 template <size_t I, typename T, typename ... Rest>
246- static TVM_FFI_INLINE bool TryConvertElements (Any* arr) {
246+ TVM_FFI_INLINE static bool TryConvertElements (Any* arr) {
247247 if constexpr (!std::is_same_v<T, Any>) {
248248 if (auto opt_convert = arr[I].try_cast <T>()) {
249249 arr[I] = *std::move (opt_convert);
@@ -258,7 +258,7 @@ struct TypeTraits<Tuple<Types...>> : public ObjectRefTypeTraitsBase<Tuple<Types.
258258 }
259259 }
260260
261- static TVM_FFI_INLINE std::string TypeStr () {
261+ TVM_FFI_INLINE static std::string TypeStr () {
262262 return details::ContainerTypeStr<Types...>(" Tuple" );
263263 }
264264};
0 commit comments