[clang] [clang] Accept lambdas in C++03 as an extensions (PR #73376)
Nikolas Klauser via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 31 18:04:19 PST 2024
================
@@ -1526,10 +1526,9 @@ bool CXXRecordDecl::isGenericLambda() const {
#ifndef NDEBUG
static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) {
- for (auto *D : R)
- if (!declaresSameEntity(D, R.front()))
- return false;
- return true;
+ return llvm::all_of(R, [&](NamedDecl *D) {
+ return D->isInvalidDecl() || declaresSameEntity(D, R.front());
----------------
philnik777 wrote:
See #74110.
https://github.com/llvm/llvm-project/pull/73376
More information about the cfe-commits
mailing list