Mercurial > public > mercurial-scm > hg
diff mercurial/cext/parsers.c @ 34861:6ece4a85c350
cext: add /* header */ comment to all PyVarObject_HEAD_INIT() calls
This gives clang-format the right notion about formatting these struct
initializers, therefore allowing us to automatically format several
additional files.
# skip-blame because this is just a content-free comment addition
Differential Revision: https://phab.mercurial-scm.org/D1169
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 16 Oct 2017 14:49:35 -0400 |
parents | 7ed0750c71a1 |
children | d92dc725223b |
line wrap: on
line diff
--- a/mercurial/cext/parsers.c Tue Apr 21 16:02:23 2015 -0400 +++ b/mercurial/cext/parsers.c Mon Oct 16 14:49:35 2017 -0400 @@ -195,7 +195,7 @@ }; PyTypeObject dirstateTupleType = { - PyVarObject_HEAD_INIT(NULL, 0) + PyVarObject_HEAD_INIT(NULL, 0) /* header */ "dirstate_tuple", /* tp_name */ sizeof(dirstateTupleObject),/* tp_basicsize */ 0, /* tp_itemsize */