From af4cdfe136056426eaf63a113067791dad3820c3 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Thu, 4 Aug 2022 16:22:47 +0100 Subject: [PATCH] [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 --- lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp b/lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp index bf887fb..8ec4b54 100644 --- a/lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp +++ b/lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp @@ -108,7 +108,10 @@ TEST(CPlusPlusLanguage, MethodNameParsing) { "llvm", "isUInt<10u>", "(unsigned long)", "", "llvm::isUInt<10u>"}, {"f, sizeof(B)()", "", "f, sizeof(B)", "()", "", - "f, sizeof(B)"}}; + "f, sizeof(B)"}, + {"llvm::Optional::operator*() const volatile &&", + "llvm::Optional", "operator*", "()", "const volatile &&", + "llvm::Optional::operator*"}}; for (const auto &test : test_cases) { CPlusPlusLanguage::MethodName method(ConstString(test.input)); -- 2.7.4