Skip to content

Commit 3a7cf87

Browse files
stephanosionashif
authored andcommitted
editorconfig: Add C++ indentation style
This commit adds the indentation style for the C++ source and header files. Note that the C++ indentation style has been configured to match that of the C files because the C++ source files we currently have in the Zephyr repository follow the style we enforce for the C files. In the future, it may be preferable to follow the indentation style recommended by one of the common C++ style guides, such as the Google C++ Style Guide which recommends 2 spaces for indentation. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
1 parent ef9c4f7 commit 3a7cf87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ indent_size = 8
2121
indent_style = tab
2222
indent_size = 8
2323

24+
# C++
25+
[*.{cpp,hpp}]
26+
indent_style = tab
27+
indent_size = 8
28+
2429
# Linker Script
2530
[*.ld]
2631
indent_style = tab

0 commit comments

Comments
 (0)