From 9fe8008636e7971b7e83e888dddae11b1244ef30 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 20 Jan 2022 09:27:40 -0500 Subject: [PATCH] Adjust .editorconfig - Move current indent_style and tab_width to the [*] section, so it applies by default to all files (.c, .h,, .l, .y, Makefile). - Add indent_size to [*] - Add handling of .hpp and .cpp file, which use indent of 4 spaces and no tabs, like .py files. Change-Id: Ifc8028eb7ba00dfcd2d3904d3301b66bdfa28d79 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/7097 Reviewed-by: Philippe Proulx --- .editorconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index 1817f65d..9461f5ba 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,11 +5,10 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true charset = utf-8 - -[*.{c,h,i}] +indent_size = 8 indent_style = tab tab_width = 8 -[*.py] +[*.{py,hpp,cpp}] indent_style = space indent_size = 4 -- 2.34.1