@@ -615,7 +615,7 @@ class CppProject(datatypes.Project[CppSourceCodeFile]):
615615
616616 def __init__ (self , source_code_files : list [CppSourceCodeFile ]):
617617 super ().__init__ (source_code_files )
618- self .internal_func_list = []
618+ self .internal_func_list : list [ dict [ str , Any ]] = []
619619
620620 def generate_report (self ,
621621 entry_function : str = '' ,
@@ -654,7 +654,8 @@ def generate_report(self,
654654 logger .debug ('Done extracting callsites' )
655655 func_dict : dict [str , Any ] = {}
656656 func_dict ['functionName' ] = func .name
657- func_dict ['functionSourceFile' ] = func .parent_source .source_file
657+ func_dict [
658+ 'functionSourceFile' ] = func .parent_source .source_file
658659 func_dict ['functionLinenumber' ] = func .start_line
659660 func_dict ['functionLinenumberEnd' ] = func .end_line
660661 func_dict ['linkageType' ] = ''
@@ -672,9 +673,11 @@ def generate_report(self,
672673 func_dict ['BranchProfiles' ] = []
673674 func_dict ['Callsites' ] = func .detailed_callsites
674675 logger .debug ('Calculating function uses' )
675- func_dict ['functionUses' ] = self .calculate_function_uses (func .name )
676+ func_dict ['functionUses' ] = self .calculate_function_uses (
677+ func .name )
676678 logger .debug ('Getting function depth' )
677- func_dict ['functionDepth' ] = self .calculate_function_depth (func )
679+ func_dict ['functionDepth' ] = self .calculate_function_depth (
680+ func )
678681 func_dict ['constantsTouched' ] = []
679682 func_dict ['BBCount' ] = 0
680683 func_dict ['signature' ] = func .sig
0 commit comments