For cases of defining friend functions, qualifier ordering can allow multiple
positions for the 'friend' token.
c++ struct S { int i; friend constexpr auto operator<=>(const S&, const S&) noexcept = default; };
- Changes
- Adds friend to getTokenFromQualifier
- Updates documentation in Format.h and ClangFormatStyleOptions.rst
- Adds tests to QualifierFixerTest.cpp
Testing
Ran FormatTest with no errors.