Skip to content

Instantly share code, notes, and snippets.

@Novvan
Created March 16, 2022 15:32
Show Gist options
  • Save Novvan/faef58063ebfbdef461fccbbac02d66f to your computer and use it in GitHub Desktop.
Save Novvan/faef58063ebfbdef461fccbbac02d66f to your computer and use it in GitHub Desktop.
Clang format for UE guidelines
StatementMacros:
[
"UPROPERTY",
"UFUNCTION",
"UCLASS",
"USTRUCT",
"UENUM",
"UINTERFACE",
"GENERATED_BODY",
]
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignEscapedNewlines: Left
AlignOperands: DontAlign
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: Empty
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortLambdasOnASingleLine: All
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: true
IndentBraces: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
BreakInheritanceList: AfterColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma
BreakStringLiterals: false
ColumnLimit: 0
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: false
EmptyLineBeforeAccessModifier: LogicalBlock
IndentCaseBlocks: false
IndentCaseLabels: true
IndentPPDirectives: BeforeHash
IndentWidth: 4
NamespaceIndentation: All
PointerAlignment: Left
SortIncludes: false
SpaceBeforeCaseColon: false
TabWidth: 4
UseTab: Always
@Novvan
Copy link
Author

Novvan commented Mar 16, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment