mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35: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:
@@ -69,6 +69,7 @@ IncludeCategories:
|
|||||||
- Regex: '.*'
|
- Regex: '.*'
|
||||||
Priority: 0
|
Priority: 0
|
||||||
IndentExternBlock: NoIndent
|
IndentExternBlock: NoIndent
|
||||||
|
InsertBraces: true
|
||||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
MaxEmptyLinesToKeep: 1
|
MaxEmptyLinesToKeep: 1
|
||||||
PenaltyBreakAssignment: 30
|
PenaltyBreakAssignment: 30
|
||||||
|
@@ -69,6 +69,7 @@ IncludeCategories:
|
|||||||
- Regex: '.*'
|
- Regex: '.*'
|
||||||
Priority: 0
|
Priority: 0
|
||||||
IndentExternBlock: NoIndent
|
IndentExternBlock: NoIndent
|
||||||
|
InsertBraces: true
|
||||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
MaxEmptyLinesToKeep: 1
|
MaxEmptyLinesToKeep: 1
|
||||||
PenaltyBreakAssignment: 30
|
PenaltyBreakAssignment: 30
|
||||||
|
@@ -752,7 +752,9 @@ Exit:
|
|||||||
if (decoder->_total_overhead >= 100 * 1024 &&
|
if (decoder->_total_overhead >= 100 * 1024 &&
|
||||||
decoder->_total_read - decoder->_total_overhead <
|
decoder->_total_read - decoder->_total_overhead <
|
||||||
decoder->_total_read / 4)
|
decoder->_total_read / 4)
|
||||||
|
{
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user