1 // RUN: %check_clang_tidy %s modernize-use-default-member-init %t -- \ 2 // RUN: -config="{CheckOptions: [{key: modernize-use-default-member-init.IgnoreMacros, value: 0}]}" \ 3 // RUN: -- -std=c++11 4 5 #define MACRO() \ 6 struct S { \ 7 void *P; \ 8 S() : P(nullptr) {} \ 9 }; 10 11 MACRO(); 12 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use default member initializer for 'P' 13 14 struct S2 { 15 void *P; 16 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: use default member initializer for 'P' S2S217 S2() : P(nullptr) {} 18 }; 19