llvm-project/clang/lib/AST/Interp/InterpShared.h
Timm Bäder 8c5e9cf737 [clang][Interp] Implement nullability argument checking
Implement constexpr checking for null pointers being passed to
arguments annotated as nonnull.
2024-02-26 06:19:25 +01:00

27 lines
749 B
C++

//===--- InterpShared.h -----------------------------------------*- 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
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_LIB_AST_INTERP_SHARED_H
#define LLVM_CLANG_LIB_AST_INTERP_SHARED_H
#include "llvm/ADT/BitVector.h"
namespace clang {
class FunctionDecl;
class Expr;
namespace interp {
llvm::BitVector collectNonNullArgs(const FunctionDecl *F,
const llvm::ArrayRef<const Expr *> &Args);
} // namespace interp
} // namespace clang
#endif