Merge branch '46-add-curly-braces' into 'master'

Add curly braces using uncrustify and then reformat with clang-format back

Closes #46

See merge request isc-projects/bind9!3057

(cherry picked from commit 67b68e06ad)

36c6105e Use coccinelle to add braces to nested single line statement
d14bb713 Add copy of run-clang-tidy that can fixup the filepaths
056e133c Use clang-tidy to add curly braces around one-line statements
This commit is contained in:
Ondřej Surý
2020-02-13 21:28:07 +00:00
parent 6270e602ea
commit 2e55baddd8
639 changed files with 29724 additions and 17080 deletions

View File

@@ -46,42 +46,42 @@ testpair_t testpair[] = { { EPERM, ISC_R_NOPERM },
{ ELOOP, ISC_R_INVALIDFILE },
#ifdef EOVERFLOW
{ EOVERFLOW, ISC_R_RANGE },
#endif
#endif /* ifdef EOVERFLOW */
#ifdef EAFNOSUPPORT
{ EAFNOSUPPORT, ISC_R_FAMILYNOSUPPORT },
#endif
#endif /* ifdef EAFNOSUPPORT */
#ifdef EADDRINUSE
{ EADDRINUSE, ISC_R_ADDRINUSE },
#endif
#endif /* ifdef EADDRINUSE */
{ EADDRNOTAVAIL, ISC_R_ADDRNOTAVAIL },
#ifdef ENETDOWN
{ ENETDOWN, ISC_R_NETDOWN },
#endif
#endif /* ifdef ENETDOWN */
#ifdef ENETUNREACH
{ ENETUNREACH, ISC_R_NETUNREACH },
#endif
#endif /* ifdef ENETUNREACH */
#ifdef ECONNABORTED
{ ECONNABORTED, ISC_R_CONNECTIONRESET },
#endif
#endif /* ifdef ECONNABORTED */
#ifdef ECONNRESET
{ ECONNRESET, ISC_R_CONNECTIONRESET },
#endif
#endif /* ifdef ECONNRESET */
#ifdef ENOBUFS
{ ENOBUFS, ISC_R_NORESOURCES },
#endif
#endif /* ifdef ENOBUFS */
#ifdef ENOTCONN
{ ENOTCONN, ISC_R_NOTCONNECTED },
#endif
#endif /* ifdef ENOTCONN */
#ifdef ETIMEDOUT
{ ETIMEDOUT, ISC_R_TIMEDOUT },
#endif
#endif /* ifdef ETIMEDOUT */
{ ECONNREFUSED, ISC_R_CONNREFUSED },
#ifdef EHOSTDOWN
{ EHOSTDOWN, ISC_R_HOSTDOWN },
#endif
#endif /* ifdef EHOSTDOWN */
#ifdef EHOSTUNREACH
{ EHOSTUNREACH, ISC_R_HOSTUNREACH },
#endif
#endif /* ifdef EHOSTUNREACH */
{ 0, ISC_R_UNEXPECTED } };
/* convert errno to ISC result */
@@ -121,4 +121,4 @@ main(void)
return (0);
}
#endif
#endif /* if HAVE_CMOCKA */