You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
Style: Partially apply clang-tidy's cppcoreguidelines-pro-type-member-init
Didn't commit all the changes where it wants to initialize a struct
with `{}`. Should be reviewed in a separate PR.
Option `IgnoreArrays` enabled for now to be conservative, can be
disabled to see if it proposes more useful changes.
Also fixed manually a handful of other missing initializations / moved
some from constructors.
This commit is contained in:
@@ -1110,14 +1110,14 @@ static _FORCE_INLINE_ Variant::Type get_ret_type_helper(void (*p_func)(P...)) {
|
||||
register_utility_function<Func_##m_func>(#m_func, m_args)
|
||||
|
||||
struct VariantUtilityFunctionInfo {
|
||||
void (*call_utility)(Variant *r_ret, const Variant **p_args, int p_argcount, Callable::CallError &r_error);
|
||||
Variant::ValidatedUtilityFunction validated_call_utility;
|
||||
Variant::PTRUtilityFunction ptr_call_utility;
|
||||
void (*call_utility)(Variant *r_ret, const Variant **p_args, int p_argcount, Callable::CallError &r_error) = nullptr;
|
||||
Variant::ValidatedUtilityFunction validated_call_utility = nullptr;
|
||||
Variant::PTRUtilityFunction ptr_call_utility = nullptr;
|
||||
Vector<String> argnames;
|
||||
bool is_vararg;
|
||||
bool returns_value;
|
||||
int argcount;
|
||||
Variant::Type (*get_arg_type)(int);
|
||||
bool is_vararg = false;
|
||||
bool returns_value = false;
|
||||
int argcount = 0;
|
||||
Variant::Type (*get_arg_type)(int) = nullptr;
|
||||
Variant::Type return_type;
|
||||
Variant::UtilityFunctionType type;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user