-
Couldn't load subscription status.
- Fork 383
Open
Description
Hi everyone,
I’ve noticed that some of the .td (TableGen) files in the repository contain trailing whitespace and minor formatting inconsistencies. To help avoid these and others in the future, and to make contributor workflows a bit smoother, I’d like to propose adding a pre-commit configuration to the repo.
A pre-commit setup would:
- Automatically strip trailing whitespace and fix end-of-file newlines
- Enforce consistent formatting by using the same fixed clang-format version used in CI
- Make it easier for contributors to catch common issues locally before committing
This would not affect build behavior and can be gradually adopted.
If people are open to the idea, I can open a PR with a minimal .pre-commit-config.yaml and documentation on how to enable it.
WDYT?
Metadata
Metadata
Assignees
Labels
No labels