[llvm-bugs] [Bug 34016] New: Missing enter before bracket in typedef enum and extern
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 31 23:58:06 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34016
Bug ID: 34016
Summary: Missing enter before bracket in typedef enum and
extern
Product: clang
Version: 4.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: bubyofficial at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Clang-format configuration:
BreakBeforeBraces: Custom
BraceWrapping: { AfterClass: true, AfterControlStatement: true, AfterEnum:
true, AfterFunction: true, AfterNamespace: false, AfterStruct: true,
AfterUnion: true, BeforeCatch: true, BeforeElse: true }
Formatted part of code:
// BEFORE
typedef enum
{
a,
b,
c
} SomeEnum;
extern "C"
{
#include <SomeInclude.h>
}
// AFTER
typedef enum {
a,
b,
c
} SomeEnum;
extern "C" {
#include <SomeInclude.h>
}
Is there a way, to move the bracket to next line? Is this a bug? I tried almost
all values of BreakBeforeBraces property, and I couldn't get desired effect.
--
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/20170801/d69a7942/attachment.html>
More information about the llvm-bugs
mailing list