[Lldb-commits] [lldb] 38389f3 - [lldb][Test] Add CPlusPlusNameParser unit-test: C-array function arguments
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Sun Oct 23 23:46:02 PDT 2022
Author: Michael Buch
Date: 2022-10-24T07:45:37+01:00
New Revision: 38389f3109e8c862debdec769026f12cadc85e7b
URL: https://github.com/llvm/llvm-project/commit/38389f3109e8c862debdec769026f12cadc85e7b
DIFF: https://github.com/llvm/llvm-project/commit/38389f3109e8c862debdec769026f12cadc85e7b.diff
LOG: [lldb][Test] Add CPlusPlusNameParser unit-test: C-array function arguments
Tests that `CPlusPlusLanguage::MethodName` can parse demangled
names that contain references to C-arrays.
Example taken from libcxx API in the wild.
Added:
Modified:
lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp b/lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp
index b5608fb737bef..795c0fad153c0 100644
--- a/lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp
+++ b/lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp
@@ -52,6 +52,13 @@ TEST(CPlusPlusLanguage, MethodNameParsing) {
{"llvm::Optional<llvm::MCFixupKind>::operator*() const &",
"llvm::Optional<llvm::MCFixupKind>", "operator*", "()", "const &",
"llvm::Optional<llvm::MCFixupKind>::operator*"},
+ {"auto std::__1::ranges::__begin::__fn::operator()[abi:v160000]<char "
+ "const, 18ul>(char const (&) [18ul]) const",
+ "std::__1::ranges::__begin::__fn",
+ "operator()[abi:v160000]<char const, 18ul>", "(char const (&) [18ul])",
+ "const",
+ "std::__1::ranges::__begin::__fn::operator()[abi:v160000]<char const, "
+ "18ul>"},
// Internal classes
{"operator<<(Cls, Cls)::Subclass::function()",
"operator<<(Cls, Cls)::Subclass", "function", "()", "",
More information about the lldb-commits
mailing list