Преглед на файлове

Clang-formatting *.cpp and *.h (some files excluded)

Poommetee Ketson преди 8 години
родител
ревизия
c7c65ca6ba
променени са 29 файла, в които са добавени 27 реда и са изтрити 29 реда
  1. 1 1
      drivers/gles2/rasterizer_gles2.cpp
  2. 1 1
      drivers/gles3/rasterizer_canvas_gles3.cpp
  3. 1 1
      drivers/gles3/rasterizer_gles3.cpp
  4. 1 1
      drivers/png/resource_saver_png.cpp
  5. 1 1
      drivers/rtaudio/audio_driver_rtaudio.cpp
  6. 1 1
      drivers/xaudio2/audio_driver_xaudio2.cpp
  7. 0 1
      editor/animation_editor.h
  8. 1 1
      modules/gdscript/gd_editor.cpp
  9. 1 1
      modules/gdscript/gd_script.cpp
  10. 1 1
      modules/openssl/stream_peer_openssl.h
  11. 1 1
      modules/theora/video_stream_theora.cpp
  12. 1 1
      modules/visual_script/visual_script.cpp
  13. 1 1
      modules/visual_script/visual_script_flow_control.cpp
  14. 1 1
      modules/visual_script/visual_script_func_nodes.cpp
  15. 1 1
      modules/visual_script/visual_script_nodes.cpp
  16. 1 1
      modules/webm/video_stream_webm.cpp
  17. 1 1
      platform/android/audio_driver_jandroid.cpp
  18. 1 1
      platform/android/godot_android.cpp
  19. 1 1
      platform/android/java_glue.cpp
  20. 1 1
      servers/audio/audio_driver_dummy.cpp
  21. 1 1
      servers/audio_server.cpp
  22. 1 1
      servers/physics/space_sw.cpp
  23. 1 1
      servers/physics/space_sw.h
  24. 1 1
      servers/physics_2d/physics_2d_server_sw.cpp
  25. 1 1
      servers/physics_2d/physics_2d_server_wrap_mt.h
  26. 1 1
      servers/physics_2d/space_2d_sw.h
  27. 1 1
      servers/visual/visual_server_raster.cpp
  28. 0 1
      servers/visual/visual_server_scene.h
  29. 1 1
      servers/visual/visual_server_wrap_mt.cpp

+ 1 - 1
drivers/gles2/rasterizer_gles2.cpp

@@ -31,8 +31,8 @@
 
 #include "rasterizer_gles2.h"
 #include "gl_context/context_gl.h"
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 #include "servers/visual/particle_system_sw.h"
 #include "servers/visual/shader_language.h"
 #include <stdio.h>

+ 1 - 1
drivers/gles3/rasterizer_canvas_gles3.cpp

@@ -28,8 +28,8 @@
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 #include "rasterizer_canvas_gles3.h"
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 #include "rasterizer_scene_gles3.h"
 #include "servers/visual/visual_server_raster.h"
 #ifndef GLES_OVER_GL

+ 1 - 1
drivers/gles3/rasterizer_gles3.cpp

