Skip to content

Commit f4676e8

Browse files
gastald88awulkiew
authored andcommitted
add handling of types decorated with module name
1 parent 4c1320b commit f4676e8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

solution/GraphicalDebugging/Util.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ public static string CppRemoveCVRef(string type)
143143
type = type.Remove(i - 1);
144144
}
145145
}
146+
if (type.Contains("!"))
147+
{
148+
//remove bracket-less module declaration sometimes appearing in the variable type (ends with "!" symbol)
149+
int i = type.LastIndexOf("!");
150+
if (i > 0) // including space
151+
{
152+
type = type.Remove(0, i + 1);
153+
}
154+
}
146155
if (type.StartsWith("const "))
147156
type = type.Remove(0, 6);
148157
if (type.StartsWith("volatile "))

0 commit comments

Comments
 (0)