r197428 - Fix PR18260 - Make std::move handling in -Wconsumed only trigger on std::move

Dmitri Gribenko gribozavr at gmail.com
Mon Dec 16 14:20:10 PST 2013


On Mon, Dec 16, 2013 at 2:07 PM, Richard Trieu <rtrieu at google.com> wrote:
> Is there a more canonical way to detect that the function is std::move
> instead of another move function?  This would fail to recognize
> std::__1::move.

Sema::getStdNamespace() could be probably useful in this.  Should it
be safe to assume that if the function is std::move if it is named
'move', and it comes from any namespace under ::std?

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list