// Special case for the std::move function.
// TODO: Make this more specific. (Deferred)
- if (FunDecl->getNameAsString() == "move") {
+ if (FunDecl->getQualifiedNameAsString() == "std::move" &&
+ Call->getNumArgs() == 1) {
forwardInfo(Call->getArg(0), Call);
return;
}
} // end namespace InitializerAssertionFailTest
+
+namespace std {
+ void move();
+ template<class T>
+ void move(T&&);
+}
+
+namespace PR18260 {
+ class X {
+ public:
+ void move();
+ } x;
+
+ void test() {
+ x.move();
+ std::move();
+ std::move(x);
+ }
+} // end namespace PR18260