| // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: single-argument constructors must be marked explicit |
| // NOLINTNEXTLINE(for-some-other-check) |
| // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: single-argument constructors must be marked explicit |
| // NOLINTNEXTLINE(not-closed-bracket-is-treated-as-skip-all |
| // NOLINTNEXTLINE(google-explicit-constructor) |
| // NOLINTNEXTLINE(some-check, google-explicit-constructor) |
| // NOLINTNEXTLINE without-brackets-skip-all, another-check |
| // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: single-argument constructors must be marked explicit |
| // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: single-argument constructors must be marked explicit |
| #define MACRO(X) class X { X(int i); }; |
| // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: single-argument constructors must be marked explicit |
| #define MACRO_NOARG class H { H(int i); }; |
| // CHECK-MESSAGES: Suppressed 8 warnings (8 NOLINT) |
| // RUN: %check_clang_tidy %s google-explicit-constructor %t -- |