This is an archive of the discontinued LLVM Phabricator instance.

Revert "sanitizers: increase .clang-format columns to 100"
ClosedPublic

Authored by dvyukov on Jul 26 2021, 10:04 PM.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Jul 26 2021, 10:04 PM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2021, 10:04 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
dblaikie accepted this revision.Jul 27 2021, 5:28 AM

Approved (though usually reverts like this (especially of your own patches, shortly after originally committed, etc) can be submitted without pre-commit review, if you like) - happy if you'd like to wait a few days for other discussion, though.

This revision is now accepted and ready to land.Jul 27 2021, 5:28 AM

happy if you'd like to wait a few days for other discussion, though.

What is the other discussion?

Perhaps it means a discussion on llvm-dev.

happy if you'd like to wait a few days for other discussion, though.

What is the other discussion?

Oh, I just meant if you wanted to wait until/if other people had feedback on the patch, that'd be OK. But otherwise you can go ahead and commit the revert with my approval.

I think a discussion needs to be made before the revert is commited (which can cause churn by itself).

FWIW customizing ColumnLimit: isn't uncommon in llvm-project:

% rg ColumnLimit: -g .clang-format -l | grep -v compiler-rt
pstl/.clang-format
libcxx/.clang-format
clang-tools-extra/test/.clang-format
clang/test/.clang-format
llvm/test/.clang-format
lldb/test/Shell/.clang-format

If we drop tests, pstl and libcxx diverge from the llvm style.

vitalybuka resigned from this revision.Jul 27 2021, 3:32 PM
xgupta added a subscriber: xgupta.EditedJul 27 2021, 4:50 PM

I think a discussion needs to be made before the revert is commited (which can cause churn by itself).

FWIW customizing ColumnLimit: isn't uncommon in llvm-project:

% rg ColumnLimit: -g .clang-format -l | grep -v compiler-rt
pstl/.clang-format
libcxx/.clang-format
clang-tools-extra/test/.clang-format
clang/test/.clang-format
llvm/test/.clang-format
lldb/test/Shell/.clang-format

If we drop tests, pstl and libcxx diverge from the llvm style.

Coding standards for column width are about source code(.c, .cpp, .h), so we can drop tests, not many ( i think), run clang-format on them.

pstl comes from a single commit - https://github.com/intel/parallelstl.
in https://reviews.llvm.org/D55889#1336439 as said jfb, on RFC, people are agree to committed the patch as-is. No attention was paid on ColumnLimit.

libcxx change .clang-format standard recently(15 April 2021) in https://reviews.llvm.org/D99691#2690379. And they are always open to tweak it.

I think a discussion needs to be made before the revert is commited (which can cause churn by itself).

You are getting me into a deadlock state, I cannot both revert and not revert this :)

This revision was landed with ongoing or failed builds.Jul 28 2021, 12:40 AM
This revision was automatically updated to reflect the committed changes.