Code-style consistency improvement:

Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files.
make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type.
This commit contains no other changes aside from adding and applying clang-format-all.sh
This commit is contained in:
erwincoumans
2018-09-23 14:17:31 -07:00
parent b73b05e9fb
commit ab8f16961e
1773 changed files with 1081087 additions and 474249 deletions

View File

@@ -13,7 +13,7 @@
static Gwen::UnicodeString gs_ClipboardEmulator;
void Gwen::Platform::SetCursor( unsigned char iCursor )
void Gwen::Platform::SetCursor(unsigned char iCursor)
{
// No platform independent way to do this
}
@@ -23,7 +23,7 @@ Gwen::UnicodeString Gwen::Platform::GetClipboardText()
return gs_ClipboardEmulator;
}
bool Gwen::Platform::SetClipboardText( const Gwen::UnicodeString& str )
bool Gwen::Platform::SetClipboardText(const Gwen::UnicodeString& str)
{
gs_ClipboardEmulator = str;
return true;
@@ -31,11 +31,11 @@ bool Gwen::Platform::SetClipboardText( const Gwen::UnicodeString& str )
float Gwen::Platform::GetTimeInSeconds()
{
float fSeconds = (float) clock() / (float)CLOCKS_PER_SEC;
float fSeconds = (float)clock() / (float)CLOCKS_PER_SEC;
return fSeconds;
}
bool Gwen::Platform::FileOpen( const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Event::Handler::FunctionStr fnCallback )
bool Gwen::Platform::FileOpen(const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Event::Handler::FunctionStr fnCallback)
{
// No platform independent way to do this.
// Ideally you would open a system dialog here
@@ -43,7 +43,7 @@ bool Gwen::Platform::FileOpen( const String& Name, const String& StartPath, cons
return false;
}
bool Gwen::Platform::FileSave( const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Gwen::Event::Handler::FunctionStr fnCallback )
bool Gwen::Platform::FileSave(const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Gwen::Event::Handler::FunctionStr fnCallback)
{
// No platform independent way to do this.
// Ideally you would open a system dialog here
@@ -51,4 +51,4 @@ bool Gwen::Platform::FileSave( const String& Name, const String& StartPath, cons
return false;
}
#endif // ndef WIN32
#endif // ndef WIN32