[all-commits] [llvm/llvm-project] c9e7ee: [clang-format][NFC] Use isComment() in setCommentL...

Owen via All-commits all-commits at lists.llvm.org
Fri Apr 22 09:21:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c9e7eec7bc41e9cb86e01acd5c91faa5c9ee0bf1
      https://github.com/llvm/llvm-project/commit/c9e7eec7bc41e9cb86e01acd5c91faa5c9ee0bf1
  Author: owenca <owenpiano at gmail.com>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/lib/Format/UnwrappedLineParser.cpp

  Log Message:
  -----------
  [clang-format][NFC] Use isComment() in setCommentLineLevels()

Also replace an unnecessary check with assert() in the unwrapped
line parser.

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




More information about the All-commits mailing list