forked from OSchip/llvm-project
[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:
parent
0aaa74f7e6
commit
af4cdfe136
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue