[clang-format] Fix a crash due to dereferencing null MatchingParen
authorOwen Pan <owenpiano@gmail.com>
Sun, 20 Nov 2022 03:04:24 +0000 (19:04 -0800)
committerOwen Pan <owenpiano@gmail.com>
Mon, 21 Nov 2022 20:33:51 +0000 (12:33 -0800)
commit4daeb8c7335439e2ab43d66acfed087c417a7314
tree334fbcf7cbfaf4d9a0d724ce8d80c40306833f39
parentba87147881c8f6592aea0cbdb22d0028e78b30d8
[clang-format] Fix a crash due to dereferencing null MatchingParen

Fixes #59089.

Differential Revision: https://reviews.llvm.org/D138371
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp