Mercurial > public > mercurial-scm > hg
diff mercurial/cext/charencode.h @ 36058:81199632fa42
charencode: adjust clang-format enable/disable comments
We're pretty close to being able to let clang-format manage most of
these files.
Differential Revision: https://phab.mercurial-scm.org/D2180
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 12 Feb 2018 10:36:59 -0500 |
parents | f4433f2713d0 |
children |
line wrap: on
line diff
--- a/mercurial/cext/charencode.h Mon Feb 12 10:31:17 2018 -0500 +++ b/mercurial/cext/charencode.h Mon Feb 12 10:36:59 2018 -0500 @@ -25,6 +25,7 @@ PyObject *make_file_foldmap(PyObject *self, PyObject *args); PyObject *jsonescapeu8fast(PyObject *self, PyObject *args); +/* clang-format off */ static const int8_t hextable[256] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -43,6 +44,7 @@ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }; +/* clang-format on */ static inline int hexdigit(const char *p, Py_ssize_t off) {