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

Keep bug open when clicking on bug steps #30

Closed
csordasmarton opened this issue Nov 25, 2021 · 0 comments · Fixed by #60
Closed

Keep bug open when clicking on bug steps #30

csordasmarton opened this issue Nov 25, 2021 · 0 comments · Fixed by #60
Assignees

Comments

@csordasmarton
Copy link
Contributor

I have a main.cpp source file and a main.h header file:

#include "main.h"

int main() {
  return foo(0);
}
double foo(int param) {
  return 1 / param;
}

If I open this project and analyze it ClangSA will find a division by zero error:
image

If I click on the first bug step which refer to the main.cpp source file it will show the bug step nicely in the source code. If I click on the 3rd bug step which refers to main.h file the plugin will show me the bug step in the source code but in the tree view it will close the bug:
image

We should keep the bug open and keep the bug path selection (3rd bug step has to be selected) in this situation.

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 a pull request may close this issue.

2 participants