Perform generated file checks on a wider set of file types
Fixup for 62c866e68f82d0c940c7c4ee5faff3e517b82ecd.
Simply adding the newly generated keywords did not suffice
for detecting headers generated by Sol, as they use the .hpp
extension. This caused them to fall under a condition that
didn't set the $check_gen flag. This issue could also affect
other file types, so a more generic check is necessary.
Change-Id: I3422d14f1cf35c512c48d7e12e8c5dbfaf1d6026
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Daniel Smith <daniel.smith@qt.io>