Skip to content

Commit 953d9f8

Browse files
authored
Merge pull request #109 from antonmasnyi/wchar-to-wchar_t
Fix: Replace wchar with wchar_t for standardization and compatibility
2 parents 8c5212e + 4632ef0 commit 953d9f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/CppAst.Tests/TestTypeAliases.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public void TestSimple()
1212
1313
using Type_bool = bool;
1414
15-
using Type_wchar = wchar_t ;
15+
using Type_wchar_t = wchar_t ;
1616
1717
using Type_char = char;
1818
using Type_unsigned_char = unsigned char;

src/CppAst.Tests/TestTypedefs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public void TestSimple()
1212
1313
typedef bool Type_bool;
1414
15-
typedef wchar_t Type_wchar;
15+
typedef wchar_t Type_wchar_t;
1616
1717
typedef char Type_char;
1818
typedef unsigned char Type_unsigned_char;

src/CppAst/CppPrimitiveType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public override string ToString()
171171
case CppPrimitiveKind.Void:
172172
return "void";
173173
case CppPrimitiveKind.WChar:
174-
return "wchar";
174+
return "wchar_t";
175175
case CppPrimitiveKind.Char:
176176
return "char";
177177
case CppPrimitiveKind.Short:

0 commit comments

Comments
 (0)