[Lldb-commits] [lldb] [lldb] Fix CxxMethodName Parser on return type (PR #169652)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 26 10:58:21 PST 2025


================
@@ -481,18 +481,22 @@ bool CPlusPlusLanguage::CxxMethodName::TrySimplifiedParse() {
       m_basename = full.substr(basename_begin, basename_end - basename_begin);
     }
 
-    if (IsTrivialBasename(m_basename)) {
+    // if the context has a white space it may have a return type.
----------------
da-viper wrote:

Yes I did handle `int main()` correctly, I can remove that test case. 

https://github.com/llvm/llvm-project/pull/169652


More information about the lldb-commits mailing list