From 57fc4f5f7744f9257fd9c1dba52aaba6db9399b1 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 28 Oct 2021 10:48:04 +0200 Subject: [PATCH] CODING_CONVENTIONS_C++.md: Change space after negation Adding a space after a unary operator is pretty uncommon and inconsistent with what we do in C. Let's better keep the C++ and the C code style consistent, unless we have a good reason to justify the difference. --- CODING_CONVENTIONS_C++.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/CODING_CONVENTIONS_C++.md b/CODING_CONVENTIONS_C++.md index a9c12ba18774..81eea6cce6db 100644 --- a/CODING_CONVENTIONS_C++.md +++ b/CODING_CONVENTIONS_C++.md @@ -158,15 +158,6 @@ void my_class::do_something_else() { - Keywords are always followed by a whitespace: `if (...)`, `template <...>`, `while (...)`, etc. -- Leave a whitespace after `!` to make negations easily recognizable: - - ```cpp - if (! sunny()) - stay_home(); - else - go_outside(); - ``` - - Opening braces belong to the same line: ```cpp