[PATCH] D42727: [clang-format] Adds space around angle brackets in text protos

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 31 02:20:43 PST 2018


krasimir created this revision.
krasimir added a reviewer: djasper.
Herald added subscribers: cfe-commits, klimek.

This patch adds spaces around angle brackets in text proto Google style.
Previously these were detected as template openers and closers, which happened
to have the expected effect. Now we detect them as scope openers and closers
similarly to the way braces are handled in this context.


Repository:
  rC Clang

https://reviews.llvm.org/D42727

Files:
  lib/Format/ContinuationIndenter.cpp
  lib/Format/FormatToken.h
  lib/Format/TokenAnnotator.cpp
  unittests/Format/FormatTestRawStrings.cpp
  unittests/Format/FormatTestTextProto.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42727.132119.patch
Type: text/x-patch
Size: 14090 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180131/f5b79cdc/attachment-0001.bin>


More information about the cfe-commits mailing list