[llvm-bugs] [Bug 37175] New: AlignConsecutiveDeclarations=true inconsistently formats function declaration
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 19 03:36:41 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37175
Bug ID: 37175
Summary: AlignConsecutiveDeclarations=true inconsistently
formats function declaration
Product: clang
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: vlad.bespalov at jetstreamsoft.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
$ clang-format --version
clang-format version 6.0.0 (tags/RELEASE_600/final)
sample to be formatted:
-----
#include <stdint.h>
#define DECOR extern _cdecl
DECOR uint32_t function1 (int arg1, int arg2) { return 1U; }
DECOR unsigned function2 (int arg1, int arg2) { return 1U; }
-----
format style:
-----
BasedOnStyle: Mozilla
AlignConsecutiveDeclarations: true
-----
format result:
-----
#include <stdint.h>
#define DECOR extern _cdecl
DECOR uint32_t
function1(int arg1, int arg2)
{
return 1U;
}
DECOR unsigned
function2(int arg1, int arg2)
{
return 1U;
}
-----
expected result:
both function1 and function2 are left-aligned with DECOR:
-----
DECOR uint32_t
function1(int arg1, int arg2)
-----
--
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/20180419/99f7431b/attachment.html>
More information about the llvm-bugs
mailing list