@@ -30,8 +30,8 @@
 #include "rasterizer_gles3.h"
 
 #include "gl_context/context_gl.h"
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 #include <string.h>
 RasterizerStorage *RasterizerGLES3::get_storage() {
 

+ 1 - 1
drivers/png/resource_saver_png.cpp

@@ -30,8 +30,8 @@
 #include "resource_saver_png.h"
 
 #include "core/image.h"
-#include "project_settings.h"
 #include "os/file_access.h"
+#include "project_settings.h"
 #include "scene/resources/texture.h"
 
 #include <png.h>

+ 1 - 1
drivers/rtaudio/audio_driver_rtaudio.cpp

@@ -29,8 +29,8 @@
 /*************************************************************************/
 #include "audio_driver_rtaudio.h"
 
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 
 #ifdef RTAUDIO_ENABLED
 

+ 1 - 1
drivers/xaudio2/audio_driver_xaudio2.cpp

@@ -29,8 +29,8 @@
 /*************************************************************************/
 #include "audio_driver_xaudio2.h"
 
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 
 const char *AudioDriverXAudio2::get_name() const {
 	return "XAudio2";

+ 0 - 1
editor/animation_editor.h

@@ -45,7 +45,6 @@
 #include "scene/animation/animation_cache.h"
 #include "scene/resources/animation.h"
 #include "scene_tree_editor.h"
-#include "scene_tree_editor.h"
 
 class AnimationKeyEdit;
 class AnimationCurveEdit;

+ 1 - 1
modules/gdscript/gd_editor.cpp

@@ -30,8 +30,8 @@
 #include "editor/editor_settings.h"
 #include "gd_compiler.h"
 #include "gd_script.h"
-#include "project_settings.h"
 #include "os/file_access.h"
+#include "project_settings.h"
 #ifdef TOOLS_ENABLED
 #include "editor/editor_file_system.h"
 #include "editor/editor_settings.h"

+ 1 - 1
modules/gdscript/gd_script.cpp

@@ -29,11 +29,11 @@
 /*************************************************************************/
 #include "gd_script.h"
 #include "gd_compiler.h"
-#include "project_settings.h"
 #include "global_constants.h"
 #include "io/file_access_encrypted.h"
 #include "os/file_access.h"
 #include "os/os.h"
+#include "project_settings.h"
 
 ///////////////////////////
 

+ 1 - 1
modules/openssl/stream_peer_openssl.h

@@ -30,9 +30,9 @@
 #ifndef STREAM_PEER_OPEN_SSL_H
 #define STREAM_PEER_OPEN_SSL_H
 
-#include "project_settings.h"
 #include "io/stream_peer_ssl.h"
 #include "os/file_access.h"
+#include "project_settings.h"
 
 #include "thirdparty/misc/curl_hostcheck.h"
 

+ 1 - 1
modules/theora/video_stream_theora.cpp

@@ -29,8 +29,8 @@
 /*************************************************************************/
 #include "video_stream_theora.h"
 
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 
 #include "thirdparty/misc/yuv2rgb.h"
 

+ 1 - 1
modules/visual_script/visual_script.cpp

@@ -29,8 +29,8 @@
 /*************************************************************************/
 #include "visual_script.h"
 
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 #include "scene/main/node.h"
 #include "visual_script_nodes.h"
 

+ 1 - 1
modules/visual_script/visual_script_flow_control.cpp

@@ -29,9 +29,9 @@
 /*************************************************************************/
 #include "visual_script_flow_control.h"
 
-#include "project_settings.h"
 #include "io/resource_loader.h"
 #include "os/keyboard.h"
+#include "project_settings.h"
 
 //////////////////////////////////////////
 ////////////////RETURN////////////////////

+ 1 - 1
modules/visual_script/visual_script_func_nodes.cpp

@@ -29,9 +29,9 @@
 /*************************************************************************/
 #include "visual_script_func_nodes.h"
 
-#include "project_settings.h"
 #include "io/resource_loader.h"
 #include "os/os.h"
+#include "project_settings.h"
 #include "scene/main/node.h"
 #include "scene/main/scene_tree.h"
 #include "visual_script_nodes.h"

+ 1 - 1
modules/visual_script/visual_script_nodes.cpp

@@ -29,10 +29,10 @@
 /*************************************************************************/
 #include "visual_script_nodes.h"
 
-#include "project_settings.h"
 #include "global_constants.h"
 #include "os/input.h"
 #include "os/os.h"
+#include "project_settings.h"
 #include "scene/main/node.h"
 #include "scene/main/scene_tree.h"
 

+ 1 - 1
modules/webm/video_stream_webm.cpp

@@ -34,8 +34,8 @@
 
 #include "mkvparser/mkvparser.h"
 
-#include "project_settings.h"
 #include "os/file_access.h"
+#include "project_settings.h"
 
 #include "thirdparty/misc/yuv2rgb.h"
 

+ 1 - 1
platform/android/audio_driver_jandroid.cpp

@@ -29,8 +29,8 @@
 /*************************************************************************/
 #include "audio_driver_jandroid.h"
 
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 #include "thread_jandroid.h"
 
 #ifndef ANDROID_NATIVE_ACTIVITY

+ 1 - 1
platform/android/godot_android.cpp

@@ -36,9 +36,9 @@
 #include <GLES2/gl2.h>
 
 #include "file_access_android.h"
-#include "project_settings.h"
 #include "main/main.h"
 #include "os_android.h"
+#include "project_settings.h"
 #include <android/log.h>
 #include <android/sensor.h>
 #include <android/window.h>

+ 1 - 1
platform/android/java_glue.cpp

@@ -36,11 +36,11 @@
 #include "dir_access_jandroid.h"
 #include "file_access_android.h"
 #include "file_access_jandroid.h"
-#include "project_settings.h"
 #include "java_class_wrapper.h"
 #include "main/input_default.h"
 #include "main/main.h"
 #include "os_android.h"
+#include "project_settings.h"
 #include "thread_jandroid.h"
 #include <unistd.h>
 

+ 1 - 1
servers/audio/audio_driver_dummy.cpp

@@ -29,8 +29,8 @@
 /*************************************************************************/
 #include "audio_driver_dummy.h"
 
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 
 Error AudioDriverDummy::init() {
 

+ 1 - 1
servers/audio_server.cpp

@@ -28,10 +28,10 @@
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 #include "audio_server.h"
-#include "project_settings.h"
 #include "io/resource_loader.h"
 #include "os/file_access.h"
 #include "os/os.h"
+#include "project_settings.h"
 #include "servers/audio/effects/audio_effect_compressor.h"
 #ifdef TOOLS_ENABLED
 

+ 1 - 1
servers/physics/space_sw.cpp

@@ -29,8 +29,8 @@
 /*************************************************************************/
 #include "space_sw.h"
 #include "collision_solver_sw.h"
-#include "project_settings.h"
 #include "physics_server_sw.h"
+#include "project_settings.h"
 
 _FORCE_INLINE_ static bool _match_object_type_query(CollisionObjectSW *p_object, uint32_t p_collision_layer, uint32_t p_type_mask) {
 

+ 1 - 1
servers/physics/space_sw.h

@@ -36,8 +36,8 @@
 #include "body_sw.h"
 #include "broad_phase_sw.h"
 #include "collision_object_sw.h"
-#include "project_settings.h"
 #include "hash_map.h"
+#include "project_settings.h"
 #include "typedefs.h"
 
 class PhysicsDirectSpaceStateSW : public PhysicsDirectSpaceState {

+ 1 - 1
servers/physics_2d/physics_2d_server_sw.cpp

@@ -31,8 +31,8 @@
 #include "broad_phase_2d_basic.h"
 #include "broad_phase_2d_hash_grid.h"
 #include "collision_solver_2d_sw.h"
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 #include "script_language.h"
 
 RID Physics2DServerSW::shape_create(ShapeType p_shape) {

+ 1 - 1
servers/physics_2d/physics_2d_server_wrap_mt.h

@@ -31,8 +31,8 @@
 #define PHYSICS2DSERVERWRAPMT_H
 
 #include "command_queue_mt.h"
-#include "project_settings.h"
 #include "os/thread.h"
+#include "project_settings.h"
 #include "servers/physics_2d_server.h"
 
 #ifdef DEBUG_SYNC

+ 1 - 1
servers/physics_2d/space_2d_sw.h

@@ -36,8 +36,8 @@
 #include "body_pair_2d_sw.h"
 #include "broad_phase_2d_sw.h"
 #include "collision_object_2d_sw.h"
-#include "project_settings.h"
 #include "hash_map.h"
+#include "project_settings.h"
 #include "typedefs.h"
 
 class Physics2DDirectSpaceStateSW : public Physics2DDirectSpaceState {

+ 1 - 1
servers/visual/visual_server_raster.cpp

@@ -29,9 +29,9 @@
 /*************************************************************************/
 #include "visual_server_raster.h"
 #include "default_mouse_cursor.xpm"
-#include "project_settings.h"
 #include "io/marshalls.h"
 #include "os/os.h"
+#include "project_settings.h"
 #include "sort.h"
 #include "visual_server_canvas.h"
 #include "visual_server_global.h"

+ 0 - 1
servers/visual/visual_server_scene.h

@@ -36,7 +36,6 @@
 #include "geometry.h"
 #include "octree.h"
 #include "os/semaphore.h"
-#include "os/semaphore.h"
 #include "os/thread.h"
 #include "self_list.h"
 

+ 1 - 1
servers/visual/visual_server_wrap_mt.cpp

@@ -27,8 +27,8 @@
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 #include "visual_server_wrap_mt.h"
-#include "project_settings.h"
 #include "os/os.h"
+#include "project_settings.h"
 
 void VisualServerWrapMT::thread_exit() {