summaryrefslogtreecommitdiffstats
path: root/tools/buildscripts/find-mocables
diff options
context:
space:
mode:
Diffstat (limited to 'tools/buildscripts/find-mocables')
-rwxr-xr-xtools/buildscripts/find-mocables28
1 files changed, 0 insertions, 28 deletions
diff --git a/tools/buildscripts/find-mocables b/tools/buildscripts/find-mocables
deleted file mode 100755
index 4bfa311b..00000000
--- a/tools/buildscripts/find-mocables
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env python
-
-import re, sys, os
-
-mocables = set()
-dir = sys.argv[1]
-files = sys.argv[2:]
-for f in filter(os.path.isfile, [os.path.join(dir, f) for f in files]):
- 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