Also fixes the documentation for SpaceBeforeAssignmentOperators.
See the discussion here.
Paths
| Differential D66384
[clang-format] Fix a bug that joins template closer and = ClosedPublic Authored by owenpan on Aug 17 2019, 5:34 PM.
Details
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 18 2019, 2:18 AM Comment Actions LGTM too, although I would still question whether Style.SpaceBeforeAssignmentOperators is providing anyone any benefit at all.
Comment Actions
See here for the patch. I don't know why the option was added but think it's probably outdated and should be deprecated. Closed by commit rL369214: [clang-format] Fix a bug that joins template closer and = (authored by owenpan). · Explain WhyAug 18 2019, 11:50 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 215763 clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
|
Actually, could you add a test case specifically for the troublesome enable_if_t pattern? Just in case any future option treats default-template-arguments any differently from assignment-statements, whitespace-wise.