[all-commits] [llvm/llvm-project] f44eaf: [clang][HeuristicResolver] Resolve explicit object...
Mythreya Kuricheti via All-commits
all-commits at lists.llvm.org
Tue Aug 26 20:55:11 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f44eaf47dc1357959d14cbf5f278c82e554689b2
https://github.com/llvm/llvm-project/commit/f44eaf47dc1357959d14cbf5f278c82e554689b2
Author: Mythreya Kuricheti <git at mythreya.dev>
Date: 2025-08-26 (Tue, 26 Aug 2025)
Changed paths:
M clang-tools-extra/clangd/unittests/RenameTests.cpp
M clang/lib/Sema/HeuristicResolver.cpp
M clang/unittests/Sema/HeuristicResolverTest.cpp
Log Message:
-----------
[clang][HeuristicResolver] Resolve explicit object parameter to enclosing record type (#155143)
Heuristically resolve the type of a `this auto` parameter to the record type
in the declaration.
```cpp
struct Foo {
int member {};
auto&& getter1(this auto&& self) { // assume `self` is is `Foo`
return self.member;
};
```
Fixes https://github.com/clangd/clangd/issues/2323
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