1.. title:: clang-tidy - bugprone-assert-side-effect 2 3bugprone-assert-side-effect 4=========================== 5 6Finds ``assert()`` with side effect. 7 8The condition of ``assert()`` is evaluated only in debug builds so a 9condition with side effect can cause different behavior in debug / release 10builds. 11 12Options 13------- 14 15.. option:: AssertMacros 16 17 A comma-separated list of the names of assert macros to be checked. 18 19.. option:: CheckFunctionCalls 20 21 Whether to treat non-const member and non-member functions as they produce 22 side effects. Disabled by default because it can increase the number of false 23 positive warnings. 24