[lldb][unittests] Add more test cases to CPlusPlusNameParser unit-tests

Add test cases for the possible function qualifiers that the
`CPlusPlusNameParser` supports.

Differential Revision: https://reviews.llvm.org/D131332
This commit is contained in:
Michael Buch 2022-08-04 16:22:47 +01:00
parent 0aaa74f7e6
commit af4cdfe136
1 changed files with 4 additions and 1 deletions

View File

@ -108,7 +108,10 @@ TEST(CPlusPlusLanguage, MethodNameParsing) {
"llvm", "isUInt<10u>", "(unsigned long)", "", "llvm::isUInt<10u>"},
{"f<A<operator<(X,Y)::Subclass>, sizeof(B)<sizeof(C)>()", "",
"f<A<operator<(X,Y)::Subclass>, sizeof(B)<sizeof(C)>", "()", "",
"f<A<operator<(X,Y)::Subclass>, sizeof(B)<sizeof(C)>"}};
"f<A<operator<(X,Y)::Subclass>, sizeof(B)<sizeof(C)>"},
{"llvm::Optional<llvm::MCFixupKind>::operator*() const volatile &&",
"llvm::Optional<llvm::MCFixupKind>", "operator*", "()", "const volatile &&",
"llvm::Optional<llvm::MCFixupKind>::operator*"}};
for (const auto &test : test_cases) {
CPlusPlusLanguage::MethodName method(ConstString(test.input));