[libcxx-commits] [libcxx] [libc++] Add [[gnu::nodebug]] on type traits (PR #128502)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Mar 13 08:08:17 PDT 2025
================
@@ -191,6 +191,7 @@ Library-internal type aliases should be annotated with ``_LIBCPP_NODEBUG``
Libc++ has lots of internal type aliases. Accumulated, these can result in significant amounts of debug information that
users generally don't care about, since users don't try to debug standard library facilities in most cases. For that
reason, all library-internal type aliases that aren't function-local should be annotated with ``_LIBCPP_NODEBUG`` to
-prevent compilers from generating said debug information.
+prevent compilers from generating said debug information. Aliases inside type traits (i.e. alises named ``type``) should
----------------
ldionne wrote:
```suggestion
prevent compilers from generating said debug information. Aliases inside type traits (i.e. aliases named ``type``) should
```
https://github.com/llvm/llvm-project/pull/128502
More information about the libcxx-commits
mailing list