Skip to content

Commit a78f00f

Browse files
committed
Add another warning instead of using Debug.WriteLine
1 parent c2cbfe5 commit a78f00f

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
@@ -75,7 +75,7 @@ private CppType TryToCreateTemplateParameters(CXCursor cursor, void* data)
7575
case CXCursorKind.CXCursor_TemplateTemplateParameter:
7676
{
7777
//ToDo: add template template parameter support here~~
78-
Debug.WriteLine("[Warning] template template parameter maybe not handle right here!");
78+
RootCompilation.Diagnostics.Warning($"Unhandled template parameter: {cursor.Kind}/{CXUtil.GetCursorSpelling(cursor)}", GetSourceLocation(cursor.Location));
7979
var tmplparam = new CppTemplateParameterType(CXUtil.GetCursorSpelling(cursor));
8080
return tmplparam;
8181
}

0 commit comments

Comments
 (0)