-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于 parser 解析的 type 带有空格的问题 #413
Labels
enhancement
New feature or request
Comments
举个错误解析的例子,为什么会带空格 |
就是上面说的, |
可以 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在这里的代码:
Piccolo/engine/source/meta_parser/parser/language_types/field.cpp
Line 11 in 65379de
强行把空格去掉会导致带有空格的类型会反射生成失败(例如 std::vector 类型,它生成的反射文件的 type 会去掉空格,导致codegen的时候的static_cast会出现类型unsignedchar,无法解析而失败)
或许可以考虑加在这里(codegen的时候去掉空格):
Piccolo/engine/source/meta_parser/parser/generator/reflection_generator.cpp
Line 94 in 65379de
例如:
The text was updated successfully, but these errors were encountered: