tools/clang/scripts/goma_link.py
def expand_thin_archives(self, args):
    """
    Yields the parameters in args, with thin archives replaced by a sequence
    of '-start-lib', the member names, and '-end-lib'. This is used to get a
    command line where members of thin archives are mentioned explicitly.
    """
    for arg in args:
      prefix = os.path.dirname(arg)
      if prefix:
        prefix += '/'
      if (self.LIB_RE.match(arg) and os.path.exists(arg)
          and is_thin_archive(arg)):
        yield (self.WL + '-start-lib')
        for name in names_in_archive(arg):
          yield (prefix + name)
        yield (self.WL + '-end-lib')
      else:
        yield (arg)

    Yields the parameters in args, with thin archives replaced by a sequence
    of '-start-lib', the member names, and '-end-lib'. This is used to get a
    command line where members of thin archives are mentioned explicitly.
    
Yields the parameters in args, with thin archives replaced by a sequence
of '-start-lib', the member names, and '-end-lib'. This is used to get a
command line where members of thin archives are mentioned explicitly.
Yields the parameters in args with thin archives replaced by a sequence of ' - start - lib ' the member names and ' - end - lib ' . This is used to get a command line where members of thin archives are mentioned explicitly .
def expand_thin_archives(self, args):
    for arg in args:
      prefix = os.path.dirname(arg)
      if prefix:
        prefix += '/'
      if (self.LIB_RE.match(arg) and os.path.exists(arg)
          and is_thin_archive(arg)):
        yield (self.WL + '-start-lib')
        for name in names_in_archive(arg):
          yield (prefix + name)
        yield (self.WL + '-end-lib')
      else:
        yield (arg)
def expand_thin_archives ( self , args ) : for arg in args : prefix = os . path . dirname ( arg ) if prefix : prefix += '/' if ( self . LIB_RE . match ( arg ) and os . path . exists ( arg ) and is_thin_archive ( arg ) ) : yield ( self . WL + '-start-lib' ) for name in names_in_archive ( arg ) : yield ( prefix + name ) yield ( self . WL + '-end-lib' ) else : yield ( arg )
Yields the parameters in args, with thin archives replaced by a sequence
of '-start-lib', the member names, and '-end-lib'.
Yields the parameters in args with thin archives replaced by a sequence of ' - start - lib ' the member names and ' - end - lib ' .
"""
    Yields the parameters in args, with thin archives replaced by a sequence
    of '-start-lib', the member names, and '-end-lib'. This is used to get a
    command line where members of thin archives are mentioned explicitly.
    """
self
args