From 3a7cf87821176bee781d514affdaa71fe7ac529f Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Thu, 28 Apr 2022 16:51:49 +0900 Subject: [PATCH] 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 --- .editorconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.editorconfig b/.editorconfig index aba3f42cf3..be697ae970 100644 --- a/.editorconfig +++ b/.editorconfig @@ -21,6 +21,11 @@ indent_size = 8 indent_style = tab indent_size = 8 +# C++ +[*.{cpp,hpp}] +indent_style = tab +indent_size = 8 + # Linker Script [*.ld] indent_style = tab