================
@@ -5473,6 +5473,10 @@ class Parser : public CodeCompletionHandler {
/// should not be set directly.
bool InMessageExpression;
+ /// While the parameters of a non-static member function are parsed, its
+ /// class, through whose 'this' an attribute on a parameter names a member.
+ CXXRecordDecl *ParamAttrThisRecord = nullptr;
----------------
aaronpuchert wrote:
Do we really need to add state to the parser here? Don't we already track the
parent context somewhere? Also, this seems to be in the section "Objective-C
Constructs", where it doesn't belong.
Without having tested, I assume `getCurrentClass` isn't set because we're not
in a member function body, but I assume `getCurScope` might produce something
useful? We should be able to get the `DeclContext` from that (and thus the
`CXXRecordDecl`).
https://github.com/llvm/llvm-project/pull/241077
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits