Skip to content

Commit aa9ec74

Browse files
committed
Include the .clang-format config in the repo
1 parent df4435e commit aa9ec74

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.clang-format

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
IndentWidth: 4
2+
ContinuationIndentWidth: 8
3+
TabWidth: 4
4+
UseTab: Always
5+
ColumnLimit: 120
6+
BreakBeforeBraces: Custom
7+
BraceWrapping:
8+
AfterClass: true
9+
AfterEnum: true
10+
AfterObjCDeclaration: true
11+
AfterControlStatement: false
12+
AfterFunction: true
13+
AfterNamespace: true
14+
AfterStruct: true
15+
AfterUnion: true
16+
BeforeCatch: false
17+
BeforeElse: false
18+
SpaceAfterCStyleCast: true
19+
SpacesInContainerLiterals: false
20+
BreakAfterJavaFieldAnnotations: true
21+
AllowShortFunctionsOnASingleLine: false
22+
KeepEmptyLinesAtTheStartOfBlocks: false
23+
AlignAfterOpenBracket: DontAlign

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
screenshots/
66
logfiles/
77
roboviz.bat
8-
.clang-format
98
*.TMP
109
*.java-*

src/rv/ui/screens/ViewerScreenBase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ private void cyclePlayers(int direction)
595595
if (agent.getTeam().getAgents().size() <= 1)
596596
return;
597597

598-
Agent nextAgent = null;
598+
Agent nextAgent;
599599
int nextID = agent.getID();
600600
do {
601601
nextID += direction;

0 commit comments

Comments
 (0)