This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Honour "// clang-format off" when using QualifierOrder.
ClosedPublic

Authored by curdeius on Feb 8 2022, 12:38 AM.

Diff Detail

Event Timeline

curdeius requested review of this revision.Feb 8 2022, 12:38 AM
curdeius created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2022, 12:38 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Let's me wonder if it was respected in the block separator...

clang/unittests/Format/QualifierFixerTest.cpp
879

Shouldn't this be sorted?

curdeius marked an inline comment as done.Feb 8 2022, 3:31 AM
curdeius added inline comments.
clang/unittests/Format/QualifierFixerTest.cpp
875

It's sorted here.

879

This is input code, not the expected result.

curdeius marked an inline comment as done.Feb 8 2022, 3:32 AM
MyDeveloperDay accepted this revision.Feb 8 2022, 4:04 AM

Perfect thank you

This revision is now accepted and ready to land.Feb 8 2022, 4:04 AM
HazardyKnusperkeks added inline comments.
clang/unittests/Format/QualifierFixerTest.cpp
879

I've not seen the comma, I thought there is only 1 string.

owenpan accepted this revision.Feb 8 2022, 4:57 PM