1// RUN: %check_clang_tidy %s modernize-use-equals-default %t -- \
2// RUN: -config="{CheckOptions: {modernize-use-equals-default.IgnoreMacros: false}}"
3
4#define STRUCT_WITH_DEFAULT(_base, _type) \
5 struct _type { \
6 _type() {} \
7 _base value; \
8 };
9
10STRUCT_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

source code of clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default-macros.cpp