2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 01:59:26 +00:00

Add and apply InsertBraces statement

> Insert braces after control statements (if, else, for, do, and while)
> in C++ unless the control statements are inside macro definitions or
> the braces would enclose preprocessor directives.
This commit is contained in:
Ondřej Surý 2025-08-19 07:11:16 +02:00
parent 018ff7b294
commit d051e1e8f8
No known key found for this signature in database
GPG Key ID: 2820F37E873DEA41
3 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,7 @@ IncludeCategories:
- Regex: '.*'
Priority: 0
IndentExternBlock: NoIndent
InsertBraces: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
PenaltyBreakAssignment: 30

View File

@ -69,6 +69,7 @@ IncludeCategories:
- Regex: '.*'
Priority: 0
IndentExternBlock: NoIndent
InsertBraces: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
PenaltyBreakAssignment: 30

View File

@ -752,7 +752,9 @@ Exit:
if (decoder->_total_overhead >= 100 * 1024 &&
decoder->_total_read - decoder->_total_overhead <
decoder->_total_read / 4)
{
ret = -1;
}
}
return ret;
}