xref: /llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/macros.cpp (revision 885c559369fe3d6323898c17787bd0454065fc34)
1 // RUN: clang-tidy -checks='-*,google-explicit-constructor' %s -- | FileCheck %s
2 
3 #define Q(name) class name { name(int i); }
4 
5 Q(A);
6 // CHECK: :[[@LINE-1]]:3: warning: single-argument constructors must be marked explicit
7 // CHECK: :3:30: note: expanded from macro 'Q'
8