| // RUN: %check_clang_tidy %s bugprone-undelegated-constructor %t |
| // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: did you intend to call a delegated constructor? A temporary object is created here instead [bugprone-undelegated-constructor] |
| // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: did you intend to call a delegated constructor? |
| // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: did you intend to call a delegated constructor? |
| // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: did you intend to call a delegated constructor? |
| Ctor::Ctor(int i) : Ctor(i, 1) {} // properly delegated. |
| // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: did you intend to call a delegated constructor? |
| // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: did you intend to call a delegated constructor? |
| // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: did you intend to call a delegated constructor? |
| struct Derived : public Base { |
| // CHECK-MESSAGES: :[[@LINE-1]]:15: warning: did you intend to call a delegated constructor? |
| struct TDerived : public Base { |