blob: cf0cc2d130d7f177ef0f6a49efceec7a08c14928 [file] [log] [blame]
.. title:: clang-tidy - misc-static-assert
misc-static-assert
==================
`cert-dcl03-c` redirects here as an alias for this check.
Replaces ``assert()`` with ``static_assert()`` if the condition is evaluatable
at compile time.
The condition of ``static_assert()`` is evaluated at compile time which is
safer and more efficient.