2014-04-02 16:52:06 +08:00
|
|
|
// RUN: clang-tidy -checks=google-explicit-constructor -disable-checks='' %s -- | FileCheck %s
|
2014-03-10 21:11:17 +08:00
|
|
|
|
|
|
|
#define Q(name) class name { name(int i); }
|
|
|
|
|
|
|
|
Q(A);
|
|
|
|
// CHECK: :[[@LINE-1]]:3: warning: Single-argument constructors must be explicit [google-explicit-constructor]
|
|
|
|
// CHECK: :3:30: note: expanded from macro 'Q'
|