Skip to content

Commit

Permalink
Add another warning instead of using Debug.WriteLine
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Aug 20, 2024
1 parent c2cbfe5 commit a78f00f
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 @@ -75,7 +75,7 @@ private CppType TryToCreateTemplateParameters(CXCursor cursor, void* data)
case CXCursorKind.CXCursor_TemplateTemplateParameter:
{
//ToDo: add template template parameter support here~~
Debug.WriteLine("[Warning] template template parameter maybe not handle right here!");
RootCompilation.Diagnostics.Warning($"Unhandled template parameter: {cursor.Kind}/{CXUtil.GetCursorSpelling(cursor)}", GetSourceLocation(cursor.Location));
var tmplparam = new CppTemplateParameterType(CXUtil.GetCursorSpelling(cursor));
return tmplparam;
}
Expand Down

0 comments on commit a78f00f

Please sign in to comment.