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 Header
4extern "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

source code of clang-tools-extra/test/clang-tidy/checkers/modernize/use-using-ignore-extern-c.cpp