[llvm-bugs] [Bug 50999] New: [clang-format] AlwaysBreakAfterReturnType does not work with K&R C function definitions
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 6 13:48:54 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50999
Bug ID: 50999
Summary: [clang-format] AlwaysBreakAfterReturnType does not
work with K&R C function definitions
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: owenpiano at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
.clang-format:
BasedOnStyle: LLVM
AllowShortFunctionsOnASingleLine: None
AlwaysBreakAfterReturnType: AllDefinitions
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
test.c:
int add(a, b)
{
return a + b;
}
clang-format doesn't put the return type `int` on its own line.
--
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/20210706/1c61e62e/attachment.html>
More information about the llvm-bugs
mailing list