[PATCH] D121756: [clang-format] Clean up code looking for if statements

sstwcw via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 15 16:29:49 PDT 2022


sstwcw created this revision.
sstwcw added a reviewer: clang-format.
sstwcw added a project: clang-format.
Herald added a project: All.
sstwcw requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Previously several places had code to determine whether the line is an
if / while / for statement.  This commit replaces them with a function
call.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121756

Files:
  clang/lib/Format/ContinuationIndenter.cpp
  clang/lib/Format/FormatToken.h
  clang/lib/Format/TokenAnnotator.cpp
  clang/lib/Format/UnwrappedLineParser.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121756.415629.patch
Type: text/x-patch
Size: 11190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220315/80532394/attachment.bin>


More information about the cfe-commits mailing list