parameters: (
      spec, options, gyp_dir, sources, excluded_sources, list_excluded)
return_statement: return sources, excluded_sources, excluded_idl
docstring: Adjusts the list of sources and excluded sources.
  
    Also converts the sets to lists.
  
    Arguments:
      spec: The target dictionary containing the properties of the target.
      options: Global generator options.
      gyp_dir: The path to the gyp file being processed.
      sources: A set of sources to be included for this project.
      excluded_sources: A set of sources to be excluded for this project.
    Returns:
      A trio of (list of sources, list of excluded sources,
                 path of excluded IDL file)
docstring_summary: Adjusts the list of sources and excluded sources.
docstring_tokens: Adjusts the list of sources and excluded sources .
function: def _AdjustSourcesAndConvertToFilterHierarchy(
      spec, options, gyp_dir, sources, excluded_sources, list_excluded):
    """Adjusts the list of sources and excluded sources.
  
    Also converts the sets to lists.
  
    Arguments:
      spec: The target dictionary containing the properties of the target.
      options: Global generator options.
      gyp_dir: The path to the gyp file being processed.
      sources: A set of sources to be included for this project.
      excluded_sources: A set of sources to be excluded for this project.
    Returns:
      A trio of (list of sources, list of excluded sources,
                 path of excluded IDL file)
    """
    # Exclude excluded sources coming into the generator.
    excluded_sources.update(set(spec.get('sources_excluded', [])))
    # Add excluded sources into sources for good measure.
    sources.update(excluded_sources)
    # Convert to proper windows form.
    # NOTE: sources goes from being a set to a list here.
    # NOTE: excluded_sources goes from being a set to a list here.
    sources = _FixPaths(sources)
    # Convert to proper windows form.
    excluded_sources = _FixPaths(excluded_sources)
  
    excluded_idl = _IdlFilesHandledNonNatively(spec, sources)
  
    precompiled_related = _GetPrecompileRelatedFiles(spec)
    # Find the excluded ones, minus the precompiled header related ones.
    fully_excluded = [i for i in excluded_sources if i not in precompiled_related]
  
    # Convert to folders and the right slashes.
    sources = [i.split('\\') for i in sources]
    sources = _ConvertSourcesToFilterHierarchy(sources, excluded=fully_excluded,
                                               list_excluded=list_excluded)
  
    return sources, excluded_sources, excluded_idl
function_tokens: def _AdjustSourcesAndConvertToFilterHierarchy ( spec , options , gyp_dir , sources , excluded_sources , list_excluded ) : # Exclude excluded sources coming into the generator. excluded_sources . update ( set ( spec . get ( 'sources_excluded' , [ ] ) ) ) # Add excluded sources into sources for good measure. sources . update ( excluded_sources ) # Convert to proper windows form. # NOTE: sources goes from being a set to a list here. # NOTE: excluded_sources goes from being a set to a list here. sources = _FixPaths ( sources ) # Convert to proper windows form. excluded_sources = _FixPaths ( excluded_sources ) excluded_idl = _IdlFilesHandledNonNatively ( spec , sources ) precompiled_related = _GetPrecompileRelatedFiles ( spec ) # Find the excluded ones, minus the precompiled header related ones. fully_excluded = [ i for i in excluded_sources if i not in precompiled_related ] # Convert to folders and the right slashes. sources = [ i . split ( '\\' ) for i in sources ] sources = _ConvertSourcesToFilterHierarchy ( sources , excluded = fully_excluded , list_excluded = list_excluded ) return sources , excluded_sources , excluded_idl