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 `bugprone-undelegated-constructor <bugprone-undelegated-constructor.html>`_.
9 Partially implements `rule 12.4.5 <http://www.codingstandard.com/rule/12-4-5-use-delegating-constructors-to-reduce-code-duplication/>`_
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?