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&); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits