xref: /llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-using-ignore-extern-c.cpp (revision 9dcc66578e12ad8e72c8ae7216122a1125976ac5)
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