#include "clang/Sema/SemaBPF.h"
#include "clang/AST/Decl.h"
#include "clang/AST/Type.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Basic/TargetBuiltins.h"
#include "clang/Sema/ParsedAttr.h"
#include "clang/Sema/Sema.h"
#include "llvm/ADT/APSInt.h"
#include <optional>
namespace clang {
SemaBPF::SemaBPF(Sema &S) : … { … }
static bool isValidPreserveFieldInfoArg(Expr *Arg) { … }
static bool isValidPreserveTypeInfoArg(Expr *Arg) { … }
static bool isValidPreserveEnumValueArg(Expr *Arg) { … }
bool SemaBPF::CheckBPFBuiltinFunctionCall(unsigned BuiltinID,
CallExpr *TheCall) { … }
void SemaBPF::handlePreserveAIRecord(RecordDecl *RD) { … }
void SemaBPF::handlePreserveAccessIndexAttr(Decl *D, const ParsedAttr &AL) { … }
}