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: unassignedclangb...@nondot.org
Reporter: hughbell...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs