Ericsson / codechecker

CodeChecker is an analyzer tooling, defect database and viewer extension for static and dynamic analyzer tools.
https://codechecker.readthedocs.io
Apache License 2.0
2.27k stars 383 forks source link

Self-contained report directories (with source files) #3139

Open csordasmarton opened 3 years ago

csordasmarton commented 3 years ago

In some case it would be useful to store the files that are referred to from the plist reports in the report directory.

This way, the report directory would be self contained and movable. So results could even be stored from the source directory after the source code changed.

dkrupp commented 1 year ago

This feature would be usefule when one executes diffs between report directories that refer different version of the source code. Typically git is checking out the source code for the two commits into the same directory.

When one executes the following diff command: CodeChecker diff -b old_report_dir -n new_report_dir --new codechecker gives an error if the source files referred to by the plist files are newer than the plist files themselves assuming that the contents of the files changed after analysis.

A solution to the above problem would be to copy all source files into the report directory after analysis and only refer to these copies from the plist files.