Disable clang-format for objective-C bits in GHOST.

Pre-8 versions of clang-format do not handle objective-C very well,
leading to unwanted changes when re-running the edits.
This commit is contained in:
Bastien Montagne 2019-04-17 10:56:11 +02:00
parent 8afb13019d
commit 1cb9612d73
2 changed files with 7 additions and 0 deletions

View File

@ -354,6 +354,7 @@ extern "C" int GHOST_HACK_getFirstFile(char buf[FIRSTFILEBUFLG])
}
}
/* clang-format off */
#pragma mark Cocoa objects
/**
@ -497,6 +498,8 @@ extern "C" int GHOST_HACK_getFirstFile(char buf[FIRSTFILEBUFLG])
#pragma mark initialization/finalization
/* clang-format on */
GHOST_SystemCocoa::GHOST_SystemCocoa()
{
int mib[2];

View File

@ -32,6 +32,8 @@
#include <sys/sysctl.h>
/* clang-format off */
#pragma mark Cocoa window delegate object
@interface CocoaWindowDelegate : NSObject <NSWindowDelegate>
@ -516,6 +518,8 @@
#pragma mark initialization / finalization
/* clang-format on */
GHOST_WindowCocoa::GHOST_WindowCocoa(GHOST_SystemCocoa *systemCocoa,
const STR_String &title,
GHOST_TInt32 left,