Adjust .editorconfig
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 20 Jan 2022 14:27:40 +0000 (09:27 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 28 Jan 2022 16:22:26 +0000 (11:22 -0500)
 - 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 <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7097
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
.editorconfig

index 1817f65d553e587c5f117d7361c72bff493b046d..9461f5ba77c4432693913c11e8d82535a7b477e9 100644 (file)
@@ -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
This page took 0.024334 seconds and 4 git commands to generate.