This is an archive of the discontinued LLVM Phabricator instance.

[flang][NFC] Get formatting in sync with latest clang-format
ClosedPublic

Authored by tskeith on Jul 1 2020, 12:04 PM.

Details

Summary

flang/module only contains Fortran files and one is a .h so disable
formatting on that directory.

Diff Detail

Event Timeline

tskeith created this revision.Jul 1 2020, 12:04 PM
Herald added a project: Restricted Project. · View Herald Transcript

I'd be interested to know if you felt any of those changes were an unwanted surprise

PeteSteinfeld accepted this revision.Jul 1 2020, 1:11 PM

All builds, tests, and looks good.

Thanks for doing this!

This revision is now accepted and ready to land.Jul 1 2020, 1:11 PM

I'd be interested to know if you felt any of those changes were an unwanted surprise

Most of the differences were in formatting conditional expressions and I thought they were improvements.

My preference would be to have an option not to align things in those expressions. (You'll notice we have turned off all of the alignment options in .clang-format.) For example:

return IsUpperCaseLetter(ch) ? ch - 'A' + 10
    : IsLowerCaseLetter(ch) ? ch - 'a' + 10
    : DecimalDigitValue(ch);
schweitz accepted this revision.Jul 1 2020, 4:05 PM
This revision was automatically updated to reflect the committed changes.