blob: c76360299957ff1b898147d93c757d0cd12bc27b (
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)
|