Merge branch 'each-style-tweak' into 'master'

adjust clang-format options to get closer to ISC style

See merge request isc-projects/bind9!3061

(cherry picked from commit d3b49b6675)

0255a974 revise .clang-format and add a C formatting script in util
e851ed0b apply the modified style
This commit is contained in:
Ondřej Surý
2020-02-14 05:35:17 +00:00
parent c646c20e79
commit cdef20bb66
672 changed files with 36044 additions and 42228 deletions

View File

@@ -18,12 +18,11 @@
#include <isc/symtab.h>
#include <isc/util.h>
isc_mem_t * mctx;
isc_mem_t *mctx;
isc_symtab_t *st;
static void
undefine_action(char *key, unsigned int type, isc_symvalue_t value, void *arg)
{
undefine_action(char *key, unsigned int type, isc_symvalue_t value, void *arg) {
UNUSED(arg);
INSIST(type == 1);
@@ -32,16 +31,15 @@ undefine_action(char *key, unsigned int type, isc_symvalue_t value, void *arg)
}
int
main(int argc, char *argv[])
{
char s[1000], *cp, *key;
size_t len;
isc_result_t result;
isc_symvalue_t value;
int trace = 0;
int c;
main(int argc, char *argv[]) {
char s[1000], *cp, *key;
size_t len;
isc_result_t result;
isc_symvalue_t value;
int trace = 0;
int c;
isc_symexists_t exists_policy = isc_symexists_reject;
bool case_sensitive = false;
bool case_sensitive = false;
while ((c = isc_commandline_parse(argc, argv, "tarc")) != -1) {
switch (c) {