|
clang 24.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 UseSite &Use, const Expr *MovedExpr, SourceLocation FreeLoc, llvm::ArrayRef< const Expr * > ExprChain) override |
| void | reportUseAfterReturn (const Expr *IssueExpr, const Expr *ReturnExpr, const Expr *MovedExpr, llvm::ArrayRef< const Expr * > ExprChain) override |
| void | reportDanglingField (const Expr *IssueExpr, const FieldDecl *DanglingField, const Expr *MovedExpr, bool IsCapturedByLambda, SourceLocation ExpiryLoc, llvm::ArrayRef< const Expr * > ExprChain) override |
| void | reportDanglingGlobal (const Expr *IssueExpr, const VarDecl *DanglingGlobal, const Expr *MovedExpr, SourceLocation ExpiryLoc, llvm::ArrayRef< const Expr * > ExprChain, bool IsMain=false) override |
| void | reportUseAfterInvalidation (const Expr *IssueExpr, const UseSite &Use, const Expr *InvalidationExpr, llvm::ArrayRef< const Expr * > ExprChain) override |
| void | reportUseAfterInvalidation (const ParmVarDecl *PVD, const UseSite &Use, const Expr *InvalidationExpr, llvm::ArrayRef< const Expr * > ExprChain) override |
| void | reportInvalidatedField (const Expr *IssueExpr, const FieldDecl *DanglingField, const Expr *InvalidationExpr, llvm::ArrayRef< const Expr * > ExprChain) override |
| void | reportInvalidatedField (const ParmVarDecl *PVD, const FieldDecl *DanglingField, const Expr *InvalidationExpr, llvm::ArrayRef< const Expr * > ExprChain) override |
| void | reportInvalidatedGlobal (const Expr *IssueExpr, const VarDecl *DanglingGlobal, const Expr *InvalidationExpr, llvm::ArrayRef< const Expr * > ExprChain) override |
| void | reportInvalidatedGlobal (const ParmVarDecl *PVD, const VarDecl *DanglingGlobal, const Expr *InvalidationExpr, llvm::ArrayRef< const Expr * > ExprChain) override |
| void | suggestLifetimeboundToParmVar (WarningScope Scope, const ParmVarDecl *ParmToAnnotate, EscapingTarget Target) override |
| void | reportLifetimeboundViolation (const ParmVarDecl *ParmWithLifetimebound) override |
| void | reportLifetimeboundViolation (const CXXMethodDecl *MDWithLifetimebound) override |
| void | reportCaptureByViolation (const ParmVarDecl *PVD, const LifetimeCaptureByAttr *Attr, int CapturerIdx, const ValueDecl *CapturedBy) override |
| void | reportMisplacedLifetimebound (WarningScope Scope, const CXXMethodDecl *FDef, const CXXMethodDecl *FDecl) override |
| void | reportMisplacedLifetimebound (WarningScope Scope, const ParmVarDecl *PVDDef, const ParmVarDecl *PVDDecl) override |
| void | reportInapplicableLifetimebound (const ParmVarDecl *PVD) override |
| void | suggestLifetimeboundToImplicitThis (WarningScope Scope, const CXXMethodDecl *MD, const Expr *EscapeExpr) override |
| void | reportFieldOriginEscape (const CXXMethodDecl *MD, const FieldDecl *FD, 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 |
Static Public Member Functions | |
| static StringRef | getCapturerName (const ParmVarDecl *PVD, const LifetimeCaptureByAttr *Attr, const ParmVarDecl *CapturingParam) |
Returns the name of CapturingParam on the declaration where Attr of PVD is written, as the attribute's parameter names refer to that declaration. | |
Additional Inherited Members | |
| Public Types inherited from clang::lifetimes::LifetimeSafetySemaHelper | |
| using | EscapingTarget |
Definition at line 162 of file SemaLifetimeSafety.h.
|
inline |
Definition at line 165 of file SemaLifetimeSafety.h.
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 596 of file SemaLifetimeSafety.h.
|
inlinestatic |
Returns the name of CapturingParam on the declaration where Attr of PVD is written, as the attribute's parameter names refer to that declaration.
Definition at line 406 of file SemaLifetimeSafety.h.
References clang::cast(), clang::Decl::getDeclContext(), clang::ParmVarDecl::getFunctionScopeIndex(), clang::NamedDecl::getName(), and clang::Decl::specific_attrs().
Referenced by reportCaptureByViolation().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 430 of file SemaLifetimeSafety.h.
References clang::cast(), getCapturerName(), clang::Decl::getEndLoc(), clang::Attr::getLocation(), clang::Decl::getLocation(), clang::AttributeCommonInfo::getRange(), clang::isa(), and clang::Attr::isImplicit().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 207 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 231 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 543 of file SemaLifetimeSafety.h.
References clang::Stmt::getBeginLoc(), clang::Decl::getLocation(), clang::FunctionDecl::getNameInfo(), clang::DeclarationNameInfo::getSourceRange(), clang::FieldDecl::getSourceRange(), clang::Stmt::getSourceRange(), clang::ValueDecl::getType(), and clang::Type::isPointerType().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 516 of file SemaLifetimeSafety.h.
References clang::Decl::getAttr(), clang::Attr::getLocation(), clang::AttributeCommonInfo::getRange(), clang::ValueDecl::getType(), and clang::Decl::hasAttr().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 280 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 296 of file SemaLifetimeSafety.h.
References clang::SourceRange::getBegin(), clang::Decl::getEndLoc(), clang::Decl::getLocation(), and clang::ParmVarDecl::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 313 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 334 of file SemaLifetimeSafety.h.
References clang::SourceRange::getBegin(), 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 393 of file SemaLifetimeSafety.h.
References clang::lifetimes::getImplicitObjectParamLifetimeBoundAttr(), clang::Attr::getLocation(), and clang::AttributeCommonInfo::getRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 383 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 462 of file SemaLifetimeSafety.h.
References clang::FixItHint::CreateInsertion(), clang::lifetimes::CrossTU, clang::DeclaratorDecl::getBeginLoc(), clang::lifetimes::getDirectImplicitObjectLifetimeBoundAttr(), clang::Attr::getLocation(), clang::Decl::getLocation(), clang::AttributeCommonInfo::getRange(), and clang::SourceLocation::isMacroID().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 488 of file SemaLifetimeSafety.h.
References clang::FixItHint::CreateInsertion(), clang::lifetimes::CrossTU, clang::Decl::getAttr(), clang::DeclaratorDecl::getBeginLoc(), clang::Attr::getLocation(), clang::AttributeCommonInfo::getRange(), clang::ParmVarDecl::getSourceRange(), and clang::SourceLocation::isMacroID().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 559 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 570 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 581 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 264 of file SemaLifetimeSafety.h.
References clang::Expr::getExprLoc(), and clang::Stmt::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 272 of file SemaLifetimeSafety.h.
References clang::SourceRange::getBegin(), and clang::ParmVarDecl::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 189 of file SemaLifetimeSafety.h.
References clang::Expr::getExprLoc(), and clang::Stmt::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 167 of file SemaLifetimeSafety.h.
References clang::lifetimes::Destructor, clang::Expr::getExprLoc(), clang::lifetimes::UseSite::getKind(), and clang::Stmt::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 525 of file SemaLifetimeSafety.h.
References clang::FixItHint::CreateInsertion(), clang::lifetimes::CrossTU, clang::Stmt::getBeginLoc(), clang::FunctionDecl::getNameInfo(), clang::DeclarationNameInfo::getSourceRange(), and clang::Stmt::getSourceRange().
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::LifetimeSafetySemaHelper.
Definition at line 354 of file SemaLifetimeSafety.h.
References clang::FixItHint::CreateInsertion(), clang::lifetimes::CrossTU, clang::Decl::getDeclContext(), clang::ParmVarDecl::getSourceRange(), clang::isa(), and clang::Target.