This is an archive of the discontinued LLVM Phabricator instance.

[Flang] Run clang-format on all flang files
ClosedPublic

Authored by PeteSteinfeld on Nov 2 2022, 2:46 PM.

Details

Summary

This will make it easier for me to do reviews.

Diff Detail

Event Timeline

PeteSteinfeld created this revision.Nov 2 2022, 2:46 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a subscriber: mehdi_amini. · View Herald Transcript
PeteSteinfeld requested review of this revision.Nov 2 2022, 2:46 PM
klausler added inline comments.Nov 2 2022, 3:14 PM
flang/include/flang/Runtime/magic-numbers.h
1 ↗(On Diff #472776)

This change is not an improvement.

flang/lib/Semantics/type.cpp
466 ↗(On Diff #472776)

This one seems inconsistent with all other braced initializations.

flang/runtime/derived.cpp
168 ↗(On Diff #472776)

Comment makes more sense when it's on the same line as its referent.

awarzynski accepted this revision.Nov 3 2022, 1:10 AM

Thanks a ton Pete, nice clean-up!

Changes in the driver area LGTM. Listing them here for reference

  • "flang/tools/flang-driver/*,
  • "flang/include/flang/Frontend/*",
  • "flang/lib/Frontend/*".

Approving this as is, but please address Peter's comments before merging (and any other comments that folks might leave in the meantime).

This revision is now accepted and ready to land.Nov 3 2022, 1:10 AM
jeanPerier accepted this revision.Nov 3 2022, 1:22 AM

I am ok with the changes in Optimizer/Evaluate

Responding to Peter's comments.

Thanks, Peter, Jean, and Andrej. I'll fix things up.

flang/include/flang/Runtime/magic-numbers.h
1 ↗(On Diff #472776)

Thanks. I'll revert it.

flang/lib/Semantics/type.cpp
466 ↗(On Diff #472776)

Yes. This is weird. It's probably a bug in clang-format. I'll revert it.

flang/runtime/derived.cpp
168 ↗(On Diff #472776)

Agreed. I'll revert it.

This revision was automatically updated to reflect the committed changes.