diff --git a/src/CppAst.Tests/TestTypeAliases.cs b/src/CppAst.Tests/TestTypeAliases.cs index 893ae80..36d8aef 100644 --- a/src/CppAst.Tests/TestTypeAliases.cs +++ b/src/CppAst.Tests/TestTypeAliases.cs @@ -12,7 +12,7 @@ public void TestSimple() using Type_bool = bool; -using Type_wchar = wchar_t ; +using Type_wchar_t = wchar_t ; using Type_char = char; using Type_unsigned_char = unsigned char; diff --git a/src/CppAst.Tests/TestTypedefs.cs b/src/CppAst.Tests/TestTypedefs.cs index 30e54c4..37c7a9e 100644 --- a/src/CppAst.Tests/TestTypedefs.cs +++ b/src/CppAst.Tests/TestTypedefs.cs @@ -12,7 +12,7 @@ public void TestSimple() typedef bool Type_bool; -typedef wchar_t Type_wchar; +typedef wchar_t Type_wchar_t; typedef char Type_char; typedef unsigned char Type_unsigned_char; diff --git a/src/CppAst/CppPrimitiveType.cs b/src/CppAst/CppPrimitiveType.cs index 6479765..ab032c7 100644 --- a/src/CppAst/CppPrimitiveType.cs +++ b/src/CppAst/CppPrimitiveType.cs @@ -171,7 +171,7 @@ public override string ToString() case CppPrimitiveKind.Void: return "void"; case CppPrimitiveKind.WChar: - return "wchar"; + return "wchar_t"; case CppPrimitiveKind.Char: return "char"; case CppPrimitiveKind.Short: