1 // RUN: %check_clang_tidy %s modernize-use-equals-default %t -- \ 2 // RUN: -config="{CheckOptions: [{key: modernize-use-equals-default.IgnoreMacros, value: false}]}" 3 4 #define STRUCT_WITH_DEFAULT(_base, _type) \ 5 struct _type { \ 6 _type() {} \ 7 _base value; \ 8 }; 9 10 STRUCT_WITH_DEFAULT(unsigned char, InMacro) 11 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use '= default' to define a trivial default constructor 12 // CHECK-MESSAGES: :[[@LINE-6]]:13: note: 13