summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/modernize-use-equals-delete-macros.cpp
blob: 1b5a89cca4e78812ea7a20ce7bbab04c002acdd4 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %check_clang_tidy %s modernize-use-equals-delete %t -- \
// RUN:   -config="{CheckOptions: [{key: modernize-use-equals-delete.IgnoreMacros, value: 0}]}" \
// RUN:   -- -std=c++11

#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
};
OpenPOWER on IntegriCloud