This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] ensure clang-format command-line argument sets up the default left/right qualifier ordering
ClosedPublic

Authored by MyDeveloperDay on Sep 23 2021, 12:34 PM.

Details

Summary

When specifying the alignment direction on the command line ensure we set up the default ordering.
Fix spelling mistakes in the command-line argument

Diff Detail

Event Timeline

MyDeveloperDay requested review of this revision.Sep 23 2021, 12:34 PM
MyDeveloperDay created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2021, 12:34 PM

Allow passing of desired qualifier order on the command line

clang-format --qualifier-alignment="const static type volatile" test_file.cpp
MyDeveloperDay retitled this revision from [clang-format] [NFC] ensure clang-format command-line argument sets up the default left/right qualifier ordering to [clang-format] ensure clang-format command-line argument sets up the default left/right qualifier ordering.Sep 23 2021, 1:00 PM

Rename the ConstAlignment variable

Just fix what clang-format tells you to. :)

This revision is now accepted and ready to land.Sep 23 2021, 9:05 PM
This revision was landed with ongoing or failed builds.Sep 24 2021, 12:12 AM
This revision was automatically updated to reflect the committed changes.