[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-08 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/110446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-08 Thread via cfe-commits
@@ -644,8 +646,8 @@ New features if class of allocation and deallocation function mismatches. `Documentation `__. -- Function effects, e.g. the ``nonblocking`` and ``nonallocating`` "perfo

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-08 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/110446 >From a61f3e94d0636f4294f3be440d79b83889771800 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Mon, 30 Sep 2024 02:58:31 +0200 Subject: [PATCH 1/3] [Clang] Instantiate the correct lambda call operator --- clang

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-08 Thread via cfe-commits
@@ -644,8 +646,8 @@ New features if class of allocation and deallocation function mismatches. `Documentation `__. -- Function effects, e.g. the ``nonblocking`` and ``nonallocating`` "perfo

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-08 Thread Chuanqi Xu via cfe-commits
@@ -644,8 +646,8 @@ New features if class of allocation and deallocation function mismatches. `Documentation `__. -- Function effects, e.g. the ``nonblocking`` and ``nonallocating`` "perfo

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-08 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/110446 >From a61f3e94d0636f4294f3be440d79b83889771800 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Mon, 30 Sep 2024 02:58:31 +0200 Subject: [PATCH 1/3] [Clang] Instantiate the correct lambda call operator --- clang

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-07 Thread Chuanqi Xu via cfe-commits
@@ -1631,13 +1631,39 @@ static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) { static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { if (!RD.isLambda()) return nullptr; DeclarationName Name = -RD.getASTContext().DeclarationName

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-07 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. Thanks. LGTM with nits. https://github.com/llvm/llvm-project/pull/110446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-07 Thread Chuanqi Xu via cfe-commits
@@ -1631,13 +1631,39 @@ static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) { static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { if (!RD.isLambda()) return nullptr; DeclarationName Name = -RD.getASTContext().DeclarationName

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-07 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/110446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-30 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/110446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-30 Thread via cfe-commits
@@ -1631,9 +1631,32 @@ static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) { static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { if (!RD.isLambda()) return nullptr; DeclarationName Name = -RD.getASTContext().DeclarationNames

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-30 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/110446 >From a61f3e94d0636f4294f3be440d79b83889771800 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Mon, 30 Sep 2024 02:58:31 +0200 Subject: [PATCH 1/2] [Clang] Instantiate the correct lambda call operator --- clang

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-30 Thread via cfe-commits
@@ -1631,9 +1631,32 @@ static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) { static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { if (!RD.isLambda()) return nullptr; DeclarationName Name = -RD.getASTContext().DeclarationNames

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-29 Thread Chuanqi Xu via cfe-commits
@@ -1631,9 +1631,32 @@ static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) { static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { if (!RD.isLambda()) return nullptr; DeclarationName Name = -RD.getASTContext().DeclarationNames

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-29 Thread via cfe-commits
@@ -1631,9 +1631,32 @@ static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) { static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { if (!RD.isLambda()) return nullptr; DeclarationName Name = -RD.getASTContext().DeclarationNames

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-29 Thread Chuanqi Xu via cfe-commits
@@ -1631,9 +1631,32 @@ static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) { static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { if (!RD.isLambda()) return nullptr; DeclarationName Name = -RD.getASTContext().DeclarationNames

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-29 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/110446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-29 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: Thanks for the analysis! Further more, if we want to fix such issue better, may be we need to refactor the current `lookup` method into a version that understands modules, then we can do better lookup with modules. This is helpful for https://github.co

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: None (Sirraide) Changes See issue #110401. This is a very tentative fix for the following issue: when a lambda’s class type is merged across modules (e.g. because it is defined in a template in the GMF of some module `A`, and som

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-09-29 Thread via cfe-commits
https://github.com/Sirraide created https://github.com/llvm/llvm-project/pull/110446 See issue #110401. This is a very tentative fix for the following issue: when a lambda’s class type is merged across modules (e.g. because it is defined in a template in the GMF of some module `A`, and some o