forked from Ericsson/codechecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix][clang][server] Add report hash to the report_path_hash
`report_path_hash()` is used for generating a report specific hash for determining if a bugreport should be saved in the database or not. We skip duplicate bugreports. Unfortunately, in some cases clangsa produced plists where an included file had a context-insensitive bugreport at the exact same file:row:col:checker, but different bug hash. Previously, on the first was stored into the database, thus the associated bug hash was nondeterministically choosen, causing a weird behavior. Imagine you store the same report directory different runs to the server. One would expect that the diff between those runs is empty. It was not the case! By adding the report hash to the `report_path_hash` calculation, seemingly identical reports - with different report hashes - now will be considered different. This way if there are multiple reports to a header location, each occurrences of that bug will be stored to the server if they have different report hashes. The users still can specify a non-default report hash generation for changing this behavior e.g. by using the `--report-hash context-free-v2`.
- Loading branch information
Balazs Benics
committed
Apr 28, 2022
1 parent
01a042c
commit 23c59c8
Showing
5 changed files
with
83 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters