py/makeqstrdefs.py: Process C++ files as well.

Preprocessed C++ code isn't different from C code when it comes to QSTR
instances so process it as well.
This commit is contained in:
stijn 2020-10-22 14:09:33 +02:00 committed by Damien George
parent 1b723937e3
commit 2b9f0586e7

View File

@ -44,7 +44,7 @@ def process_file(f):
m = re_line.match(line) m = re_line.match(line)
assert m is not None assert m is not None
fname = m.group(1) fname = m.group(1)
if not fname.endswith(".c"): if os.path.splitext(fname)[1] not in [".c", ".cpp"]:
continue continue
if fname != last_fname: if fname != last_fname:
write_out(last_fname, output) write_out(last_fname, output)