Skip to content

Commit

Permalink
get rid of even more cppcheck junk
Browse files Browse the repository at this point in the history
  • Loading branch information
Szelethus committed Oct 4, 2023
1 parent deaf628 commit 7604403
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
19 changes: 4 additions & 15 deletions analyzer/codechecker_analyzer/analyzers/gcc/result_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def postprocess_result(self, skip_handlers: Optional[SkipListHandlers]):
source_dir_path=self.source_dir_path)

reports = [r for r in reports if not r.skip(skip_handlers)]
for report in reports:
# TODO check if prefix cascading still occurs.
if not report.checker_name.startswith("gcc-"):
report.checker_name = "gcc-" + report.checker_name
#for report in reports:
# # TODO check if prefix cascading still occurs.
# if not report.checker_name.startswith("gcc-"):
# report.checker_name = "gcc-" + report.checker_name

hash_type = HashType.PATH_SENSITIVE
if self.report_hash_type == 'context-free-v2':
Expand All @@ -71,17 +71,6 @@ def postprocess_result(self, skip_handlers: Optional[SkipListHandlers]):

for report in reports:
report.report_hash = get_report_hash(report, hash_type)
bpe = BugPathEvent(
report.message,
report.file,
report.line,
report.column,
Range(report.line,
report.column,
report.line,
report.column))
if bpe != report.bug_path_events[-1]:
report.bug_path_events.append(bpe)

report_file.create(
self.analyzer_result_file, reports, self.checker_labels,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def teardown_class(cls):
global TEST_WORKSPACE

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
#shutil.rmtree(TEST_WORKSPACE)

def teardown_method(self, method):
"""Restore environment after a particular test has run."""
Expand Down

0 comments on commit 7604403

Please sign in to comment.