================ @@ -11727,6 +11727,13 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { " void func(type &a) { a & member; }\n" " anotherType &member;\n" "}"); + + Style.ReferenceAlignment = FormatStyle::RAS_Left; + verifyFormat("class Foo {\n" + " void operator<(Foo&) {}\n" + " Foo& f;\n" + "};", + Style); ---------------- owenca wrote:
Consider remove this test. The one in `UnderstandsUsesOfStarAndAmp` of `UnderstandsUsesOfStarAndAmp` is enough. https://github.com/llvm/llvm-project/pull/75144 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits