[PATCH] D52150: [clang-format] BeforeHash added to IndentPPDirectives

Tolga Mizrak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 16 15:35:05 PDT 2018


to-miz updated this revision to Diff 165700.
to-miz added a comment.

PPBranchLevel can be negative, while Line->Level is unsigned. Added check to ensure that PPBranchLevel is positive before adding to Line->Level.


https://reviews.llvm.org/D52150

Files:
  docs/ClangFormatStyleOptions.rst
  include/clang/Format/Format.h
  lib/Format/Format.cpp
  lib/Format/TokenAnnotator.cpp
  lib/Format/UnwrappedLineFormatter.cpp
  lib/Format/UnwrappedLineParser.cpp
  unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52150.165700.patch
Type: text/x-patch
Size: 17531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180916/12876bbb/attachment.bin>


More information about the cfe-commits mailing list