llvm/clang-tools-extra/docs/clang-tidy/checks/misc/static-assert.rst

.. 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 evaluable
at compile time.

The condition of ``static_assert()`` is evaluated at compile time which is
safer and more efficient.