[all-commits] [llvm/llvm-project] 81793b: [clang-format] Assert Line->First and State.NextTo...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Mon Jan 24 00:37:40 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81793bd276afefea0e525307676181478fc614c9
      https://github.com/llvm/llvm-project/commit/81793bd276afefea0e525307676181478fc614c9
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    M clang/lib/Format/ContinuationIndenter.cpp
    M clang/lib/Format/FormatToken.cpp

  Log Message:
  -----------
  [clang-format] Assert Line->First and State.NextToken->Previous. NFC.

Cf. scan-build reports:
* https://llvm.org/reports/scan-build/report-FormatToken.cpp-precomputeFormattingInfos-35-93e1e1.html#EndPath
* https://llvm.org/reports/scan-build/report-ContinuationIndenter.cpp-addTokenOnCurrentLine-15-dfdc6d.html#EndPath




More information about the All-commits mailing list