[PATCH] D144355: [clang-format][NFC] Clean up nullptr comparison style

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 19 16:24:02 PST 2023


owenpan created this revision.
owenpan added reviewers: MyDeveloperDay, HazardyKnusperkeks, rymiel.
owenpan added a project: clang-format.
Herald added a project: All.
owenpan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

For example, use `Next` instead of `Next != nullptr`, and `!Next` instead of `Next == nullptr`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144355

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144355.498701.patch
Type: text/x-patch
Size: 11633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230220/5c884b1b/attachment.bin>


More information about the cfe-commits mailing list