New option SpacesInSquareBrackets.
Before:
int a[5]; a[3] += 42;
After:
int a[ 5 ]; a[ 3 ] += 42;
Fix LLVM bug #17887 (http://llvm.org/bugs/show_bug.cgi?id=17887).
Paths
| Differential D4944
[clang-format] Add SpacesInSquareBrackets option. Fix LLVM bug #17887. ClosedPublic Authored by curdeius on Aug 17 2014, 10:43 AM.
Details
Summary New option SpacesInSquareBrackets. Before: int a[5]; a[3] += 42; After: int a[ 5 ]; a[ 3 ] += 42; Fix LLVM bug #17887 (http://llvm.org/bugs/show_bug.cgi?id=17887).
Diff Detail Event TimelineThis revision is now accepted and ready to land.Aug 18 2014, 11:51 AM Comment Actions Can you please land this patch? Thanks! Marek KurdejPh.D. candidate 2014-08-18 20:51 GMT+02:00 Daniel Jasper <djasper@google.com>:
Revision Contents
Diff 12589 include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp
|