diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2014-04-08 18:57:41 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-04-08 18:57:41 +0000 |
commit | a6c48804fcdec6eb7f12bdb2cca8694a73ef6fae (patch) | |
tree | e22263595b01806ce2892d884029b0698eec74a0 /clang/test | |
parent | c4859f5d784f9f9bc3f8681584e9eeba2d044eb3 (diff) | |
download | llvm-a6c48804fcdec6eb7f12bdb2cca8694a73ef6fae.zip llvm-a6c48804fcdec6eb7f12bdb2cca8694a73ef6fae.tar.gz llvm-a6c48804fcdec6eb7f12bdb2cca8694a73ef6fae.tar.bz2 |
Merging r197445:
------------------------------------------------------------------------
r197445 | rtrieu | 2013-12-16 19:40:40 -0500 (Mon, 16 Dec 2013) | 4 lines
For -Wconsumed, walk the namespaces to find if the top most namespace is "std"
to determine if a move function is the std::move function. This allows functions
like std::__1::move to also be treated a the move function.
------------------------------------------------------------------------
llvm-svn: 205784
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/SemaCXX/warn-consumed-analysis.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/warn-consumed-analysis.cpp b/clang/test/SemaCXX/warn-consumed-analysis.cpp index 5297981..2c372c7 100644 --- a/clang/test/SemaCXX/warn-consumed-analysis.cpp +++ b/clang/test/SemaCXX/warn-consumed-analysis.cpp @@ -798,6 +798,12 @@ namespace std { void move(); template<class T> void move(T&&); + + namespace __1 { + void move(); + template<class T> + void move(T&&); + } } namespace PR18260 { @@ -810,5 +816,7 @@ namespace PR18260 { x.move(); std::move(); std::move(x); + std::__1::move(); + std::__1::move(x); } } // end namespace PR18260 |