Skip to content

Commit

Permalink
Fix access to cppClass.FullName in debug that could fail (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Aug 20, 2024
1 parent 2eaee79 commit c2cbfe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CppAst/CppModelBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private CppContainerContext GetOrCreateDeclarationContainer(CXCursor cursor, voi
break;
default:
{
Debug.WriteLine($"[Warning]template argument in class:{cppClass.FullName} with type: {arg.kind} do not handle right now!");
RootCompilation.Diagnostics.Warning($"Unhandled template argument with type {arg.kind}: {cursor.Kind}/{CXUtil.GetCursorSpelling(cursor)}", GetSourceLocation(cursor.Location));
cppClass.TemplateSpecializedArguments.Add(new CppTemplateArgument(tempParams[(int)i], arg.ToString()));
}
break;
Expand Down

0 comments on commit c2cbfe5

Please sign in to comment.