[C++20] [Coroutines] Handle function-try-block in SemaCoroutine
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Thu, 6 Apr 2023 07:10:24 +0000 (15:10 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Thu, 6 Apr 2023 07:11:34 +0000 (15:11 +0800)
commit616c8067071316a9e17524b14b3ab0e04a511e71
treedcd18af86e3f5e94c500dbfe4fc26cc58f4f5915
parentcf9f1a82036cbcbc6c6aaad86ebd5b42e3dda8c3
[C++20] [Coroutines] Handle function-try-block in SemaCoroutine

In https://reviews.llvm.org/D146758, we handled the rare case that the
coroutine has a function-try-block. But it will be better to handle it
in the Sema part. This patch handles the preprocess.
clang/include/clang/AST/StmtCXX.h
clang/lib/CodeGen/CGCoroutine.cpp
clang/lib/Sema/SemaCoroutine.cpp
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp