]> granicus.if.org Git - clang/commit
For -Wconsumed, walk the namespaces to find if the top most namespace is "std"
authorRichard Trieu <rtrieu@google.com>
Tue, 17 Dec 2013 00:40:40 +0000 (00:40 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 17 Dec 2013 00:40:40 +0000 (00:40 +0000)
commitea8113b35a22a5675abd0e06b357b7e2edcca1fa
tree51edfc186e5898a4205aa8457803ad9c5e9a1b38
parent8a95424dac9bd9cba95168f74885fb731bed7787
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197445 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/Consumed.cpp
test/SemaCXX/warn-consumed-analysis.cpp