[llvm-bugs] [Bug 30353] New: unwanted line break after variable definition using macro in type name
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 12 07:08:06 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30353
Bug ID: 30353
Summary: unwanted line break after variable definition using
macro in type name
Product: clang
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: michael+llvm at stapelberg.de
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
My input file is:
struct foo {
int bar;
TAILQ_ENTRY(a) bleh;
};
The resulting output is:
$ clang-format --version
clang-format version 3.8.0 (tags/RELEASE_380/final)
$ clang-format -style="{BasedOnStyle: google, ColumnLimit: 0}" input.c
struct foo {
int bar;
TAILQ_ENTRY(a)
bleh;
};
The expected output is: no line break changes.
This used to work with clang-format 3.6 and changed with clang-format 3.7.
I’m using ColumnLimit: 0 to not limit line length (e.g. for function
definitions or string literals).
In case it’s in any way relevant, the project in question is
https://github.com/i3/i3
Could you please explain how I could achieve the intended behavior with
clang-format ≥ 3.7 in case this isn’t a bug? Thanks!
--
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/20160912/6ca8940a/attachment.html>
More information about the llvm-bugs
mailing list