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

Fixed the loading failure issue of Control Flow Graph view #951

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

homeiceberg
Copy link
Contributor

Dear committers:

Before fixing the issue:

The source code was like this:public static final String PLUGIN_ID = "org.eclipse.cdt.codan.ui.cfgview";
As shown in the following figure, when the CDT project is running, the Control Flow Graph view throws an exception.
bad

After fixing the issue:

The source code was like this:public static final String PLUGIN_ID = "org.eclipse.cdt.codan.ui.example.cfgview";
As shown in the following figure, when the CDT project is running, the Control Flow Graph view runs normally.
Well

Conduct impact analysis on code changes:

As shown in the following figure, the Plugin ID member variable is called by these three functions
1
By analyzing these three calling functions, only the image resource loading function and logging function are affected, so this code change will not affect other functions.
Image resource loading function
logging function

…Show View ->Other... ->C/C++->Control Flow Graph).
@jonahgraham
Copy link
Member

@homeiceberg Thank you for the contribution. Can you please sign the contributor agreement so that we can review and merge your improvement. Please see the contribution guide's entry on the Eclipse Contributor Agreement

@homeiceberg
Copy link
Contributor Author

@jonahgraham I have signed the Eclipse Contributor Agreement,please approve it,thank you

Copy link
Member

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed test is flaky (#194) - this change is good.

@jonahgraham jonahgraham merged commit 3269718 into eclipse-cdt:main Dec 17, 2024
3 of 4 checks passed
@jonahgraham
Copy link
Member

Thanks you @homeiceberg for the contribution.

@jonahgraham jonahgraham added this to the 12.0.0 M1 milestone Dec 17, 2024
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.

2 participants