Skip to content

Commit c2cbfe5

Browse files
committed
Fix access to cppClass.FullName in debug that could fail (#106)
1 parent 2eaee79 commit c2cbfe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CppAst/CppModelBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private CppContainerContext GetOrCreateDeclarationContainer(CXCursor cursor, voi
220220
break;
221221
default:
222222
{
223-
Debug.WriteLine($"[Warning]template argument in class:{cppClass.FullName} with type: {arg.kind} do not handle right now!");
223+
RootCompilation.Diagnostics.Warning($"Unhandled template argument with type {arg.kind}: {cursor.Kind}/{CXUtil.GetCursorSpelling(cursor)}", GetSourceLocation(cursor.Location));
224224
cppClass.TemplateSpecializedArguments.Add(new CppTemplateArgument(tempParams[(int)i], arg.ToString()));
225225
}
226226
break;

0 commit comments

Comments
 (0)