From 5dbf1809c6e3e905b94b8764e99491e608122261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 5 Mar 2017 16:44:50 +0100 Subject: A Whole New World (clang-format edition) I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code --- core/os/thread_dummy.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'core/os/thread_dummy.h') diff --git a/core/os/thread_dummy.h b/core/os/thread_dummy.h index 01e366e2fa..8d0ca0340d 100644 --- a/core/os/thread_dummy.h +++ b/core/os/thread_dummy.h @@ -29,13 +29,13 @@ #ifndef THREAD_DUMMY_H #define THREAD_DUMMY_H -#include "thread.h" #include "mutex.h" #include "semaphore.h" +#include "thread.h" class ThreadDummy : public Thread { - static Thread* create(ThreadCreateCallback p_callback,void * p_user,const Settings& p_settings=Settings()); + static Thread *create(ThreadCreateCallback p_callback, void *p_user, const Settings &p_settings = Settings()); public: virtual ID get_ID() const { return 0; }; @@ -45,12 +45,11 @@ public: class MutexDummy : public Mutex { - static Mutex* create(bool p_recursive); + static Mutex *create(bool p_recursive); public: - - virtual void lock() {}; - virtual void unlock() {}; + virtual void lock(){}; + virtual void unlock(){}; virtual Error try_lock() { return OK; }; static void make_default(); @@ -58,7 +57,7 @@ public: class SemaphoreDummy : public Semaphore { - static Semaphore* create(); + static Semaphore *create(); public: virtual Error wait() { return OK; }; @@ -66,7 +65,6 @@ public: virtual int get() const { return 0; }; ///< get semaphore value static void make_default(); - }; #endif -- cgit v1.2.3