Use clang-tidy to add curly braces around one-line statements
The command used to reformat the files in this commit was: ./util/run-clang-tidy \ -clang-tidy-binary clang-tidy-11 -clang-apply-replacements-binary clang-apply-replacements-11 \ -checks=-*,readability-braces-around-statements \ -j 9 \ -fix \ -format \ -style=file \ -quiet clang-format -i --style=format $(git ls-files '*.c' '*.h') uncrustify -c .uncrustify.cfg --replace --no-backup $(git ls-files '*.c' '*.h') clang-format -i --style=format $(git ls-files '*.c' '*.h')
This commit is contained in:
@@ -48,8 +48,9 @@ isccc_base64_encode(isccc_region_t *source, int wordlength,
|
||||
(unsigned int)(target->rend - target->rstart));
|
||||
|
||||
result = isc_base64_totext(&sr, wordlength, wordbreak, &tb);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
return (result);
|
||||
}
|
||||
source->rstart = source->rend;
|
||||
target->rstart = isc_buffer_used(&tb);
|
||||
return (ISC_R_SUCCESS);
|
||||
@@ -64,8 +65,9 @@ isccc_base64_decode(const char *cstr, isccc_region_t *target)
|
||||
isc_buffer_init(&b, target->rstart,
|
||||
(unsigned int)(target->rend - target->rstart));
|
||||
result = isc_base64_decodestring(cstr, &b);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
return (result);
|
||||
}
|
||||
target->rstart = isc_buffer_used(&b);
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user