llvm/clang/include/clang/AST/ASTLambda.h

//===--- ASTLambda.h - Lambda Helper Functions --------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// This file provides some common utility functions for processing
/// Lambda related AST Constructs.
///
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_AST_ASTLAMBDA_H
#define LLVM_CLANG_AST_ASTLAMBDA_H

#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclTemplate.h"

namespace clang {
inline StringRef getLambdaStaticInvokerName() {}
// This function returns true if M is a specialization, a template,
// or a non-generic lambda call operator.
inline bool isLambdaCallOperator(const CXXMethodDecl *MD) {}

inline bool isLambdaCallOperator(const DeclContext *DC) {}

inline bool isLambdaCallWithExplicitObjectParameter(const DeclContext *DC) {}

inline bool isLambdaCallWithImplicitObjectParameter(const DeclContext *DC) {}

inline bool isGenericLambdaCallOperatorSpecialization(const CXXMethodDecl *MD) {}

inline bool isLambdaConversionOperator(CXXConversionDecl *C) {}

inline bool isLambdaConversionOperator(Decl *D) {}

inline bool isGenericLambdaCallOperatorSpecialization(DeclContext *DC) {}

inline bool isGenericLambdaCallOperatorOrStaticInvokerSpecialization(
    const DeclContext *DC) {}

// This returns the parent DeclContext ensuring that the correct
// parent DeclContext is returned for Lambdas
inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) {}

} // clang

#endif