Skip to content

Commit

Permalink
fix #110: add bug_type to the hash function
Browse files Browse the repository at this point in the history
  • Loading branch information
rizsotto committed Jan 1, 2019
1 parent 20138bd commit 5d75533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libscanbuild/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ def read_bugs(output_dir, html):
def empty(file_name):
return os.stat(file_name).st_size == 0

duplicate = duplicate_check(
lambda bug: '{bug_line}.{bug_path_length}:{bug_file}'.format(**bug))
hash_str = '{bug_line}.{bug_path_length}/{bug_type}:{bug_file}'
duplicate = duplicate_check(lambda bug: hash_str.format(**bug))

# get the right parser for the job.
parser = parse_bug_html if html else parse_bug_plist
Expand Down

0 comments on commit 5d75533

Please sign in to comment.