parameters: (args, from_build_command)
docstring: Normalize parsed arguments for analyze-build and scan-build.
  
      :param args: Parsed argument object. (Will be mutated.)
      :param from_build_command: Boolean value tells is the command suppose
      to run the analyzer against a build command or a compilation db.
docstring_summary: Normalize parsed arguments for analyze-build and scan-build.
docstring_tokens: Normalize parsed arguments for analyze - build and scan - build .
function: def normalize_args_for_analyze(args, from_build_command):
      """ Normalize parsed arguments for analyze-build and scan-build.
  
      :param args: Parsed argument object. (Will be mutated.)
      :param from_build_command: Boolean value tells is the command suppose
      to run the analyzer against a build command or a compilation db. """
  
      # make plugins always a list. (it might be None when not specified.)
      if args.plugins is None:
          args.plugins = []
  
      # make exclude directory list unique and absolute.
      uniq_excludes = set(os.path.abspath(entry) for entry in args.excludes)
      args.excludes = list(uniq_excludes)
  
      # because shared codes for all tools, some common used methods are
      # expecting some argument to be present. so, instead of query the args
      # object about the presence of the flag, we fake it here. to make those
      # methods more readable. (it's an arguable choice, took it only for those
      # which have good default value.)
      if from_build_command:
          # add cdb parameter invisibly to make report module working.
          args.cdb = 'compile_commands.json'
  
      # Make ctu_dir an abspath as it is needed inside clang
      if not from_build_command and hasattr(args, 'ctu_phases') \
              and hasattr(args.ctu_phases, 'dir'):
          args.ctu_dir = os.path.abspath(args.ctu_dir)
function_tokens: def normalize_args_for_analyze ( args , from_build_command ) : # make plugins always a list. (it might be None when not specified.) if args . plugins is None : args . plugins = [ ] # make exclude directory list unique and absolute. uniq_excludes = set ( os . path . abspath ( entry ) for entry in args . excludes ) args . excludes = list ( uniq_excludes ) # because shared codes for all tools, some common used methods are # expecting some argument to be present. so, instead of query the args # object about the presence of the flag, we fake it here. to make those # methods more readable. (it's an arguable choice, took it only for those # which have good default value.) if from_build_command : # add cdb parameter invisibly to make report module working. args . cdb = 'compile_commands.json' # Make ctu_dir an abspath as it is needed inside clang if not from_build_command and hasattr ( args , 'ctu_phases' ) and hasattr ( args . ctu_phases , 'dir' ) : args . ctu_dir = os . path . abspath ( args . ctu_dir )