[Lldb-commits] [lldb] [lldb] Support MS style `struct`/`class` in C++ name parser (PR #196525)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 3 06:53:32 PDT 2026


================
@@ -700,6 +700,20 @@ CPlusPlusNameParser::ParseFullNameImpl() {
         continue_parsing = false;
       }
       break;
+    case tok::kw_class:
+    case tok::kw_struct: // Microsoft: class Foo::Bar
----------------
Nerixyz wrote:

We have the `MSVCUndecoratedNameParser`, but that's only used for global names and function names without a return type. 

`CPlusPlusNameParser` supports much more names. The only constructs unique to MS I can think of are the `class`/`struct` prefixes and text segments starting with `` ` `` and ending with `'` (e.g. `` `anonymous namespace'::foo() ``).

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


More information about the lldb-commits mailing list