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 commit67b68e06ad)36c6105eUse coccinelle to add braces to nested single line statementd14bb713Add copy of run-clang-tidy that can fixup the filepaths056e133cUse clang-tidy to add curly braces around one-line statements
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user