From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 30161445320 for ; Tue, 14 Jul 2020 01:17:44 +0300 (MSK) References: <1594199230-26036-1-git-send-email-alyapunov@tarantool.org> <1594199230-26036-2-git-send-email-alyapunov@tarantool.org> <0e5801d6595f$b935e310$2ba1a930$@tarantool.org> From: Vladislav Shpilevoy Message-ID: Date: Tue, 14 Jul 2020 00:17:42 +0200 MIME-Version: 1.0 In-Reply-To: <0e5801d6595f$b935e310$2ba1a930$@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH 1/2] alter: use good c++ style List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Timur Safin , 'Aleksandr Lyapunov' , tarantool-patches@dev.tarantool.org > : @@ -1475,7 +1471,7 @@ CreateIndex::prepare(struct alter_space *alter) > : } > : > : void > : -CreateIndex::commit(struct alter_space *alter, int64_t signature) > : +CreateIndex::commit(struct alter_space *alter, int64_t signature) > : noexcept > : { > : (void) alter; > > The same comment is applicable here - we could simply omit argument name Argument name omission reduces code readability. We have already had that discussion in Lua because of luacheck requiring to drop some arguments. But it does not make the code better really. > : - ++schema_version; > : + (void) alter; > : + ++schema_version; > > But here we could ask _very important question_ (:)) do we use spaces > or tabs (like in C) for indenting C++ sources? Looks like Tabs are not yet > used in this file, thus no need to enforce the different style. Alter.cc uses tabs only. Except this place probably.