tools/clang/scripts/goma_link.py
def transform_codegen_param_common(self, param):
    """
    If param is a parameter relevant to code generation, returns the
    parameter in a form that is suitable to pass to clang.  For values
    of param that are not relevant to code generation, returns None.
    """
    match = self.MACHINE_RE.match(param)
    if match and match.group(1).lower() in ['x86', 'i386', 'arm', '32']:
      return ['-m32']
    match = self.MLLVM_RE.match(param)
    if match:
      if match.group(2):
        return ['-mllvm', match.group(2)]
      else:
        return ['-mllvm']
    if (param.startswith('-f') and not param.startswith('-flto')
        and not param.startswith('-fsanitize')
        and not param.startswith('-fthinlto')
        and not param.startswith('-fwhole-program')):
      return [param]
    if param.startswith('-g'):
      return [param]
    return None

    If param is a parameter relevant to code generation, returns the
    parameter in a form that is suitable to pass to clang.  For values
    of param that are not relevant to code generation, returns None.
    
If param is a parameter relevant to code generation, returns the
parameter in a form that is suitable to pass to clang.  For values
of param that are not relevant to code generation, returns None.
If param is a parameter relevant to code generation returns the parameter in a form that is suitable to pass to clang . For values of param that are not relevant to code generation returns None .
def transform_codegen_param_common(self, param):
    match = self.MACHINE_RE.match(param)
    if match and match.group(1).lower() in ['x86', 'i386', 'arm', '32']:
      return ['-m32']
    match = self.MLLVM_RE.match(param)
    if match:
      if match.group(2):
        return ['-mllvm', match.group(2)]
      else:
        return ['-mllvm']
    if (param.startswith('-f') and not param.startswith('-flto')
        and not param.startswith('-fsanitize')
        and not param.startswith('-fthinlto')
        and not param.startswith('-fwhole-program')):
      return [param]
    if param.startswith('-g'):
      return [param]
    return None
def transform_codegen_param_common ( self , param ) : match = self . MACHINE_RE . match ( param ) if match and match . group ( 1 ) . lower ( ) in [ 'x86' , 'i386' , 'arm' , '32' ] : return [ '-m32' ] match = self . MLLVM_RE . match ( param ) if match : if match . group ( 2 ) : return [ '-mllvm' , match . group ( 2 ) ] else : return [ '-mllvm' ] if ( param . startswith ( '-f' ) and not param . startswith ( '-flto' ) and not param . startswith ( '-fsanitize' ) and not param . startswith ( '-fthinlto' ) and not param . startswith ( '-fwhole-program' ) ) : return [ param ] if param . startswith ( '-g' ) : return [ param ] return None
If param is a parameter relevant to code generation, returns the
parameter in a form that is suitable to pass to clang.
If param is a parameter relevant to code generation returns the parameter in a form that is suitable to pass to clang .
"""
    If param is a parameter relevant to code generation, returns the
    parameter in a form that is suitable to pass to clang.  For values
    of param that are not relevant to code generation, returns None.
    """
self
param