From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> To: Kirill Yukhin <kyukhin@tarantool.org>, tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH 1/5] clang-format: guard various declarations Date: Sun, 8 Nov 2020 16:09:08 +0100 [thread overview] Message-ID: <7d9a49cf-c8f8-6e31-bc77-fe231d30658d@tarantool.org> (raw) In-Reply-To: <9b64f1b480d15fa627882544ff2a8758f914ecc3.1604057827.git.kyukhin@tarantool.org> Hi! See 2 comments below. On 30.10.2020 12:43, Kirill Yukhin wrote: > Disable clang-formatter for: > - iproto_constants.c > - constants in vy_log.c > - key comparator definitions. > - for field_def's types compatibility > --- > src/box/errcode.h | 4 +++- > src/box/field_def.c | 2 ++ > src/box/iproto_constants.c | 4 ++++ > src/box/tuple_compare.cc | 4 ++++ > src/box/vy_log.c | 2 ++ > 5 files changed, 15 insertions(+), 1 deletion(-) > > diff --git a/src/box/errcode.h b/src/box/errcode.h > index e6957d6..244bda1 100644 > --- a/src/box/errcode.h > +++ b/src/box/errcode.h > @@ -51,7 +51,8 @@ struct errcode_record { > * Please don't forget to do it! > */ > > -#define ERROR_CODES(_) \ > +/* clang-format off */ > +#define ERROR_CODES(_) \ 1. Why did you change the second line? It is still misaligned, and this whole list of error codes does not align \ anyway. > /* 0 */_(ER_UNKNOWN, "Unknown error") \ > /* 1 */_(ER_ILLEGAL_PARAMS, "Illegal parameters, %s") \ > /* 2 */_(ER_MEMORY_ISSUE, "Failed to allocate %u bytes in %s for %s") \ > @@ -273,6 +274,7 @@ struct errcode_record { > /*218 */_(ER_TUPLE_METADATA_IS_TOO_BIG, "Can't create tuple: metadata size %u is too big") \ > /*219 */_(ER_XLOG_GAP, "%s") \ > /*220 */_(ER_TOO_EARLY_SUBSCRIBE, "Can't subscribe non-anonymous replica %s until join is done") \ > +/* clang-format on */ > diff --git a/src/box/iproto_constants.c b/src/box/iproto_constants.c > index 029d988..af3ab60 100644 > --- a/src/box/iproto_constants.c > +++ b/src/box/iproto_constants.c > @@ -30,6 +30,8 @@ > */ > #include "iproto_constants.h" > > +/* clang-format off */ > + 2. What is the rule by which you decide when need an empty line after format comment and when not? > const unsigned char iproto_key_type[IPROTO_KEY_MAX] = > { > /* {{{ header */ > @@ -226,3 +228,5 @@ const char *vy_row_index_key_strs[VY_ROW_INDEX_KEY_MAX] = { > NULL, > "row index", > }; > + > +/* clang-format on */
next prev parent reply other threads:[~2020-11-08 15:09 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-10-30 11:43 [Tarantool-patches] [PATCH 0/5] Add clang format Kirill Yukhin 2020-10-30 11:43 ` [Tarantool-patches] [PATCH 1/5] clang-format: guard various declarations Kirill Yukhin 2020-11-08 15:09 ` Vladislav Shpilevoy [this message] 2020-10-30 11:43 ` [Tarantool-patches] [PATCH 2/5] Add .clang-format for src/box/ Kirill Yukhin 2020-10-30 11:43 ` [Tarantool-patches] [PATCH 3/5] build: add clang-format rules Kirill Yukhin 2020-11-08 15:09 ` Vladislav Shpilevoy 2020-10-30 11:43 ` [Tarantool-patches] [PATCH 4/5] gitlab-ci: add code style check Kirill Yukhin 2020-10-30 11:43 ` [Tarantool-patches] [PATCH 5/5] Apply Clang formatter Kirill Yukhin 2020-10-30 13:42 ` Konstantin Osipov 2020-10-30 23:04 ` Vladislav Shpilevoy 2020-11-01 21:40 ` Konstantin Osipov 2020-11-02 7:35 ` Kirill Yukhin 2020-11-02 21:05 ` Vladislav Shpilevoy 2020-11-10 14:16 ` Kirill Yukhin 2020-11-10 20:38 ` Vladislav Shpilevoy 2020-11-11 8:23 ` Kirill Yukhin 2020-11-08 15:11 ` Vladislav Shpilevoy
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=7d9a49cf-c8f8-6e31-bc77-fe231d30658d@tarantool.org \ --to=v.shpilevoy@tarantool.org \ --cc=kyukhin@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH 1/5] clang-format: guard various declarations' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox