6.2.5.43. Architecture-DeadCodeView

Create a view containing dead functions of a certain base view

Required inputs: RFG

This rule identifies dead routines and adds a corresponding view to the RFG.

Dead code reduces code readability and maintainability.

This rule does not generate dead code issues (use DeadCodeDetection to do so).

Possible Messages

This rule has no predefined messages.

Options

The following places define options that affect this rule: Analysis-GlobalOptions

alive_view_name

alive_view_name : str = 'Alive'

Name of the result view containing the alive functions
 

base_view_name

base_view_name : str = 'Code Facts'

Name of the base view where to search for dead code
 

entries_view_name

entries_view_name : str = 'Entries'

Name of the entries view providing the entry points for alive functions
 

merge_copies

merge_copies : bool = True

Whether all copies of a function (due to missing dllexport) should be considered alive as soon as one of them is alive
 

result_view_name

result_view_name : str = 'Dead'

Name of the result view containing the dead functions