brintos

brintos / llvm-project-archived public Read only

0
0
Text · 385 B · 6a845a0 Raw
15 lines · cpp
1// RUN: %check_clang_tidy %s modernize-use-using %t -- -config="{CheckOptions: {modernize-use-using.IgnoreExternC: true}}" -- -I %S/Input/use-using/2 3// Some Header4extern "C" {5 6typedef int NewInt;7}8 9extern "C++" {10 11typedef int InExternCPP;12// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' [modernize-use-using]13// CHECK-FIXES: using InExternCPP = int;14}15