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

@@ -35,8 +35,9 @@ func3()
return (1);
}
if (nframes < 4)
if (nframes < 4) {
error++;
}
for (i = 0; i < 4 && i < nframes; i++) {
fname = NULL;
@@ -45,8 +46,9 @@ func3()
error++;
continue;
}
if (strcmp(fname, expected_symbols[i]) != 0)
if (strcmp(fname, expected_symbols[i]) != 0) {
error++;
}
}
if (error) {
@@ -57,9 +59,9 @@ func3()
fname = NULL;
result = isc_backtrace_getsymbol(tracebuf[i], &fname,
&offset);
if (result == ISC_R_SUCCESS)
if (result == ISC_R_SUCCESS) {
printf(" [%d] %s\n", i, fname);
else {
} else {
printf(" [%d] %p getsymbol failed: %s\n", i,
tracebuf[i], isc_result_totext(result));
}