[llvm-bugs] [Bug 35298] New: Provide a way to add spaces inside an initalizer list when formatting
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 14 03:06:03 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35298
Bug ID: 35298
Summary: Provide a way to add spaces inside an initalizer list
when formatting
Product: clang
Version: 5.0
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: hughbellars at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
E.g.
static CapClass vtable = { CustomLineCapTypeAdjustableArrow,
gdip_adjust_arrowcap_setup,
gdip_adjust_arrowcap_clone_cap,
gdip_adjust_arrowcap_destroy,
gdip_adjust_arrowcap_draw };
Formatting this code with clang-format removes the spaces inside the
initializer list:
static CapClass vtable = {CustomLineCapTypeAdjustableArrow,
gdip_adjust_arrowcap_setup,
gdip_adjust_arrowcap_clone_cap,
gdip_adjust_arrowcap_destroy,
gdip_adjust_arrowcap_draw};
Please provide a way (e.g. something like SpacesInSquareBrackets) to provide
the functionality to add spaces inside an initializer list.
--
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/20171114/9117b042/attachment.html>
More information about the llvm-bugs
mailing list