OK, gotta go do other stuff for a while, and will probably be returning to this on another computer.
#!/usr/bin/env python3
import clang.cindex
import subprocess
index = clang.cindex.Index.create()
procevents = index.parse('rtengine/procevents.h',args=['-x', 'c++'])
for chld in procevents.cursor.get_children():
if(chld.displayname == 'rtengine'):
for c in chld.get_children():
if(c.displayname == 'ProcEventCode'):
for pec in c.get_children():
#print(pec.kind, pec.displayname)
grp = subprocess.Popen(('grep', '-ro', '--exclude=procevents.h', pec.displayname), stdout=subprocess.PIPE)
wcr = subprocess.check_output(('wc', '-l'), stdin=grp.stdout)
grp.wait()
print(pec.displayname,int(wcr))
Should we have a separate thread for translation prep work and coordination?
I do have a possible finding:
EvSHHighQuality 0
Edit: This appears to have been an orphan since sometime between 5.4 and 5.5, it was used in 5.4:
rtgui/shadowshighlights.cc: listener->panelChanged (EvSHHighQuality, M("GENERAL_ENABLED"));
rtgui/shadowshighlights.cc: listener->panelChanged (EvSHHighQuality, M("GENERAL_DISABLED"));