xref: /llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-using-ignore-extern-c.cpp (revision 583a2583bb5f53b7b2cbd3d2043c0b2ac286464f)
1*583a2583SDa-Viper // RUN: %check_clang_tidy %s modernize-use-using %t -- -config="{CheckOptions: {modernize-use-using.IgnoreExternC: true}}" -- -I %S/Input/use-using/
2*583a2583SDa-Viper 
3*583a2583SDa-Viper // Some Header
4*583a2583SDa-Viper extern "C" {
5*583a2583SDa-Viper 
6*583a2583SDa-Viper typedef int NewInt;
7*583a2583SDa-Viper }
8*583a2583SDa-Viper 
9*583a2583SDa-Viper extern "C++" {
10*583a2583SDa-Viper 
11*583a2583SDa-Viper typedef int InExternCPP;
12*583a2583SDa-Viper // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' [modernize-use-using]
13*583a2583SDa-Viper // CHECK-FIXES: using InExternCPP = int;
14*583a2583SDa-Viper }
15