Attribute annotations, e.g., #0, are not useful on their own. This
patch adds a flag to update_test_checks to scrub them.
Could you also make this change to update_cc_test_checks.py?
This code could move to common and we add a generates_ir flag to common.parse_commandline_args(parser). If that flag is set, parse_commandline_args adds the --function-signature and --scrub-attributes command line option and performs the SCRUB_TRAILING_WHITESPACE_TEST_RE -> SCRUB_TRAILING_WHITESPACE_AND_ATTRIBUTES_RE subsitituion?
If it's in common there should be no need for a separate update_cc_test_checks test (however, it probably makes sense to wait until D71565 has landed to avoid regresssions).