blob: e55f3824c0462adafb1d7a19d32154e3c457834b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/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
|