diff --git a/Help/dev/source.rst b/Help/dev/source.rst index 1144ee289b..abb26a73c5 100644 --- a/Help/dev/source.rst +++ b/Help/dev/source.rst @@ -50,6 +50,9 @@ follow (which are not enforced by other tooling): * Lambdas: ``auto f = []() {...};`` +* Use ``CM_UNREACHABLE`` for logically unreachable code paths instead of + ad-hoc ``assert(false ...)`` statements or comment-only placeholders. + C++ Subset Permitted ==================== @@ -235,6 +238,9 @@ Available features are: * ````: ``cm::is_scoped_enum`` + * ````: + ``cm::unreachable`` + Additionally, some useful non-standard extensions to the C++ standard library are available in headers under the directory ``cmext/`` in namespace ``cm``. These are: