[llvm-bugs] [Bug 35554] New: Java: clang-format doesn't honor BreakBeforeBraces with @interface declarations
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Dec 6 13:18:49 PST 2017
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: unassignedclangbugs at nondot.org
Reporter: chris.a.williams at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171206/8756f287/attachment.html>
More information about the llvm-bugs
mailing list