ppapi/generate_ppapi_size_checks.py
def ProcessTarget(clang_command, target, types):
  """Run clang using the given clang_command for the given target string.  Parse
  the output to create TypeInfos for each discovered type.  Insert each type in
  to the 'types' dictionary.  If the type already exists in the types
  dictionary, make sure that the size matches what's already in the map.  If
  not, exit with an error message.
  """
  p = subprocess.Popen(clang_command + " -triple " + target,
                       shell=True,
                       stdout=subprocess.PIPE)
  lines = p.communicate()[0].split()
  for line in lines:
    typeinfo = TypeInfo(line, target)
    CheckAndInsert(typeinfo, types)
Run clang using the given clang_command for the given target string.  Parse
  the output to create TypeInfos for each discovered type.  Insert each type in
  to the 'types' dictionary.  If the type already exists in the types
  dictionary, make sure that the size matches what's already in the map.  If
  not, exit with an error message.
  
Run clang using the given clang_command for the given target string.  Parse
the output to create TypeInfos for each discovered type.  Insert each type in
to the 'types' dictionary.  If the type already exists in the types
dictionary, make sure that the size matches what's already in the map.  If
not, exit with an error message.
Run clang using the given clang_command for the given target string . Parse the output to create TypeInfos for each discovered type . Insert each type in to the ' types ' dictionary . If the type already exists in the types dictionary make sure that the size matches what ' s already in the map . If not exit with an error message .
def ProcessTarget(clang_command, target, types):
  p = subprocess.Popen(clang_command + " -triple " + target,
                       shell=True,
                       stdout=subprocess.PIPE)
  lines = p.communicate()[0].split()
  for line in lines:
    typeinfo = TypeInfo(line, target)
    CheckAndInsert(typeinfo, types)
def ProcessTarget ( clang_command , target , types ) : p = subprocess . Popen ( clang_command + " -triple " + target , shell = True , stdout = subprocess . PIPE ) lines = p . communicate ( ) [ 0 ] . split ( ) for line in lines : typeinfo = TypeInfo ( line , target ) CheckAndInsert ( typeinfo , types )
Run clang using the given clang_command for the given target string.
Run clang using the given clang_command for the given target string .
"""Run clang using the given clang_command for the given target string.  Parse
  the output to create TypeInfos for each discovered type.  Insert each type in
  to the 'types' dictionary.  If the type already exists in the types
  dictionary, make sure that the size matches what's already in the map.  If
  not, exit with an error message.
  """
clang_command
target
types