aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_commit.py
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2025-10-28 15:06:51 +0000
committerRichard Earnshaw <rearnsha@arm.com>2025-10-28 15:06:51 +0000
commit162ec539a39c0b24eea3e17863499aa3f89d6a64 (patch)
tree3e4d00ac196256092467edb35ddefc1818a5f101 /contrib/gcc-changelog/git_commit.py
parentb6146faae09bbc936d280abb215c30d699b0c1d1 (diff)
downloadgcc-162ec539a39c0b24eea3e17863499aa3f89d6a64.zip
gcc-162ec539a39c0b24eea3e17863499aa3f89d6a64.tar.gz
gcc-162ec539a39c0b24eea3e17863499aa3f89d6a64.tar.bz2
editorconfig: Add explicit tab_width when indent_size != 8
The documentation for editorconfig files says that setting indent_size changes the default value of tab_width; but the documentation is a little ambiguous as to what happens if the two values are set via different match rules. I'd generally expect in this case that the defaulting behavior would only kick in if there were no setting of tab_width at all, but it seems that the go implementation (or at least the way forgejo uses the go implementation) does not do this. However, it is fairly easy to make this all explicit by explicitly setting tab_width whenever we have an indent_size that is not 8. I've deliberately omitted overriding this when the indent style is set to space, since this should make the presence of a hard tab show up in the forge UI more clearly as incorrect indentation. /ChangeLog: * .editorconfig: Explicitly set tab_width whenever a config rule has indent_style = tab and indent_size != 8.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
0 files changed, 0 insertions, 0 deletions