You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Statistical checkers require 2-phase analysis. In the 1st, statistics collection-phase, the source code is analyzed and information is collected about the API usages. These statistics are stored into collection directory. In the 2nd, analysis phase, the collected information is used to find bugs in the code (API usages that are non-conform to the applied coding style).
CodeChecker will support this 2-phase analysis.
Checkers that benefit from the support are api.SpecialReturnValue, api.UncheckedReturnValue.
The option will only be shown if the checkers are available.
The statistics will be stored into in <REPORT-DIR>/statistics directory.
If any of the
api.SpecialReturnValue
api.UncheckedReturnValue
checkers are switched on, look for statistics file in the <REPORT-DIR>/statistics directory.
Introduce a new optional analyze argument --preanalize-dir <PREANALYZE-DIR> which is a <REPORT_DIR> with the CTU and statistics pre-analysis results.
Using this parameter it will be possible to share the pre-analysis results between multiple analysis runs. So if this parameter is given, the --ctu-analyze and the ctu-on-the-fly, and the statistical checkers will search for the CTU and statistics interim files in <PRE-ANALYZE-DIR>/ctu and <PRE-ANALYZE-DIR>/statistics directories.
The text was updated successfully, but these errors were encountered:
So I read it correctly that --preanalyze-dir is by default same as <OUTPUT_DIR> (the name of the opstring is NOTreport-dir but output-dir!), but we can set it to something else?
I don't like the phrase preanalyze-dir. A better string should be found, one that conveys the fact that extra analysis resources are stored here.
whisperity
added
analyzer 📈
Related to the analyze commands (analysis driver)
and removed
CLI 💻
Related to the command-line interface, such as the cmd, store, etc. commands
labels
Aug 19, 2017
dkrupp
changed the title
support for statistical checkers
Support for Statistical Checkers
Aug 21, 2017
Statistical checkers require 2-phase analysis. In the 1st, statistics collection-phase, the source code is analyzed and information is collected about the API usages. These statistics are stored into collection directory. In the 2nd, analysis phase, the collected information is used to find bugs in the code (API usages that are non-conform to the applied coding style).
CodeChecker will support this 2-phase analysis.
Checkers that benefit from the support are api.SpecialReturnValue, api.UncheckedReturnValue.
Add
--statistics-collect
option toanalyze
which switches on experimental statistics collection checkers:statisticsCollector.ReturnValueCheck
statisticsCollector.SpecialReturnValue
The option will only be shown if the checkers are available.
The statistics will be stored into in
<REPORT-DIR>/statistics
directory.If any of the
checkers are switched on, look for statistics file in the
<REPORT-DIR>/statistics
directory.Introduce a new optional analyze argument
--preanalize-dir <PREANALYZE-DIR>
which is a <REPORT_DIR> with the CTU and statistics pre-analysis results.Using this parameter it will be possible to share the pre-analysis results between multiple analysis runs. So if this parameter is given, the
--ctu-analyze
and thectu-on-the-fly
, and the statistical checkers will search for the CTU and statistics interim files in<PRE-ANALYZE-DIR>/ctu
and<PRE-ANALYZE-DIR>/statistics
directories.The text was updated successfully, but these errors were encountered: