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

@@ -18,10 +18,10 @@
#include <stddef.h>
#if defined(WIN32) || defined(WIN64)
#include <malloc.h>
#endif
#endif /* if defined(WIN32) || defined(WIN64) */
#include "entropy_private.h"
#include "isc/hash.h" // IWYU pragma: keep
#include "isc/hash.h" /* IWYU pragma: keep */
#include "isc/likely.h"
#include "isc/once.h"
#include "isc/random.h"
@@ -44,9 +44,9 @@ isc_hash_initialize(void)
* Set a constant key to help in problem reproduction should
* fuzzing find a crash or a hang.
*/
#else
#else /* if FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
isc_entropy_get(key, sizeof(key));
#endif
#endif /* if FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
memmove(isc_hash_key, key, sizeof(isc_hash_key));
hash_initialized = true;
}