An error occurred while loading the file. Please try again.
-
Szabolcs David authored
Drop hovered title and link text parameters, as we did in the Quick API. Change-Id: Ia1a38e0d728afbcbb6858a890486772da74aa813 Reviewed-by:
Pierre Rossi <pierre.rossi@gmail.com>
fc6f378d
#!/usr/bin/env python
import re, sys, os
mocables = set()
for f in filter(os.path.isfile, sys.argv[1:]):
inBlockComment = False
for line in open(f).readlines():
# Block comments handling
if "/*" in line:
inBlockComment = True
if inBlockComment and "*/" in line:
inBlockComment = False
if line.find("*/") != len(line) - 3:
line = line[line.find("*/")+2:]
else:
continue
if inBlockComment:
continue
#simple comments handling
if "//" in line:
line = line.partition("//")[0]
if re.match(".*Q_OBJECT", line):
mocables.add(f)
for mocable in mocables:
print mocable