Skip to content
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

Optimize code #77

Closed
wants to merge 50 commits into from
Closed

Optimize code #77

wants to merge 50 commits into from

Conversation

Yiannis128
Copy link
Collaborator

No description provided.

* Added source code check to ensure source code is not empty string.
* Added get_source_code function
* Added get_type_decl, get_variable_decl, get_enum_decl, and,
get_all_decl

ast_decl.py:

* Updated Declaration with __eq__, __str__, and __hash__ and all
child classes.
* Added undelying cursor object.
* Added FunctionDeclaration, and TypeDeclaration subclasses.
Section says that libc is required for libclang to parse header files
of libc correctly. Examples: assert.h, stdio.h
The split is because optimize code does not rename typedefs currently,
so one file has the typedefs and the other doesn't. This is for the sake
of testing in the future.
* Added handling of TYPE_REF cursors in the constructor of
TypeDeclaration
@Yiannis128
Copy link
Collaborator Author

As a prototype, this is a good implementation that needs to be revised in future sub-versions.

@Yiannis128 Yiannis128 marked this pull request as ready for review September 5, 2023 16:36
@Yiannis128 Yiannis128 closed this Sep 5, 2023
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