[all-commits] [llvm/llvm-project] 0ef289: [clang-format][NFC] Clean up nullptr comparison style

Owen via All-commits all-commits at lists.llvm.org
Tue Feb 21 02:56:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ef289e5b24b531d920894f909fe31b0444409f1
      https://github.com/llvm/llvm-project/commit/0ef289e5b24b531d920894f909fe31b0444409f1
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M clang/lib/Format/AffectedRangeManager.cpp
    M clang/lib/Format/ContinuationIndenter.cpp
    M clang/lib/Format/Format.cpp
    M clang/lib/Format/FormatToken.cpp
    M clang/lib/Format/FormatToken.h
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/lib/Format/UnwrappedLineFormatter.cpp
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/lib/Format/WhitespaceManager.cpp
    M clang/lib/Format/WhitespaceManager.h

  Log Message:
  -----------
  [clang-format][NFC] Clean up nullptr comparison style

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

Differential Revision: https://reviews.llvm.org/D144355




More information about the All-commits mailing list