[Lldb-commits] [PATCH] D96817: Fix deep copying for OptionValue classes
David Blaikie via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 16 16:54:30 PST 2021
dblaikie added inline comments.
================
Comment at: lldb/unittests/Interpreter/TestOptionValue.cpp:173
+ // Trigger the callback second time.
+ file_list_copy_ptr->SetValueFromString(llvm::StringRef("0 another/path"),
+ eVarSetOperationReplace);
----------------
Generally it shouldn't be necessary to write `llvm::StringRef(...)` around a string literal - StringRef is implicitly convertible from a string literal.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96817/new/
https://reviews.llvm.org/D96817
More information about the lldb-commits
mailing list