7 for line in open(a, 'r'):
8 if line.startswith('#include'):
9 includes.append(line.strip()[9:])
11 std = ['<cstdio>', '<unistd.h>', '<stdexcept>', '<iostream>', '<algorithm>', '<fstream>', '<cstdlib>', '<iomanip>', '<stdint.h>', '<cmath>', '<cassert>', '<cstring>', '<mntent.h>', '<windows.h>', '<shlwapi.h>', '<sys/sysctl.h>', '<mach-o/dyld.h>', '<IOKit/pwr_mgt/IOPMLib.h>', '<sys/types.h>', '<ifaddrs.h>', '<netinet/in.h>', '<arpa/inet.h>', '<cerrno>']
20 elif i.find("<boost/") != -1:
22 elif i.find("<libxml++/") != -1 or i == '<glib.h>':
24 elif i.find("<libcxml/") != -1 or i.find("<dcp/") != -1:
26 elif i.find("\"wx/") != -1:
31 if group < current_group:
32 print '%s: first wrong order is %s' % (a, i)