An error occurred while loading the file. Please try again.
-
Allan Sandfeld Jensen authored
This adds API for overriding some certificate errors. Once overridden any identical error for the same hostname and certificate will use the same override. Similar API for QtWebEngine QML should be added in a later patch. Change-Id: I144147b86d9b592e3f87346a1e48890acee0c670 Reviewed-by:
Jocelyn Turcotte <jocelyn.turcotte@digia.com>
66def056
#!/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