From e3f111ec3cd7453c4338e284e68b54033811b416 Mon Sep 17 00:00:00 2001 From: ouczbs Date: Tue, 18 Jun 2024 22:58:24 +0800 Subject: [PATCH] cppast bugfix --- src/CppAst.md | 7 +++++++ src/CppAst/CppElement.cs | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/CppAst.md b/src/CppAst.md index 7989026..eb1a939 100644 --- a/src/CppAst.md +++ b/src/CppAst.md @@ -45,3 +45,10 @@ return new CppArrayType(elementType, (int)type.ArraySize); return new CppUnexposedType(CXUtil.GetTypeSpelling(type)) { SizeOf = (int)type.SizeOf }; ``` +# CppElement + +```c# +throw new NotImplementedException("Can not be here, not support type here!"); +//throw new NotImplementedException("Can not be here, not support type here!"); +``` + diff --git a/src/CppAst/CppElement.cs b/src/CppAst/CppElement.cs index 3ea2cca..db8a9ed 100644 --- a/src/CppAst/CppElement.cs +++ b/src/CppAst/CppElement.cs @@ -58,7 +58,8 @@ namespace CppAst } else { - throw new NotImplementedException("Can not be here, not support type here!"); + //throw new NotImplementedException("Can not be here, not support type here!"); + break; } }