From aad94db77c6676f7b9757553faadb806e25e395e Mon Sep 17 00:00:00 2001 From: Rebekah Rowe Date: Tue, 13 Feb 2024 10:53:28 -0500 Subject: [PATCH] Better Clang Format This new format aligns better with whats in place for this currently. My IDE wants to auto sort it, mind as well but it needs a clang-format that matches this. Was having issues for me with the old one. I used the libpdw one since it works already for me and appears to replace it nicely. --- .clang-format | 45 ++++++--------------------------------------- 1 file changed, 6 insertions(+), 39 deletions(-) diff --git a/.clang-format b/.clang-format index 6c1bd895e..3aac01400 100644 --- a/.clang-format +++ b/.clang-format @@ -1,39 +1,6 @@ -# Not the exact style guide but enough for basic clang-tidy fix-its -Language: Cpp -BasedOnStyle: LLVM - -AlignAfterOpenBracket: AlwaysBreak -BreakConstructorInitializers: AfterColon -ConstructorInitializerAllOnOneLineOrOnePerLine: true -PointerAlignment: Middle -SortIncludes: false -SpacesBeforeTrailingComments: 2 -UseTab: Always -MaxEmptyLinesToKeep: 5 - -TabWidth: 4 -ConstructorInitializerIndentWidth: 4 -ContinuationIndentWidth: 4 -IndentWidth: 4 -IndentCaseLabels: true - -BreakBeforeBraces: Custom -BraceWrapping: - AfterClass: true - AfterControlStatement: true - AfterEnum: true - AfterExternBlock: true - AfterFunction: true - AfterNamespace: true - AfterStruct: true - AfterUnion: true - BeforeCatch: true - BeforeElse: true - IndentBraces: false - SplitEmptyFunction: true - SplitEmptyRecord: true - -# Always include globals first -IncludeCategories: - - Regex: 'Globals.h' - Priority: -1 +BasedOnStyle: WebKit +BreakBeforeBraces: Attach +CompactNamespaces: true +FixNamespaceComments: true +NamespaceIndentation: None +SortIncludes: Never