mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Style: Apply clang-format again on all files
Fixes issues introduced by newer clang-format versions or commits pushed directly without using the clang-format pre-commit hook.
This commit is contained in:
parent
9ff17379c2
commit
d5ca9e2f6f
@ -46,8 +46,8 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
||||
|
||||
switch (p_source.get_type()) {
|
||||
|
||||
/* clang-format makes a mess of this macro usage */
|
||||
/* clang-format off */
|
||||
/* clang-format makes a mess of this macro usage */
|
||||
/* clang-format off */
|
||||
|
||||
case Variant::VECTOR2: {
|
||||
|
||||
|
@ -159,7 +159,7 @@ Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int
|
||||
r_variant = str;
|
||||
|
||||
} break;
|
||||
// math types
|
||||
// math types
|
||||
|
||||
case Variant::VECTOR2: {
|
||||
|
||||
@ -959,7 +959,7 @@ Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bo
|
||||
_encode_string(p_variant, buf, r_len);
|
||||
|
||||
} break;
|
||||
// math types
|
||||
// math types
|
||||
|
||||
case Variant::VECTOR2: {
|
||||
|
||||
|
@ -195,7 +195,7 @@ bool Face3::intersects_aabb(const AABB &p_aabb) const {
|
||||
if (!p_aabb.intersects_plane(get_plane()))
|
||||
return false;
|
||||
|
||||
/** TEST FACE AXIS */
|
||||
/** TEST FACE AXIS */
|
||||
|
||||
#define TEST_AXIS(m_ax) \
|
||||
{ \
|
||||
|
@ -256,6 +256,4 @@ bool Face3::intersects_aabb2(const AABB &p_aabb) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
//this sucks...
|
||||
|
||||
#endif // FACE3_H
|
||||
|
@ -195,7 +195,7 @@ public:
|
||||
virtual void set_ime_position(const Point2 &p_pos) {}
|
||||
virtual void set_ime_intermediate_text_callback(ImeCallback p_callback, void *p_inp) {}
|
||||
|
||||
virtual Error open_dynamic_library(const String p_path, void *&p_library_handle,bool p_also_set_library_path=false) { return ERR_UNAVAILABLE; }
|
||||
virtual Error open_dynamic_library(const String p_path, void *&p_library_handle, bool p_also_set_library_path = false) { return ERR_UNAVAILABLE; }
|
||||
virtual Error close_dynamic_library(void *p_library_handle) { return ERR_UNAVAILABLE; }
|
||||
virtual Error get_dynamic_library_symbol_handle(void *p_library_handle, const String p_name, void *&p_symbol_handle, bool p_optional = false) { return ERR_UNAVAILABLE; }
|
||||
|
||||
|
@ -817,7 +817,7 @@ public:
|
||||
|
||||
void _render_list(RenderList::Element **p_elements, int p_element_count, const Transform &p_view_transform, const CameraMatrix &p_projection, GLuint p_base_env, bool p_reverse_cull, bool p_alpha_pass, bool p_shadow, bool p_directional_add, bool p_directional_shadows);
|
||||
|
||||
_FORCE_INLINE_ void _add_geometry(RasterizerStorageGLES3::Geometry *p_geometry, InstanceBase *p_instance, RasterizerStorageGLES3::GeometryOwner *p_owner, int p_material, bool p_depth_pass,bool p_shadow_pass);
|
||||
_FORCE_INLINE_ void _add_geometry(RasterizerStorageGLES3::Geometry *p_geometry, InstanceBase *p_instance, RasterizerStorageGLES3::GeometryOwner *p_owner, int p_material, bool p_depth_pass, bool p_shadow_pass);
|
||||
|
||||
_FORCE_INLINE_ void _add_geometry_with_material(RasterizerStorageGLES3::Geometry *p_geometry, InstanceBase *p_instance, RasterizerStorageGLES3::GeometryOwner *p_owner, RasterizerStorageGLES3::Material *p_material, bool p_depth_pass, bool p_shadow_pass);
|
||||
|
||||
|
@ -391,7 +391,7 @@ String OS_Unix::get_locale() const {
|
||||
return locale;
|
||||
}
|
||||
|
||||
Error OS_Unix::open_dynamic_library(const String p_path, void *&p_library_handle,bool p_also_set_library_path) {
|
||||
Error OS_Unix::open_dynamic_library(const String p_path, void *&p_library_handle, bool p_also_set_library_path) {
|
||||
p_library_handle = dlopen(p_path.utf8().get_data(), RTLD_NOW);
|
||||
if (!p_library_handle) {
|
||||
ERR_EXPLAIN("Can't open dynamic library: " + p_path + ". Error: " + dlerror());
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
//virtual VideoMode get_video_mode() const;
|
||||
//virtual void get_fullscreen_mode_list(List<VideoMode> *p_list) const;
|
||||
|
||||
virtual Error open_dynamic_library(const String p_path, void *&p_library_handle,bool p_also_set_library_path=false);
|
||||
virtual Error open_dynamic_library(const String p_path, void *&p_library_handle, bool p_also_set_library_path = false);
|
||||
virtual Error close_dynamic_library(void *p_library_handle);
|
||||
virtual Error get_dynamic_library_symbol_handle(void *p_library_handle, const String p_name, void *&p_symbol_handle, bool p_optional = false);
|
||||
|
||||
|
@ -508,7 +508,7 @@ public:
|
||||
} else if (current->has_setting("application/config/name")) {
|
||||
project_name->set_text(current->get("application/config/name"));
|
||||
}
|
||||
|
||||
|
||||
project_name->call_deferred("grab_focus");
|
||||
|
||||
create_dir->hide();
|
||||
|
@ -144,7 +144,7 @@ bool GDNative::initialize() {
|
||||
}
|
||||
}
|
||||
|
||||
Error err = OS::get_singleton()->open_dynamic_library(path, native_handle,true);
|
||||
Error err = OS::get_singleton()->open_dynamic_library(path, native_handle, true);
|
||||
if (err != OK) {
|
||||
return false;
|
||||
}
|
||||
|
@ -2976,10 +2976,9 @@ void GDScriptParser::_parse_extends(ClassNode *p_class) {
|
||||
|
||||
case GDScriptTokenizer::TK_IDENTIFIER: {
|
||||
|
||||
StringName identifier = tokenizer->get_token_identifier();
|
||||
p_class->extends_class.push_back(identifier);
|
||||
}
|
||||
break;
|
||||
StringName identifier = tokenizer->get_token_identifier();
|
||||
p_class->extends_class.push_back(identifier);
|
||||
} break;
|
||||
|
||||
case GDScriptTokenizer::TK_PERIOD:
|
||||
break;
|
||||
|
@ -253,9 +253,9 @@ bool GDScriptTokenizer::is_token_literal(int p_offset, bool variable_safe) const
|
||||
case TK_BUILT_IN_FUNC:
|
||||
|
||||
case TK_OP_IN:
|
||||
//case TK_OP_NOT:
|
||||
//case TK_OP_OR:
|
||||
//case TK_OP_AND:
|
||||
//case TK_OP_NOT:
|
||||
//case TK_OP_OR:
|
||||
//case TK_OP_AND:
|
||||
|
||||
case TK_PR_CLASS:
|
||||
case TK_PR_CONST:
|
||||
@ -1125,7 +1125,7 @@ void GDScriptTokenizerText::advance(int p_amount) {
|
||||
_advance();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define BYTECODE_VERSION 12
|
||||
|
||||
|
@ -106,8 +106,8 @@ void OS_Haiku::initialize(const VideoMode &p_desired, int p_video_driver, int p_
|
||||
context_gl->initialize();
|
||||
context_gl->make_current();
|
||||
|
||||
/* Port to GLES 3 rasterizer */
|
||||
//rasterizer = memnew(RasterizerGLES2);
|
||||
/* Port to GLES 3 rasterizer */
|
||||
//rasterizer = memnew(RasterizerGLES2);
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user