Patchwork [1,of,2] cext: reformat with clang-format 6.0

login
register
mail settings
Submitter Yuya Nishihara
Date July 14, 2018, 2:02 a.m.
Message ID <42bce1d7778658cae95e.1531533773@mimosa>
Download mbox | patch
Permalink /patch/32839/
State Accepted
Headers show

Comments

Yuya Nishihara - July 14, 2018, 2:02 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1531533010 -32400
#      Sat Jul 14 10:50:10 2018 +0900
# Node ID 42bce1d7778658cae95ec0a2aa29ff72d503c000
# Parent  2a227782e75426a3e4408273a9a4eebe79dfdcea
cext: reformat with clang-format 6.0

It appears some changes in clang-format affect our code. I didn't dig into
that deeper since the new output looks better.

Patch

diff --git a/mercurial/cext/pathencode.c b/mercurial/cext/pathencode.c
--- a/mercurial/cext/pathencode.c
+++ b/mercurial/cext/pathencode.c
@@ -474,7 +474,10 @@  static Py_ssize_t basicencode(char *dest
 	static const uint32_t twobytes[8] = {0, 0, 0x87fffffe};
 
 	static const uint32_t onebyte[8] = {
-	    1, 0x2bff3bfa, 0x68000001, 0x2fffffff,
+	    1,
+	    0x2bff3bfa,
+	    0x68000001,
+	    0x2fffffff,
 	};
 
 	Py_ssize_t destlen = 0;