Kodgen
Kodgen copied to clipboard
Throw an error if there is an undeclared type or a template.
This PR is related to this Refureku PR.
This PR adds the function findStandardTypesErrors
in FileParser
. This function looks for libclang errors that occurred during translation unit parsing and that might cause incorrect type information when using reflection. For example: you are using std::vector
as a field but you don't include <vector>
(this will cause this field's type to be int
).
With this PR when such error occurs the generator will fail and will notify the user about his error.