[all-commits] [llvm/llvm-project] 521c61: [libc++][NFC] Run clang-format on strstream.cpp

DanielMcIntosh via All-commits all-commits at lists.llvm.org
Fri Sep 8 05:50:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 521c6117f66c9cb1fcdd998ff2ae95d7faa0fa64
      https://github.com/llvm/llvm-project/commit/521c6117f66c9cb1fcdd998ff2ae95d7faa0fa64
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M libcxx/src/strstream.cpp
    M libcxx/utils/data/ignore_format.txt

  Log Message:
  -----------
  [libc++][NFC] Run clang-format on strstream.cpp

I'm about to land https://reviews.llvm.org/D112956 which touches many
lines in that file anyway, so we might as well clang-format it first.


  Commit: 61cecf641f5b3a17a61a6badf069964d9f72db08
      https://github.com/llvm/llvm-project/commit/61cecf641f5b3a17a61a6badf069964d9f72db08
  Author: Daniel McIntosh <Daniel.McIntosh at ibm.com>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M libcxx/src/strstream.cpp

  Log Message:
  -----------
  [libc++][NFC] tidy up strstreambuf::seekoff and strstreambuf::seekpos

Should be the same logic, but hopefully easier to read this way. Gets
rid of some superfluous state variables, and uses early returns.

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


Compare: https://github.com/llvm/llvm-project/compare/74971db14076...61cecf641f5b


More information about the All-commits mailing list