[Development] Disavowing the Lakos Rule for Q_ASSERT
Marc Mutz
marc.mutz at qt.io
Thu Aug 29 22:33:55 CEST 2024
On 29.08.24 17:31, Thiago Macieira wrote:
> What I'd like to change is:
> - for inline code, where the function's noexceptness is likely to be used in a
> noexcept expression elsewhere and that causes slower code to be used
How does that square with being tool-checkable? That sounds like a very
subjective and hand-waving argument that will cause haggling about every
patch that uses the rule.
> - for out-of-line code, where the precondition is unverifiable anyway (such as
> "you've passed a valid pointer")
*cough* https://codereview.qt-project.org/c/qt/qtbase/+/193707 *cough*
--
Marc Mutz <marc.mutz at qt.io> (he/his)
Principal Software Engineer
The Qt Company
Erich-Thilo-Str. 10 12489
Berlin, Germany
www.qt.io
Geschäftsführer: Mika Pälsi, Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht Charlottenburg,
HRB 144331 B
More information about the Development
mailing list