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

@@ -21,7 +21,7 @@
#ifdef HAVE_REGEX_H
#include <regex.h>
#endif
#endif /* ifdef HAVE_REGEX_H */
#define UNIT_TESTING
#include <cmocka.h>
@@ -45,7 +45,8 @@ regex_validate(void **state)
struct {
const char *expression;
int expect;
int exception; /* regcomp accepts but is disallowed. */
int exception; /* regcomp accepts but is
* disallowed. */
} tests[] = {
{ "", -1, 0 },
{ "*", -1, 0 },
@@ -2322,7 +2323,7 @@ regex_validate(void **state)
regfree(&preg);
}
}
#endif
#endif /* ifdef HAVE_REGEX_H */
/*
* Check if we get the expected response.
@@ -2369,4 +2370,4 @@ main(void)
return (0);
}
#endif
#endif /* if HAVE_CMOCKA */