@@ -16,6 +16,7 @@ public class GolangAnalyzerExtensionAnalyzer extends AbstractAnalyzer {
1616 boolean param_option =true ;
1717 boolean comment_option =true ;
1818 boolean datatype_option =true ;
19+ boolean extended_option =true ;
1920 boolean debugmode_option =false ;
2021
2122 public GolangAnalyzerExtensionAnalyzer () {
@@ -44,6 +45,7 @@ public void registerOptions(Options options, Program program) {
4445 options .registerOption ("Modify arguments" , param_option , null , "Modify function arguments" );
4546 options .registerOption ("Add comment" , comment_option , null , "Add source file and line information to comments" );
4647 options .registerOption ("Add data type" , datatype_option , null , "Add data type" );
48+ options .registerOption ("Extended analysis" , extended_option , null , "Analyze functions in detail" );
4749 options .registerOption ("Debug mode" , debugmode_option , null , "Debug mode" );
4850 }
4951
@@ -54,14 +56,15 @@ public void optionsChanged(Options options, Program program) {
5456 param_option =options .getBoolean ("Modify arguments" , param_option );
5557 comment_option =options .getBoolean ("Add comment" , comment_option );
5658 datatype_option =options .getBoolean ("Add data type" , datatype_option );
59+ extended_option =options .getBoolean ("Extended analysis" , extended_option );
5760 debugmode_option =options .getBoolean ("Debug mode" , debugmode_option );
5861 }
5962
6063 @ Override
6164 public boolean added (Program program , AddressSetView set , TaskMonitor monitor , MessageLog log )
6265 throws CancelledException {
6366 try {
64- FunctionModifier func_modifier =new FunctionModifier (program , monitor , log , rename_option , param_option , comment_option , debugmode_option );
67+ FunctionModifier func_modifier =new FunctionModifier (program , monitor , log , rename_option , param_option , comment_option , extended_option , debugmode_option );
6568 func_modifier .modify ();
6669
6770 StructureManager struct_manager =new StructureManager (program , monitor , log , datatype_option , debugmode_option );
0 commit comments