bolt/deps/llvm-18.1.8/clang-tools-extra/test/clang-tidy/checkers/modernize/use-using-ignore-extern-c.cpp
2025-02-14 19:21:04 +01:00

14 lines
385 B
C++

// RUN: %check_clang_tidy %s modernize-use-using %t -- -config="{CheckOptions: {modernize-use-using.IgnoreExternC: true}}" -- -I %S/Input/use-using/
// Some Header
extern "C" {
typedef int NewInt;
}
extern "C++" {
typedef int InExternCPP;
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' [modernize-use-using]
// CHECK-FIXES: using InExternCPP = int;
}