Skip to content

Commit 0a4b095

Browse files
committed
Added clang format & minor changes 🎉
1 parent 4dc0e1e commit 0a4b095

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

.clang-format

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# ================================
2+
# Language and Base Style Settings
3+
# ================================
4+
Language: Cpp
5+
BasedOnStyle: LLVM
6+
7+
# ================================
8+
# Indentation and Tabs
9+
# ================================
10+
IndentWidth: 2 # Indent size in spaces
11+
TabWidth: 2 # Width of tab character
12+
UseTab: Never # Use spaces instead of tabs
13+
14+
# ================================
15+
# Line Length and Wrapping
16+
# ================================
17+
ColumnLimit: 150 # Maximum allowed line length
18+
19+
# ================================
20+
# Brace Wrapping Style
21+
# ================================
22+
BreakBeforeBraces: Attach # Put opening braces on the same line
23+
24+
# ================================
25+
# Short Statements Handling
26+
# ================================
27+
AllowShortIfStatementsOnASingleLine: true
28+
AllowShortFunctionsOnASingleLine: Inline
29+
AllowShortLoopsOnASingleLine: true
30+
AllowShortCaseLabelsOnASingleLine: true
31+
32+
# ================================
33+
# Comment Formatting
34+
# ================================
35+
SpacesBeforeTrailingComments: 1
36+
AlignTrailingComments: true
37+
BreakBeforeComments: true
38+
ReflowComments: false # Avoid reformatting comment text
39+
40+
# ================================
41+
# Spacing Rules
42+
# ================================
43+
SpaceBeforeParens: ControlStatements # Space before parens in if, for, while, etc.
44+
45+
# ================================
46+
# Alignment and Sorting
47+
# ================================
48+
AlignConsecutiveAssignments: false
49+
AlignConsecutiveDeclarations: false
50+
SortIncludes: false # Disable automatic sorting of includes
51+
52+
# ================================
53+
# Function and Constructor Formatting
54+
# ================================
55+
AllowAllConstructorInitializersOnNextLine: false
56+
BinPackArguments: false # Do not pack multiple function arguments on the same line
57+
BinPackParameters: false # Do not pack multiple function parameters on the same line

examples/stealWindowsWifiPasswords/stealWindowsWifiPasswords.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @author AntonioBerna
1111
* @date 2025
12-
* @copyright GPL-3.0 License
12+
* @copyright GPL-3.0 License
1313
*/
1414

1515
#include "RubberDucky.h"

0 commit comments

Comments
 (0)