Skip to content

Commit

Permalink
remove lambda from the func name
Browse files Browse the repository at this point in the history
  • Loading branch information
delimbetov committed Jul 1, 2024
1 parent dd914d1 commit bde2c60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/lib/Sema/Metafunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ bool isAccessible(Sema &S, DeclContext *AccessDC, NamedDecl *D) {
return Result;
}

static bool isFunctionOrLambdaNoexcept(const QualType QT) {
static bool isFunctionOrMethodNoexcept(const QualType QT) {
const Type* T = QT.getTypePtr();

if (T->isFunctionProtoType()) {
Expand Down Expand Up @@ -2688,13 +2688,13 @@ bool is_noexcept(APValue &Result, Sema &S, EvalFn Evaluator, QualType ResultTy,
return SetAndSucceed(Result, makeBool(S.Context, false));
case ReflectionValue::RK_type: {
const QualType QT = R.getReflectedType();
const auto result = isFunctionOrLambdaNoexcept(QT);
const auto result = isFunctionOrMethodNoexcept(QT);

return SetAndSucceed(Result, makeBool(S.Context, result));
}
case ReflectionValue::RK_declaration: {
const ValueDecl *D = R.getReflectedDecl();
const auto result = isFunctionOrLambdaNoexcept(D->getType());
const auto result = isFunctionOrMethodNoexcept(D->getType());

return SetAndSucceed(Result, makeBool(S.Context, result));
}
Expand Down

0 comments on commit bde2c60

Please sign in to comment.