[clang-format] Add 'friend' to QualifierOrder
authorMicah Weston <micahsweston@gmail.com>
Thu, 22 Dec 2022 09:54:04 +0000 (01:54 -0800)
committerOwen Pan <owenpiano@gmail.com>
Thu, 22 Dec 2022 10:02:09 +0000 (02:02 -0800)
commit4cafc3727b35151e8f676adab11524bb21140939
tree94dbd5cec96705405393cee0561f81670c360e61
parenta107cf0c407f418fafce60539b42114fe68fd737
[clang-format] Add 'friend' to QualifierOrder

For cases of defining friend functions, qualifier ordering can
allow multiple positions for the 'friend' token.

Closes #59450.

Differential Revision: https://reviews.llvm.org/D139801
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/QualifierAlignmentFixer.cpp
clang/unittests/Format/QualifierFixerTest.cpp