I'm planning to migrate StringRef to std::string_view eventually. Since std::string_view does not have slice, this patch migrates slice(0, N) to substr(0, N). [llvm] Prefer StringRef::substr(0, N) to slice(0, N) (NFC) … 00b2846 kazutakahirata requested a review from MaskR...
(std::string_view Str) + : Data(Str.data()), Length(Str.size()) {} /// @} /// @name Iterators @@ -132,9 +138,16 @@ namespace llvm { /// @name String Operations /// @{ + /// data - Get a pointer to the start of the string (which may not be null + /// ...
在有std::string_view 可用时,是否应该避免使用 llvm::StringRef? 关注问题写回答 登录/注册STL C / C++ LLVM string 在有std::string_view 可用时,是否应该避免使用 llvm::StringRef?似乎功能上差不多,这样的情况下,编写利用 LLVM 的程序时,应该倾向 LLVM 提供的实现吗?或是倾向使用标准库的实现?显示全...
I'm planning to migrate StringRef to std::string_view eventually. Since std::string_view does not have slice, this patch migrates: slice(0, N) to substr(0, N) slice(N, StringRef::npos) to substr(N) [mlir] Prefer StringRef::substr to slice (NFC) … 66de050 kazutakahirata re...
if (Argv0.find("llvm-symbolizer") != std::string::npos) if (Argv0.contains("llvm-symbolizer")) return false; // FIXME: Subtract necessary number from StackTrace entries to turn return addresses2 changes: 1 addition & 1 deletion 2 llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc....
==c-index-test==2512295==ERROR: AddressSanitizer: heap-use-after-free on address 0xe19338c27992 at pc 0xc66be4784830 bp 0xe0e33660df00 sp 0xe0e33660d6e8 READ of size 23 at 0xe19338c27992 thread T1 #0 0xc66be478482c in printf_common(void*, char const*, std::__va_list) /hom...