================ @@ -26492,6 +26492,10 @@ TEST_F(FormatTest, BreakAfterAttributes) { verifyFormat("[[nodiscard]]\n" "Foo& operator-(Foo&);", Style); + + verifyFormat("[[maybe_unused]]\n" + "foo<int> f;", + Style); ---------------- owenca wrote:
Please move it up and insert it into `Code`: ``` constexpr StringRef Code("[[maybe_unused]] const int i;\n" "[[foo([[]])]] [[maybe_unused]]\n" "int j;\n" "[[maybe_unused]]\n" "foo<int> k;\n" "[[nodiscard]] inline int f(int &i);\n" ``` and update the test cases for `ABS_Never` and `ABS_Always`. https://github.com/llvm/llvm-project/pull/76336 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits