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

Gabor Horvath via cfe-commits cfe-commits at lists.llvm.org
Wed May 4 05:17:55 PDT 2016


Author: xazax
Date: Wed May  4 07:17:55 2016
New Revision: 268494

URL: http://llvm.org/viewvc/llvm-project?rev=268494&view=rev
Log:
[clang-tidy] Remove STL dependency from a test.

Modified:
    clang-tools-extra/trunk/test/clang-tidy/misc-unconventional-assign-operator.cpp

Modified: clang-tools-extra/trunk/test/clang-tidy/misc-unconventional-assign-operator.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/misc-unconventional-assign-operator.cpp?rev=268494&r1=268493&r2=268494&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/misc-unconventional-assign-operator.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/misc-unconventional-assign-operator.cpp Wed May  4 07:17:55 2016
@@ -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&);




More information about the cfe-commits mailing list