[all-commits] [llvm/llvm-project] 56313f: [clang-format] Put peekNextToken(/*SkipComment=*/t...

Owen via All-commits all-commits at lists.llvm.org
Tue Jan 24 18:40:29 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56313f65cce71366fdc659d1d08e0eeaa5d40b63
      https://github.com/llvm/llvm-project/commit/56313f65cce71366fdc659d1d08e0eeaa5d40b63
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2023-01-24 (Tue, 24 Jan 2023)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Put peekNextToken(/*SkipComment=*/true) to good use

To prevent potential bugs in situations where we want to peek the next
non-comment token.

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




More information about the All-commits mailing list