[llvm-bugs] [Bug 35300] New: Add a an option like SpaceBeforeParens but before indexers/square brackets
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 14 03:12:44 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35300
Bug ID: 35300
Summary: Add a an option like SpaceBeforeParens but before
indexers/square brackets
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. The Mono coding guidelines say to put a spsce before '[' in an indexer
int main() {
static int x[] = {1, 2, 3};
return x [0];
}
The code above gets formatted to:
int main() {
static int x[] = {1, 2, 3};
return x[0];
}
Notice that the space is missing in `x [0]`
Ideally this would not apply to declarations, but I guess this could be
controlled with an enum option
--
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/c13f64bb/attachment.html>
More information about the llvm-bugs
mailing list