Kodgen icon indicating copy to clipboard operation
Kodgen copied to clipboard

Throw an error if there is an undeclared type or a template.

Open Flone-dnb opened this issue 1 year ago • 10 comments

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.

Flone-dnb avatar Aug 29 '22 18:08 Flone-dnb