forked from vendetta-mod/VendettaTweak
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add import sorting to clang format and reformat files
- Loading branch information
Showing
9 changed files
with
313 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,68 @@ | ||
# Base Style | ||
BasedOnStyle: LLVM | ||
Language: ObjC | ||
|
||
# Indentation | ||
IndentWidth: 4 | ||
ObjCBlockIndentWidth: 4 | ||
UseTab: Never | ||
ColumnLimit: 100 | ||
AccessModifierOffset: -4 | ||
IndentCaseLabels: true | ||
NamespaceIndentation: Inner | ||
|
||
# Alignment | ||
AlignConsecutiveAssignments: Consecutive | ||
AlignConsecutiveDeclarations: Consecutive | ||
AlignConsecutiveMacros: Consecutive | ||
AlignTrailingComments: true | ||
AlignOperands: true | ||
AlignAfterOpenBracket: Align | ||
|
||
# Objective-C specific | ||
ObjCSpaceAfterProperty: true | ||
ObjCSpaceBeforeProtocolList: true | ||
ObjCBreakBeforeNestedBlockParam: true | ||
ObjCBinPackProtocolList: Never | ||
|
||
# Breaking and wrapping | ||
AllowShortBlocksOnASingleLine: Empty | ||
AllowShortFunctionsOnASingleLine: Empty | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortEnumsOnASingleLine: false | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLambdasOnASingleLine: Empty | ||
AllowShortLoopsOnASingleLine: false | ||
AlignConsecutiveAssignments: Consecutive | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterObjCDeclaration: true | ||
AfterClass: true | ||
AfterControlStatement: true | ||
AfterEnum: true | ||
AfterFunction: true | ||
BeforeCatch: true | ||
BeforeElse: true | ||
IndentBraces: false | ||
|
||
# Spaces | ||
SpaceAfterCStyleCast: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceInEmptyParentheses: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInContainerLiterals: true | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
|
||
# Import ordering | ||
SortIncludes: true | ||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
# System headers with brackets | ||
- Regex: "^<" | ||
Priority: 1 | ||
# Main header (matching filename) | ||
- Regex: '^"[^/]*\.h"$' | ||
Priority: 2 | ||
# Local/Project headers | ||
- Regex: '^"' | ||
Priority: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#define LOG_PREFIX @"[Bunny]" | ||
#define LOG_PREFIX @"[Bunny]" | ||
#define BunnyLog(fmt, ...) NSLog((LOG_PREFIX @" " fmt), ##__VA_ARGS__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
@end | ||
|
||
extern id gBridge; | ||
void showSettingsSheet(void); | ||
void showSettingsSheet(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.