From patchwork Tue Oct 15 13:54:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7103: dirs: tag a struct as not being formattable From: phabricator X-Patchwork-Id: 42354 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Tue, 15 Oct 2019 13:54:57 +0000 durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D7103 AFFECTED FILES mercurial/cext/dirs.c CHANGE DETAILS To: durin42, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/cext/dirs.c b/mercurial/cext/dirs.c --- a/mercurial/cext/dirs.c +++ b/mercurial/cext/dirs.c @@ -27,10 +27,12 @@ * We modify Python integers for refcounting, but those integers are * never visible to Python code. */ +/* clang-format off */ typedef struct { PyObject_HEAD PyObject *dict; } dirsObject; +/* clang-format on */ static inline Py_ssize_t _finddir(const char *path, Py_ssize_t pos) {