1 .. title:: clang-tidy - hicpp-undelegated-constructor
3 :http-equiv=refresh: 5;URL=../bugprone/undelegated-constructor.html
5 hicpp-undelegated-constructor
6 =============================
8 This check is an alias for :doc:`bugprone-undelegated-constructor <../bugprone/undelegated-constructor>`.
9 Partially implements `rule 12.4.5 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/special-member-functions>`_
10 to find misplaced constructor calls inside a constructor.
19 // All Ctor() calls result in a temporary object
20 Ctor(); // did you intend to call a delegated constructor?
21 Ctor(0); // did you intend to call a delegated constructor?
22 Ctor(1, 2); // did you intend to call a delegated constructor?