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

@@ -19,13 +19,12 @@
const char *expected_symbols[] = { "func3", "func2", "func1", "main" };
static int
func3()
{
void * tracebuf[16];
int i, nframes;
int error = 0;
const char * fname;
isc_result_t result;
func3() {
void *tracebuf[16];
int i, nframes;
int error = 0;
const char *fname;
isc_result_t result;
unsigned long offset;
result = isc_backtrace_gettrace(tracebuf, 16, &nframes);
@@ -72,19 +71,16 @@ func3()
}
static int
func2()
{
func2() {
return (func3());
}
static int
func1()
{
func1() {
return (func2());
}
int
main()
{
main() {
return (func1());
}