Attribute annotations, e.g., #0, are not useful on their own. This
patch adds a flag to update_test_checks to scrub them.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 40405 Build 40512: arc lint + arc unit
Event Timeline
Now that i believe there's some testing infra for these utils, add/update tests for this?
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).
I'm in favor of this happening and I can put it on my list. Though, if you want me to do this it will take some time.