https://bugs.llvm.org/show_bug.cgi?id=35554

            Bug ID: 35554
           Summary: Java: clang-format doesn't honor BreakBeforeBraces
                    with @interface declarations
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: chris.a.willi...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

Related to #21456.

If defining annotations in Java, we use the @interface keyword designation.
Ideally it would treated similarly to class/interface declarations and would
honor the BreakBeforeBraces setting. However it always uses an Attach style
brace

@Documented
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.FIELD)
public static @interface property
{
}

with BreakBeforeBraces: Allman still produces

@Documented
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.FIELD)
public static @interface property {
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to