-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
New annotations and API functions for the decompiler #17429
Conversation
* function variable annotation added (includes local variable and function parameter)
} | ||
|
||
R_API bool r_annotation_is_reference(RCodeAnnotation *annotation) { | ||
return (annotation->type == R_CODE_ANNOTATION_TYPE_GLOBAL_VARIABLE || annotation->type == R_CODE_ANNOTATION_TYPE_CONSTANT_VARIABLE || annotation->type == R_CODE_ANNOTATION_TYPE_FUNCTION_NAME); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this LOC shorter by splitting the conditions in new lines? Had to enable line-wrap here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ITAYC0HEN Can you tell me how I can do that? When I tried it earlier, the coding style checker was telling me to not split it into multiple lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I have no idea :)
That's only a small nice-to-have, if it causes a problem then no worries, you can skip this request
I think |
@NirmalManoj yes, it's #17395. You can ignore this particular one. |
Thank you Nirmal! Fantastic work <3 |
…RAnnotatedCode (radareorg#17429)" This reverts commit b4677b4.
…RAnnotatedCode (radareorg#17429)" This reverts commit b4677b4.
…edCode (radareorg#17429) * Annotation for function name (radareorg#17204) * Annotations for Constant Variables and Global Variables for the decompiler (radareorg#17281) * Annotation For Function Variables (radareorg#17375) * function variable annotation added (includes local variable and function parameter) * API for checking if an annotation is a reference or function variable. (radareorg#17386) * Update docs in annotate code API (radareorg#17397) * Unit tests for annotated code API (radareorg#17403)
…edCode (#17429) * Annotation for function name (#17204) * Annotations for Constant Variables and Global Variables for the decompiler (#17281) * Annotation For Function Variables (#17375) * function variable annotation added (includes local variable and function parameter) * API for checking if an annotation is a reference or function variable. (#17386) * Update docs in annotate code API (#17397) * Unit tests for annotated code API (#17403)
Your checklist for this pull request
Detailed description
As part of the Improving Decompiler Widget project, many new types of annotations and new API functions have been implemented by the following PRs to the
decompiler-refactoring
branch. This PR is for merging these to the master....
Test plan
decompiler-refactoring
branch from the r2ghidra-dec and use the commandpdgj
for the JSON output. See if it's working as expected....
Closing issues
...