|
From: | Antonio Diaz Diaz |
Subject: | Re: [Bug-ddrescue] [PATCH 5/7] [clang-tidy] Don't use else after a return statement |
Date: | Tue, 15 Oct 2019 21:58:43 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
Rosen Penev wrote:
Found with readability-else-after-return
I probably won't apply any of these. I'm somewhat annoyed by the "code of conduct" that some compilers try to impose on developers. In particular I find the folowing much more readable with the else than without. Moreover, g++ could complain about "misleading indentation" in the second case.
- { if( domain < sb ) break; else continue; } + { if( domain < sb ) break; continue; }
[Prev in Thread] | Current Thread | [Next in Thread] |