From 54c3adb466844d8ad81f5bdddaf532369bd00469 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 11 Jun 2019 11:50:36 +0200 Subject: [PATCH] CI: add brackets to one-line blocks - since we mix Python (indentation is important) with C++ (it isn't), having indented one-line blocks which suddenly need {} when a statment is added is confusing and error-prone. Instead, make the blocks explicit, always, in C++. --- ci/astylerc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/astylerc b/ci/astylerc index 043e81f0f..7fb769a9d 100644 --- a/ci/astylerc +++ b/ci/astylerc @@ -5,7 +5,7 @@ indent=spaces=4 # Brackets style=break -remove-brackets # Remove brackets on single-line `if` and `for` (requires astyle 2.04) +add-brackets # Spaces pad-paren-in