Lines Matching full:explicit
2 // RUN: %check_clang_tidy %s google-explicit-constructor,clang-diagnostic-unused-variable,clang-analyzer-core.UndefinedBinaryOperatorResult,modernize-avoid-c-arrays,cppcoreguidelines-avoid-c-arrays,cppcoreguidelines-pro-type-member-init %t -- -extra-arg=-Wunused-variable -- -I%S/Inputs/nolint
13 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: single-argument constructors must be marked explicit
18 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: single-argument constructors must be marked explicit
21 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
27 class C4 { C4(int i); }; // NOLINT(google-explicit-constructor)
29 class C5 { C5(int i); }; // NOLINT(some-check, google-explicit-constructor)
35 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
40 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
45 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
52 class C12 { C12(int i); }; // NOLINT(some-other-check) NOLINT(google-explicit-constructor)
53 class C13 { C13(int i); }; // NOLINT(google-explicit-constructor) NOLINT(some-other-check)
54 class C14 { C14(int i); }; // NOLINTNEXTLINE(some-other-check) NOLINT(google-explicit-constructor)
56 // NOLINTNEXTLINE(google-explicit-constructor) NOLINT(some-other-check)
61 class C17 { C17(int i); }; // NOLINT(google-explicit-constructor): suppress check because <reason>
66 // CHECK-MESSAGES: :[[@LINE-2]]:13: warning: single-argument constructors must be marked explicit
70 // CHECK-MESSAGES: :[[@LINE-1]]:21: warning: single-argument constructors must be marked explicit
73 class C20 { C20(int i); }; // NOLINT( google-explicit-constructor )
74 class C21 { C21(int i); }; // NOLINT( google-explicit-constructor , some-other-check )
75 class C22 { C22(int i); }; // NOLINT(google-explicit- constructor)
76 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: single-argument constructors must be marked explicit
90 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: single-argument constructors must be marked explicit
103 X(int i); /* NOLINT(google-explicit-constructor) */ \
120 class D2 { D2(int x); }; // NOLINT(*explicit-constructor)
121 class D3 { D3(int x); }; // NOLINT(*explicit*)
122 class D4 { D4(int x); }; // NOLINT(-explicit-constructor)
123 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit