forked from OSchip/llvm-project
1cea7ab4ba
The StringView::substr now accepts a substring starting position and its length instead of previous non-standard `from` & `to` positions. All uses of two argument StringView::substr are in MicrosoftDemangler and have 0 as a starting position, so no changes are necessary. This also fixes a bug where attempting to extract a suffix with substr (a `to` position equal to size) would return a substring without the last character. Fixing the issue should not introduce observable changes in the demangler, since as currently used, a second argument to StringView::substr is either: 1) a result of a successful call to StringView::find and so necessarily smaller than size., or 2) in the case of Demangler::demangleCharLiteral potentially equal to size, but with demangler expecting more data to follow later on and failing either way. Reviewed By: #libc_abi, ldionne, erik.pilkington Differential Revision: https://reviews.llvm.org/D100246 |
||
---|---|---|
.. | ||
demangle | ||
include | ||
CMakeLists.txt | ||
abort_message.cpp | ||
abort_message.h | ||
cxa_aux_runtime.cpp | ||
cxa_default_handlers.cpp | ||
cxa_demangle.cpp | ||
cxa_exception.cpp | ||
cxa_exception.h | ||
cxa_exception_storage.cpp | ||
cxa_guard.cpp | ||
cxa_guard_impl.h | ||
cxa_handlers.cpp | ||
cxa_handlers.h | ||
cxa_noexception.cpp | ||
cxa_personality.cpp | ||
cxa_thread_atexit.cpp | ||
cxa_vector.cpp | ||
cxa_virtual.cpp | ||
fallback_malloc.cpp | ||
fallback_malloc.h | ||
private_typeinfo.cpp | ||
private_typeinfo.h | ||
stdlib_exception.cpp | ||
stdlib_new_delete.cpp | ||
stdlib_stdexcept.cpp | ||
stdlib_typeinfo.cpp |