#!/usr/bin/env python
"""Script to sort the top-most block of #include lines.
Assumes the LLVM coding conventions.
Currently, this script only bothers sorting the llvm/... headers. Patches
welcome for more functionality, and sorting other header groups.
"""
  """Sort the #include lines of a specific file."""
  # Skip files which are under INPUTS trees or test trees.
  
    return
   = 
  
    return
   = 
   =  in 
   = False
   = 0
   = 0
   = 
   = 
   = 
   = 
   = 
  
    
      continue
    
      
         = 
         = True
       = 
       = 
      
        
         = False
        continue
      
        
        continue
      
        
        continue
      
        
        continue
      
      continue
    # Only allow comments and #defines prior to any includes. If either are
    # mixed with includes, the order might be sensitive.
    
      break
    
      continue
    break
  
    return
   = 
   = 
   = 
   = 
   =  +  +  +  + 
   = 
   =  +  + 
  
  
  
   = 
  
   =