[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 21 00:09:50 PST 2025
================
@@ -11220,6 +11220,333 @@ TEST_F(FormatTest, WrapsTemplateDeclarationsWithComments) {
Style);
}
+TEST_F(FormatTest, BreakBeforeTemplateCloser) {
+ FormatStyle Style = getGoogleStyle(FormatStyle::LK_Cpp);
----------------
owenca wrote:
```suggestion
FormatStyle Style = getLLVMStyle();
EXPECT_EQ(Style.BreakBeforeTemplateCloser, FormatStyle::BBTCS_Never);
```
https://github.com/llvm/llvm-project/pull/118046
More information about the cfe-commits
mailing list