[clang-format][NFC] Use isComment() in setCommentLineLevels()
authorowenca <owenpiano@gmail.com>
Thu, 21 Apr 2022 23:46:07 +0000 (16:46 -0700)
committerowenca <owenpiano@gmail.com>
Fri, 22 Apr 2022 16:21:28 +0000 (09:21 -0700)
commitc9e7eec7bc41e9cb86e01acd5c91faa5c9ee0bf1
treeaefcdcfc655a7e247f9d62680ffe927d15df1531
parentd6dab38ae48a298b671107c9ebdd86de8f7cd482
[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
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/UnwrappedLineParser.cpp