Use clang-tidy to add curly braces around one-line statements
The command used to reformat the files in this commit was: ./util/run-clang-tidy \ -clang-tidy-binary clang-tidy-11 -clang-apply-replacements-binary clang-apply-replacements-11 \ -checks=-*,readability-braces-around-statements \ -j 9 \ -fix \ -format \ -style=file \ -quiet clang-format -i --style=format $(git ls-files '*.c' '*.h') uncrustify -c .uncrustify.cfg --replace --no-backup $(git ls-files '*.c' '*.h') clang-format -i --style=format $(git ls-files '*.c' '*.h')
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user