From abf991d1f0b32a1a0e391b2c3e0fd1464d31f079 Mon Sep 17 00:00:00 2001 From: Saksham Goyal Date: Wed, 15 Oct 2025 09:39:25 -0400 Subject: [PATCH 1/2] Formatting with .clang-format Fixes https://github.com/raysan5/raylib/pull/5252#issuecomment-3403917757 --- .clang-format | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000000..fa817aa2946a --- /dev/null +++ b/.clang-format @@ -0,0 +1,17 @@ +BasedOnStyle: Microsoft +AlignConsecutiveMacros: AcrossEmptyLinesAndComments +AlignEscapedNewlines: Left +AlignTrailingComments: true +AllowShortBlocksOnASingleLine: Always +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: AllIfsAndElse +AlwaysBreakAfterReturnType: None +ColumnLimit: 9999 +IndentWidth: 4 +PointerAlignment: Right +SpaceInEmptyParentheses: false +SpacesInCStyleCastParentheses: false +TabWidth: 4 +UseTab: Never +IndentPPDirectives: BeforeHash From d198a60b6fe385e86c618dde794f606fff1eca7b Mon Sep 17 00:00:00 2001 From: Saksham Goyal Date: Thu, 16 Oct 2025 12:44:42 -0400 Subject: [PATCH 2/2] Update .clang-format --- .clang-format | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index fa817aa2946a..6782cbef2e38 100644 --- a/.clang-format +++ b/.clang-format @@ -7,7 +7,7 @@ AllowShortCaseLabelsOnASingleLine: true AllowShortFunctionsOnASingleLine: All AllowShortIfStatementsOnASingleLine: AllIfsAndElse AlwaysBreakAfterReturnType: None -ColumnLimit: 9999 +ColumnLimit: 320 IndentWidth: 4 PointerAlignment: Right SpaceInEmptyParentheses: false @@ -15,3 +15,14 @@ SpacesInCStyleCastParentheses: false TabWidth: 4 UseTab: Never IndentPPDirectives: BeforeHash +AlignConsecutiveAssignments: Consecutive +BraceWrapping: + AfterEnum: false +BreakFunctionDefinitionParameters: false +Cpp11BracedListStyle: false +IndentCaseLabels: false +MaxEmptyLinesToKeep: 2 +# ReflowComments: true +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpacesBeforeTrailingComments: 1