Closed
Description
In general we get plenty of false positives, but here the logic looks simple enough for the analyzer to be able to track it. Details follow:
Detected with CodeChecker 6.18.2
Clang version: 13.0.1
Checker name: optin.cplusplus.UninitializedObject
Checker message: 1 uninitialized field at the end of the constructor call
Attaching the issue as a screenshot from CodeChecker as it is easier to follow the logic.
The code is at: https://github.com/qt/qtbase/blob/dfb4697e4a/src/corelib/text/qstring.h#L1602-L1647