[all-commits] [llvm/llvm-project] 68427b: [C++20] [Modules] Support generating in-class defi...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Tue Mar 4 18:32:41 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 68427bc8d808a8f70ed345278fc498a1e0b5a8d2
https://github.com/llvm/llvm-project/commit/68427bc8d808a8f70ed345278fc498a1e0b5a8d2
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2025-03-05 (Wed, 05 Mar 2025)
Changed paths:
M clang/lib/Parse/ParseCXXInlineMethods.cpp
A clang/test/Modules/try-func-body.cppm
Log Message:
-----------
[C++20] [Modules] Support generating in-class defined function with try-catch body (#129212)
See the example:
```
export module func;
class C {
public:
void member() try {
} catch (...) {
}
};
```
We woudln't generate the definition for `C::member` but we should. Since
the function is non-inline in modules.
This turns out to be an oversight in parser to me. Since the try-catch
body is relatively rare, so maybe we just forgot it.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list