clang 22.0.0git
ASTUtils.cpp File Reference
#include "ASTUtils.h"
#include "PtrTypesSemantics.h"
#include "clang/AST/Attr.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/ExprObjC.h"
#include "clang/AST/StmtVisitor.h"
#include <optional>

Go to the source code of this file.

Classes

class  clang::EnsureFunctionVisitor

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.

Functions

bool clang::isSafePtr (clang::CXXRecordDecl *Decl)
bool clang::tryToFindPtrOrigin (const clang::Expr *E, bool StopAtFirstRefCountedObj, std::function< bool(const clang::CXXRecordDecl *)> isSafePtr, std::function< bool(const clang::QualType)> isSafePtrType, std::function< bool(const clang::Expr *, bool)> callback)
 This function de-facto defines a set of transformations that we consider safe (in heuristical sense).
bool clang::isASafeCallArg (const clang::Expr *E)
 For E referring to a ref-countable/-counted pointer/reference we return whether it's a safe call argument.
bool clang::isNullPtr (const clang::Expr *E)
bool clang::isConstOwnerPtrMemberExpr (const clang::Expr *E)
bool clang::isExprToGetCheckedPtrCapableMember (const clang::Expr *E)