r/cpp • u/germandiago • Oct 25 '26
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
Show parent comment
2
u/johannes1971 Oct 25 '26
Tangential, but is Sonar actually in the same class as the others? I'm asking because we have it at work, and I only ever see complaints about line- and function length, nothing else. I very much doubt that that is because I write perfect C++; instead I was under the impression that it _only_ checks for simplistic structural (non-)issues that the QA people care so much about.
Coming back to your comment, I would have no problem with annotations if the compiler did the annotating. I have no idea if that's a possibility though.