mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Enable clang-tidy bugprone-assert-side-effect
Official docs: Finds assert() with side effect. The condition of assert() is evaluated only in debug builds so a condition with side effect can cause different behavior in debug / release builds.
This commit is contained in:
parent
9c51657821
commit
7d3913f350
@ -5,7 +5,6 @@ Checks: '*,
|
|||||||
|
|
||||||
-android-*,
|
-android-*,
|
||||||
|
|
||||||
-bugprone-assert-side-effect,
|
|
||||||
-bugprone-branch-clone,
|
-bugprone-branch-clone,
|
||||||
-bugprone-dynamic-static-initializers,
|
-bugprone-dynamic-static-initializers,
|
||||||
-bugprone-easily-swappable-parameters,
|
-bugprone-easily-swappable-parameters,
|
||||||
|
@ -161,7 +161,7 @@ namespace DB
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
auto & unit = processing_units[current_unit_number];
|
auto & unit = processing_units[current_unit_number];
|
||||||
assert(unit.status = READY_TO_FORMAT);
|
assert(unit.status == READY_TO_FORMAT);
|
||||||
|
|
||||||
/// We want to preallocate memory buffer (increase capacity)
|
/// We want to preallocate memory buffer (increase capacity)
|
||||||
/// and put the pointer at the beginning of the buffer
|
/// and put the pointer at the beginning of the buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user