[PATCH] D60320: [clang-format]: Add option to insert space after locical not operator
Reuben Thomas via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 5 08:42:18 PDT 2019
reuk created this revision.
reuk added reviewers: MyDeveloperDay, klimek.
reuk added a project: clang-tools-extra.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This patch aims to support the following rule from the Juce coding standards <https://juce.com/discover/stories/coding-standards>:
> The ! operator should always be followed by a space, e.g. if (! foo)
Leaving a space after `!` stops it from blending into the rest of the expression, which makes it easier to tell at a glance what the expression is doing.
Patch by Reuben Thomas
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D60320
Files:
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60320.193887.patch
Type: text/x-patch
Size: 4044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190405/f9007c5d/attachment-0001.bin>
More information about the cfe-commits
mailing list