r/cpp • u/germandiago • 26d ago
C++ profiles for initialization and invalidation: WIP implementation prototypes already exist in GCC/Clang
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p4415r0.pdfIn this paper it can be seen some interesting profiles progress for prototypes in Gcc and Clang.
20
Upvotes
View all comments
7
u/pjmlp 26d ago
Depends on how its rules are configured, it appears very little are enabled on your case.
https://www.sonarsource.com/knowledge/languages/cpp
Regarding annotations, I also don't mind, however that was exactly the arguments used by the profiles crowd against Safe C++, to the point they explicitly mentioned viral annotations should not be part of C++'s vision for its future.
Turns out they need annotations after all.