brintos

brintos / llvm-project-archived public Read only

0
0
Text · 522 B · 535e251 Raw
13 lines · cpp
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 constructor12// CHECK-MESSAGES: :[[@LINE-6]]:13: note:13