cmCommonTargetGenerator: Factor out generation of code check rules
EDIT: This has been converted to a refactor-only change.
I'm interested in working on #19772 with what was discussed in the comments of the issue, however I have an implementation questions for if I work on this:
- Is there an easy way of getting access to source file properties in
void cmNinjaTargetGenerator::WriteLanguageRules(language, config)(similar question for the Makefile target generator)? I'm not sure what the correct way is of getting this property from just the