Merge pull request #17071 from maribu/CODING_CONVENTIONS_C++.md

CODING_CONVENTIONS_C++.md: Change space after negation
This commit is contained in:
Francisco 2021-11-02 09:39:13 +01:00 committed by GitHub
commit 49cecdbc44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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