|
clang 23.0.0git
|
#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Sema/SemaLifetimeSafety.h"
Public Member Functions | |
| LifetimeSafetySemaHelperImpl (Sema &S) | |
| void | reportUseAfterScope (const Expr *IssueExpr, const Expr *UseExpr, const Expr *MovedExpr, SourceLocation FreeLoc) override |
| void | reportUseAfterReturn (const Expr *IssueExpr, const Expr *ReturnExpr, const Expr *MovedExpr, SourceLocation ExpiryLoc) override |
| void | reportDanglingField (const Expr *IssueExpr, const FieldDecl *DanglingField, const Expr *MovedExpr, SourceLocation ExpiryLoc) override |
| void | reportDanglingGlobal (const Expr *IssueExpr, const VarDecl *DanglingGlobal, const Expr *MovedExpr, SourceLocation ExpiryLoc) override |
| void | reportUseAfterInvalidation (const Expr *IssueExpr, const Expr *UseExpr, const Expr *InvalidationExpr) override |
| void | reportUseAfterInvalidation (const ParmVarDecl *PVD, const Expr *UseExpr, const Expr *InvalidationExpr) override |
| void | reportInvalidatedField (const Expr *IssueExpr, const FieldDecl *DanglingField, const Expr *InvalidationExpr) override |
| void | reportInvalidatedField (const ParmVarDecl *PVD, const FieldDecl *DanglingField, const Expr *InvalidationExpr) override |
| void | reportInvalidatedGlobal (const Expr *IssueExpr, const VarDecl *DanglingGlobal, const Expr *InvalidationExpr) override |
| void | reportInvalidatedGlobal (const ParmVarDecl *PVD, const VarDecl *DanglingGlobal, const Expr *InvalidationExpr) override |
| void | suggestLifetimeboundToParmVar (WarningScope Scope, const ParmVarDecl *ParmToAnnotate, EscapingTarget Target) override |
| void | reportLifetimeboundViolation (const ParmVarDecl *ParmWithLifetimebound) override |
| void | reportLifetimeboundViolation (const CXXMethodDecl *MDWithLifetimebound) override |
| void | reportMisplacedLifetimebound (WarningScope Scope, const CXXMethodDecl *FDef, const CXXMethodDecl *FDecl) override |
| void | reportMisplacedLifetimebound (WarningScope Scope, const ParmVarDecl *PVDDef, const ParmVarDecl *PVDDecl) override |
| void | suggestLifetimeboundToImplicitThis (WarningScope Scope, const CXXMethodDecl *MD, const Expr *EscapeExpr) override |
| void | reportNoescapeViolation (const ParmVarDecl *ParmWithNoescape, const Expr *EscapeExpr) override |
| void | reportNoescapeViolation (const ParmVarDecl *ParmWithNoescape, const FieldDecl *EscapeField) override |
| void | reportNoescapeViolation (const ParmVarDecl *ParmWithNoescape, const VarDecl *EscapeGlobal) override |
| void | addLifetimeBoundToImplicitThis (const CXXMethodDecl *MD) override |
| Public Member Functions inherited from clang::lifetimes::LifetimeSafetySemaHelper | |
| LifetimeSafetySemaHelper ()=default | |
| virtual | ~LifetimeSafetySemaHelper ()=default |
Additional Inherited Members | |
| Public Types inherited from clang::lifetimes::LifetimeSafetySemaHelper | |
| using | EscapingTarget |
Definition at line 51 of file SemaLifetimeSafety.h.
|
inline |
Definition at line 54 of file SemaLifetimeSafety.h.
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 388 of file SemaLifetimeSafety.h.
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 85 of file SemaLifetimeSafety.h.
References clang::Decl::getEndLoc(), clang::Expr::getExprLoc(), clang::Decl::getLocation(), and clang::Stmt::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 101 of file SemaLifetimeSafety.h.
References clang::Decl::getEndLoc(), clang::Expr::getExprLoc(), clang::Decl::getLocation(), clang::Stmt::getSourceRange(), clang::VarDecl::isStaticDataMember(), and clang::VarDecl::isStaticLocal().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 155 of file SemaLifetimeSafety.h.
References clang::Decl::getEndLoc(), clang::Expr::getExprLoc(), clang::Decl::getLocation(), clang::Stmt::getSourceRange(), and clang::isa().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 171 of file SemaLifetimeSafety.h.
References clang::SourceRange::getBegin(), clang::Decl::getEndLoc(), clang::Expr::getExprLoc(), clang::Decl::getLocation(), clang::ParmVarDecl::getSourceRange(), clang::Stmt::getSourceRange(), and clang::isa().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 187 of file SemaLifetimeSafety.h.
References clang::Decl::getEndLoc(), clang::Expr::getExprLoc(), clang::Decl::getLocation(), clang::Stmt::getSourceRange(), clang::isa(), clang::VarDecl::isStaticDataMember(), and clang::VarDecl::isStaticLocal().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 208 of file SemaLifetimeSafety.h.
References clang::SourceRange::getBegin(), clang::Decl::getEndLoc(), clang::Expr::getExprLoc(), clang::Decl::getLocation(), clang::ParmVarDecl::getSourceRange(), clang::Stmt::getSourceRange(), clang::isa(), clang::VarDecl::isStaticDataMember(), and clang::VarDecl::isStaticLocal().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 275 of file SemaLifetimeSafety.h.
References clang::lifetimes::getImplicitObjectParamLifetimeBoundAttr(), clang::Attr::getLocation(), and clang::AttributeCommonInfo::getRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 265 of file SemaLifetimeSafety.h.
References clang::Decl::getAttr(), clang::Attr::getLocation(), clang::NamedDecl::getName(), and clang::AttributeCommonInfo::getRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 285 of file SemaLifetimeSafety.h.
References clang::lifetimes::CrossTU, clang::lifetimes::getDirectImplicitObjectLifetimeBoundAttr(), clang::Decl::getEndLoc(), clang::Attr::getLocation(), clang::Lexer::getLocForEndOfToken(), and clang::AttributeCommonInfo::getRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 302 of file SemaLifetimeSafety.h.
References clang::lifetimes::CrossTU, clang::Decl::getAttr(), clang::DeclaratorDecl::getBeginLoc(), clang::Attr::getLocation(), clang::AttributeCommonInfo::getRange(), and clang::ParmVarDecl::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 351 of file SemaLifetimeSafety.h.
References clang::DeclaratorDecl::getBeginLoc(), clang::Stmt::getBeginLoc(), clang::ParmVarDecl::getSourceRange(), and clang::Stmt::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 362 of file SemaLifetimeSafety.h.
References clang::DeclaratorDecl::getBeginLoc(), clang::Decl::getEndLoc(), clang::Decl::getLocation(), and clang::ParmVarDecl::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 373 of file SemaLifetimeSafety.h.
References clang::DeclaratorDecl::getBeginLoc(), clang::Decl::getEndLoc(), clang::Decl::getLocation(), clang::ParmVarDecl::getSourceRange(), clang::VarDecl::isStaticDataMember(), and clang::VarDecl::isStaticLocal().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 122 of file SemaLifetimeSafety.h.
References clang::Expr::getExprLoc(), clang::Stmt::getSourceRange(), and clang::isa().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 137 of file SemaLifetimeSafety.h.
References clang::SourceRange::getBegin(), clang::Expr::getExprLoc(), clang::ParmVarDecl::getSourceRange(), clang::Stmt::getSourceRange(), and clang::isa().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 71 of file SemaLifetimeSafety.h.
References clang::Expr::getExprLoc(), and clang::Stmt::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 56 of file SemaLifetimeSafety.h.
References clang::Expr::getExprLoc(), and clang::Stmt::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 318 of file SemaLifetimeSafety.h.
References clang::FixItHint::CreateInsertion(), clang::lifetimes::CrossTU, clang::Lexer::findPreviousToken(), clang::Type::getAs(), clang::Stmt::getBeginLoc(), clang::Lexer::getLocForEndOfToken(), clang::FunctionDecl::getNameInfo(), clang::DeclarationNameInfo::getSourceRange(), clang::Stmt::getSourceRange(), clang::ValueDecl::getType(), clang::TypeSourceInfo::getTypeLoc(), clang::DeclaratorDecl::getTypeSourceInfo(), and clang::FunctionProtoType::hasTrailingReturn().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 229 of file SemaLifetimeSafety.h.
References clang::FixItHint::CreateInsertion(), clang::lifetimes::CrossTU, clang::DeclaratorDecl::getBeginLoc(), clang::Decl::getEndLoc(), clang::NamedDecl::getIdentifier(), clang::Decl::getLocation(), clang::Lexer::getLocForEndOfToken(), clang::ParmVarDecl::getSourceRange(), clang::ParmVarDecl::hasDefaultArg(), and clang::Target.