Skip to content

[Docs] Update coding standard for TD files#200848

Merged
rengolin merged 4 commits into
llvm:mainfrom
rengolin:docs
Jun 1, 2026
Merged

[Docs] Update coding standard for TD files#200848
rengolin merged 4 commits into
llvm:mainfrom
rengolin:docs

Conversation

@rengolin

@rengolin rengolin commented Jun 1, 2026

Copy link
Copy Markdown
Member

This PR proposes an update to the coding standards document to make explicit that we do not want unnecessary formatting changes to TD files.

This is in response to this merged PR (#199346), which lead to this RFC (https://discourse.llvm.org/t/80-column-limit-for-td-files/90950/).

This PR proposes an update to the coding standards document to make explicit that we do not want unnecessary formatting changes to TD files.

This is in response to this merged PR (llvm#199346), which lead to this RFC (https://discourse.llvm.org/t/80-column-limit-for-td-files/90950/).

@Endilll Endilll left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC @AaronBallman I remember this was a pain point for you.

Comment thread llvm/docs/CodingStandards.rst Outdated
Comment thread llvm/docs/CodingStandards.rst Outdated
@shiltian

shiltian commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

I'm fine with this change. AFAIK, we don't really enforce this, and there are plenty of target-related .td files that haven't followed this convention, probably since the beginning.

Co-authored-by: Vlad Serebrennikov <serebrennikov.vladislav@gmail.com>

@lenary lenary left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for documenting that we don't clang-format tablegen.

I recall the exclusion I added was LLVM-only but maybe other sub-projects also have it now.

@AaronBallman AaronBallman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment thread llvm/docs/CodingStandards.rst
@rengolin rengolin merged commit 8b66d82 into llvm:main Jun 1, 2026
11 checks passed
@rengolin rengolin deleted the docs branch June 1, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants