Skip to content

Ghidra is a software reverse engineering (SRE) framework

Merge branch 'patch'

ghidra13fadc49006db
diff --cc Ghidra/Features/GnuDemangler/src/main/java/ghidra/app/util/demangler/gnu/GnuDemanglerParser.java
index 3417362362,5e6029eff8..6b64a95ae4
--- a/Ghidra/Features/GnuDemangler/src/main/java/ghidra/app/util/demangler/gnu/GnuDemanglerParser.java
+++ b/Ghidra/Features/GnuDemangler/src/main/java/ghidra/app/util/demangler/gnu/GnuDemanglerParser.java
@@@ -235,20 -239,17 +235,17 @@@ public class GnuDemanglerParser
/*
* Sample: covariant return thunk to Foo::Bar::copy(Foo::CoolStructure*) const
- *
+ *
* Pattern: text for|to text
- *
+ *
* Parts:
- * -required text (capture group 2)
- * --note: this uses '++', a possessive quantifier, to help keep the
- * backtracking to a minimum
- * -a space
- * -'for' or 'to' (capture group 3)
- * -a space
+ * -required text (capture group 2) -+
+ * -'for' or 'to' (capture group 3) | (capture group 1)
+ * -a space -+
* -optional text (capture group 4)
- *
- * Note: capture group 1 is the combination of groups 2 and 3
- *
+ *
+ * Note: capture group 1 is the combination of groups 2 and 3 with trailing space
+ *
* Examples:
* construction vtable for
* vtable for