[clang-format] Fix bugs in parsing C++20 module import statements
authorOwen Pan <owenpiano@gmail.com>
Sun, 22 Jan 2023 03:46:41 +0000 (19:46 -0800)
committerOwen Pan <owenpiano@gmail.com>
Mon, 23 Jan 2023 22:35:15 +0000 (14:35 -0800)
commit02fd0020e5771b2850f892712b8fa51d3b98e270
tree21b19db0d5d1f20a4cadb3036da05abab9f68058
parent35912ad39d8a0f244f36d24526ec70b8b028a6e0
[clang-format] Fix bugs in parsing C++20 module import statements

Also fixes #60145.

Differential Revision: https://reviews.llvm.org/D142296
clang/lib/Format/UnwrappedLineParser.cpp
clang/lib/Format/UnwrappedLineParser.h
clang/unittests/Format/FormatTest.cpp