An error occurred while loading the file. Please try again.
-
Michal Klocek authored
Change-Id: If35a8f3a69e21a8fbd203ca84c37efdcac514549 Reviewed-by:
Kai Koehne <kai.koehne@qt.io>
f610818e
#!/usr/bin/env python
import re, sys, os
includedMocs = set()
for f in filter(os.path.isfile, sys.argv[1:]):
inBlockComment = False
for line in open(f).readlines():
m = re.search('#include "(moc_\w+.cpp)"', line)
if m:
includedMocs.add(m.group(1))
for moc in includedMocs:
print moc