bolt/deps/llvm-18.1.8/clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-delete-macros.cpp

10 lines
345 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %check_clang_tidy %s modernize-use-equals-delete %t -- \
// RUN: -config="{CheckOptions: {modernize-use-equals-delete.IgnoreMacros: false}}"
#define MACRO(type) void operator=(type const &)
class C {
private:
MACRO(C);
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use '= delete' to prohibit calling of a special member function
};