[Lldb-commits] [PATCH] D44055: [lldb] Fix "requires global constructor" warning in g_range_specifiers
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 2 16:42:43 PST 2018
labath added inline comments.
================
Comment at: source/Breakpoint/BreakpointID.cpp:49
llvm::ArrayRef<llvm::StringRef> BreakpointID::GetRangeSpecifiers() {
+ static llvm::StringRef g_range_specifiers[] = {"-", "to", "To", "TO"};
return llvm::makeArrayRef(g_range_specifiers);
----------------
You can probably make this `static constexpr llvm::StringLiteral` and avoid constructors altogether..
https://reviews.llvm.org/D44055
More information about the lldb-commits
mailing list