]> granicus.if.org Git - clang/commit
ASTMatchers: Replace some copies of the bound nodes tree builder with moves.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 29 Aug 2014 11:22:47 +0000 (11:22 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 29 Aug 2014 11:22:47 +0000 (11:22 +0000)
commit10a6347d4b69284dccbb036dbd00ebb2c8d54448
treec1598ade89517438eba7a45c44267c0e3f198167
parent220fdf42b70047aaffdc1f7bebc0792c0bd0c363
ASTMatchers: Replace some copies of the bound nodes tree builder with moves.

But don't move if all we do is clearing the thing. The move method is too large
to be inlined and performs a ton of unnecessary checking when the RHS is empty.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216723 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersInternal.h
lib/ASTMatchers/ASTMatchersInternal.cpp