Skip to content

Comments

Handle unknown types#49

Open
jordfras wants to merge 13 commits intomainfrom
work
Open

Handle unknown types#49
jordfras wants to merge 13 commits intomainfrom
work

Conversation

@jordfras
Copy link
Owner

No description provided.

Tests updated since reference and pointer types are formatted as the
source now.
…on unit

It seems the file contents is not available in libclang entites until
we have actually traversed the AST a bit. Thus we extract the source
file contents for the translation unit when accessing the first
entity.

The file contents is cached in the new class `ModelFactory` used
instead of having methods directly in `ClassToMock`.
TODO:
- should_mock() must use MethodToMock to take all extras into account.
- Tests of behavior of entity.is_virtual, is_pure_virtual and is_static etc when return type is unknown
- Tests of signature parsing
- Tests...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant