summaryrefslogtreecommitdiff
path: root/libartbase/base/file_utils.cc
diff options
context:
space:
mode:
author Yabin Cui <yabinc@google.com> 2023-06-21 13:43:03 -0700
committer Yabin Cui <yabinc@google.com> 2023-06-22 17:20:36 +0000
commit6d30df970f1ad209a87708fa03e8f746102fa42d (patch)
tree5feb062735061f976aae772468bb98d8bfd5cf9e /libartbase/base/file_utils.cc
parent3fda3c86e182815349871932a2925f288cf26898 (diff)
Fix bugprone-use-after-move clang-tidy warning
After clang update, clang-tidy bugprone-use-after-move starts to check constructor initialization list. It gives below false-positive warning: art/compiler/utils/riscv64/assembler_riscv64.h:70:48: error: 'src' used after it was moved [bugprone-use-after-move,-warnings-as-errors] : Label(std::move(src)), prev_branch_id_(src.prev_branch_id_) {} ^ art/compiler/utils/riscv64/assembler_riscv64.h:70:9: note: move occurred here : Label(std::move(src)), prev_branch_id_(src.prev_branch_id_) {} ^ Bug: 286421006 Test: build with clang-r498229 Change-Id: I437e92095b60b3ef4baaabb4aeb667fe4375a471
Diffstat (limited to 'libartbase/base/file_utils.cc')
0 files changed, 0 insertions, 0 deletions