#include "clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h"
#include "clang/AST/Decl.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
#include "llvm/ADT/ArrayRef.h"
#include <iterator>
#include <optional>
usingnamespacellvm;
usingnamespaceclang;
MaybeCount;
static MaybeCount readRequiredParams(MaybeCount RequiredArgs,
MaybeCount RequiredParams) { … }
ento::CallDescription::CallDescription(Mode MatchAs,
ArrayRef<StringRef> QualifiedName,
MaybeCount RequiredArgs ,
MaybeCount RequiredParams )
: … { … }
bool ento::CallDescription::matches(const CallEvent &Call) const { … }
bool ento::CallDescription::matchesAsWritten(const CallExpr &CE) const { … }
bool ento::CallDescription::matchNameOnly(const NamedDecl *ND) const { … }
bool ento::CallDescription::matchQualifiedNameParts(const Decl *D) const { … }
bool ento::CallDescription::matchesImpl(const FunctionDecl *FD, size_t ArgCount,
size_t ParamCount) const { … }
ento::CallDescriptionSet::CallDescriptionSet(
std::initializer_list<CallDescription> &&List) { … }
bool ento::CallDescriptionSet::contains(const CallEvent &Call) const { … }
bool ento::CallDescriptionSet::containsAsWritten(const CallExpr &CE) const { … }