You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
355 B
10 lines
355 B
// RUN: %check_clang_tidy %s modernize-use-equals-delete %t -- \
|
|
// RUN: -config="{CheckOptions: [{key: modernize-use-equals-delete.IgnoreMacros, value: 0}]}"
|
|
|
|
#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
|
|
};
|