parameters: (tools)
return_statement: return tool_list
docstring: Convert tools to a form expected by Visual Studio.
  
    Arguments:
      tools: A dictionary of settings; the tool name is the key.
    Returns:
      A list of Tool objects.
docstring_summary: Convert tools to a form expected by Visual Studio.
docstring_tokens: Convert tools to a form expected by Visual Studio .
function: def _ConvertToolsToExpectedForm(tools):
      """Convert tools to a form expected by Visual Studio.
  
    Arguments:
      tools: A dictionary of settings; the tool name is the key.
    Returns:
      A list of Tool objects.
    """
      tool_list = []
      for tool, settings in tools.items():
          # Collapse settings with lists.
          settings_fixed = {}
          for setting, value in settings.items():
              if type(value) == list:
                  if (
                      tool == "VCLinkerTool" and setting == "AdditionalDependencies"
                  ) or setting == "AdditionalOptions":
                      settings_fixed[setting] = " ".join(value)
                  else:
                      settings_fixed[setting] = ";".join(value)
              else:
                  settings_fixed[setting] = value
          # Add in this tool.
          tool_list.append(MSVSProject.Tool(tool, settings_fixed))
      return tool_list
function_tokens: def _ConvertToolsToExpectedForm ( tools ) : tool_list = [ ] for tool , settings in tools . items ( ) : # Collapse settings with lists. settings_fixed = { } for setting , value in settings . items ( ) : if type ( value ) == list : if ( tool == "VCLinkerTool" and setting == "AdditionalDependencies" ) or setting == "AdditionalOptions" : settings_fixed [ setting ] = " " . join ( value ) else : settings_fixed [ setting ] = ";" . join ( value ) else : settings_fixed [ setting ] = value # Add in this tool. tool_list . append ( MSVSProject . Tool ( tool , settings_fixed ) ) return tool_list