Skip to content

Commit 2562cdb

Browse files
ChristianTackeGSIdennisklein
authored andcommitted
clang-format: Acknowledge enum style
Nearly all enums have their content items on individual lines and the opening brace on its own line too. The current clang-format settings (especially for short enums) did not match this. Update them to be in line with the current usage. Reformat the one case that did not match the new rules.
1 parent db98bfd commit 2562cdb

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.clang-format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ BasedOnStyle: Mozilla
44

55
AllowAllParametersOfDeclarationOnNextLine: false
66
AllowShortBlocksOnASingleLine: Empty
7+
AllowShortEnumsOnASingleLine: false
78
AllowShortFunctionsOnASingleLine: Inline
89
AllowShortIfStatementsOnASingleLine: Never
910
AllowShortLambdasOnASingleLine: All
@@ -18,6 +19,7 @@ BreakBeforeBinaryOperators: NonAssignment
1819
BreakBeforeBraces: Custom
1920
BraceWrapping:
2021
AfterClass: true
22+
AfterEnum: true
2123
AfterFunction: true
2224
AfterStruct: true
2325
SplitEmptyFunction: false

fairroot/base/sim/FairMCApplication.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ class TRefArray;
4747
class TTask;
4848
class TVirtualMC;
4949

50-
enum class FairMCApplicationState { kUnknownState, kConstructGeometry, kInitGeometry };
50+
enum class FairMCApplicationState
51+
{
52+
kUnknownState,
53+
kConstructGeometry,
54+
kInitGeometry
55+
};
5156

5257
/**
5358
* The Main Application ( Interface to MonteCarlo application )

0 commit comments

Comments
 (0)