8000 fix skip for header files by gyorb · Pull Request #860 · Ericsson/codechecker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix skip for header files #860

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

Merged
merged 1 commit into from
Sep 3, 2017
Merged

fix skip for header files #860

merged 1 commit into from
Sep 3, 2017

Conversation

gyorb
Copy link
Contributor
@gyorb gyorb commented Aug 31, 2017

Skipping reports in header files included by a c/cpp
file can be done only after the analysis is done and the
plist output is generated.

With this modification if there is a skip file with headers
in it, the reports from the header will be removed from the
generated plist file.

resolves #812

@gyorb gyorb requested review from whisperity and dkrupp August 31, 2017 15:57
fids, kept_diagnostics = fids_in_path(report_data, file_ids_to_remove)
report_data['diagnostics'] = kept_diagnostics

remove_file = True
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this loop filter exactly? If we mark a file to be removed, but it is still used somewhere else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the plist there is a files array with all the files where a report was found. We can safely remove a file from this list only if that file is not found in any of the other report paths.

@whisperity whisperity added this to the 6.0 pre3 milestone Aug 31, 2017
@gyorb gyorb force-pushed the skip branch 2 times, most recently from 475cd32 to 46e7a54 Compare August 31, 2017 16:31
@gyorb gyorb added the WIP 💣 Work In Progress label Sep 1, 2017
@gyorb gyorb force-pushed the skip branch 3 times, most recently from 4712f1a to ba2d98f Compare September 1, 2017 14:10
@gyorb gyorb removed the WIP 💣 Work In Progress label Sep 1, 2017
Skipping reports in header files included by a c/cpp
file can be done only after the analysis is done and the
plist output is generated.

With this modification if there is a skip file with headers
in it, the reports from the header will be removed from the
generated plist file.
@gyorb gyorb merged commit 0a841d5 into Ericsson:version6 Sep 3, 2017
@gyorb gyorb deleted the skip branch October 16, 2017 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0