[clang-tidy] Remove STL dependency from a test.

llvm-svn: 268494
This commit is contained in:
Gabor Horvath 2016-05-04 12:17:55 +00:00
parent 8338d90ba3
commit 30e962a158
1 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,16 @@
// RUN: %check_clang_tidy %s misc-unconventional-assign-operator %t -- -- -std=c++11 -isystem %S/Inputs/Headers
#include <utility>
namespace std {
template <typename T>
struct remove_reference { typedef T type; };
template <typename T>
struct remove_reference<T &> { typedef T type; };
template <typename T>
struct remove_reference<T &&> { typedef T type; };
template <typename T>
typename remove_reference<T>::type &&move(T &&t);
}
struct Good {
Good& operator=(const Good&);