xref: /llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-using-ignore-extern-c.cpp (revision 583a2583bb5f53b7b2cbd3d2043c0b2ac286464f)
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
4 extern "C" {
5 
6 typedef int NewInt;
7 }
8 
9 extern "C++" {
10 
11 typedef 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