|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
gen/tools/clang/include/clang/AST/AttrImpl.inc 8247 OwnershipAttr *OwnershipAttr::clone(ASTContext &C) const {
8248 auto *A = new (C) OwnershipAttr(C, *this, module, args_, args_Size);
8248 auto *A = new (C) OwnershipAttr(C, *this, module, args_, args_Size);
11912 return cast<OwnershipAttr>(this)->getSpelling();
12492 return cast<OwnershipAttr>(this)->clone(C);
13072 return cast<OwnershipAttr>(this)->printPretty(OS, Policy);
gen/tools/clang/include/clang/AST/AttrTextNodeDump.inc 576 void VisitOwnershipAttr(const OwnershipAttr *A) {
577 const auto *SA = cast<OwnershipAttr>(A); (void)SA;
577 const auto *SA = cast<OwnershipAttr>(A); (void)SA;
gen/tools/clang/include/clang/AST/AttrVisitor.inc 843 bool TraverseOwnershipAttr(OwnershipAttr *A);
844 bool VisitOwnershipAttr(OwnershipAttr *A) {
3192 bool VISITORCLASS<Derived>::TraverseOwnershipAttr(OwnershipAttr *A) {
4372 return getDerived().TraverseOwnershipAttr(cast<OwnershipAttr>(A));
gen/tools/clang/include/clang/AST/Attrs.inc11151 static OwnershipAttr *CreateImplicit(ASTContext &Ctx, IdentifierInfo * Module, ParamIdx *Args, unsigned ArgsSize, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
11152 auto *A = new (Ctx) OwnershipAttr(Ctx, CommonInfo, Module, Args, ArgsSize);
11152 auto *A = new (Ctx) OwnershipAttr(Ctx, CommonInfo, Module, Args, ArgsSize);
11159 static OwnershipAttr *Create(ASTContext &Ctx, IdentifierInfo * Module, ParamIdx *Args, unsigned ArgsSize, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
11160 auto *A = new (Ctx) OwnershipAttr(Ctx, CommonInfo, Module, Args, ArgsSize);
11160 auto *A = new (Ctx) OwnershipAttr(Ctx, CommonInfo, Module, Args, ArgsSize);
11164 static OwnershipAttr *CreateImplicit(ASTContext &Ctx, IdentifierInfo * Module, ParamIdx *Args, unsigned ArgsSize, SourceRange Range, AttributeCommonInfo::Syntax Syntax, OwnershipAttr::Spelling S = static_cast<Spelling>(SpellingNotCalculated)) {
11164 static OwnershipAttr *CreateImplicit(ASTContext &Ctx, IdentifierInfo * Module, ParamIdx *Args, unsigned ArgsSize, SourceRange Range, AttributeCommonInfo::Syntax Syntax, OwnershipAttr::Spelling S = static_cast<Spelling>(SpellingNotCalculated)) {
11168 static OwnershipAttr *Create(ASTContext &Ctx, IdentifierInfo * Module, ParamIdx *Args, unsigned ArgsSize, SourceRange Range, AttributeCommonInfo::Syntax Syntax, OwnershipAttr::Spelling S = static_cast<Spelling>(SpellingNotCalculated)) {
11168 static OwnershipAttr *Create(ASTContext &Ctx, IdentifierInfo * Module, ParamIdx *Args, unsigned ArgsSize, SourceRange Range, AttributeCommonInfo::Syntax Syntax, OwnershipAttr::Spelling S = static_cast<Spelling>(SpellingNotCalculated)) {
11192 OwnershipAttr *clone(ASTContext &C) const;
gen/tools/clang/include/clang/Sema/AttrTemplateInstantiate.inc 966 const auto *A = cast<OwnershipAttr>(At);
966 const auto *A = cast<OwnershipAttr>(At);
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc 1852 New = new (Context) OwnershipAttr(Context, Info, module, args.data(), argsSize);
gen/tools/clang/include/clang/Serialization/AttrPCHWrite.inc 1384 const auto *SA = cast<OwnershipAttr>(A);
1384 const auto *SA = cast<OwnershipAttr>(A);
include/llvm/ADT/STLExtras.h 75 typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h 58 return To::classof(&Val);
66 static inline bool doit(const From &) { return true; }
104 static inline bool doit(const From *Val) {
106 return isa_impl<To, From>::doit(*Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/AttrIterator.h 47 while (!isa<SpecificAttr>(*Current))
52 while (Current != I && !isa<SpecificAttr>(*Current))
57 using value_type = SpecificAttr *;
58 using reference = SpecificAttr *;
59 using pointer = SpecificAttr *;
68 return cast<SpecificAttr>(*Current);
tools/clang/include/clang/AST/DeclBase.h 524 llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
525 return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
525 return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
529 specific_attr_iterator<T> specific_attr_begin() const {
534 specific_attr_iterator<T> specific_attr_end() const {
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/Sema/SemaDecl.cpp 2381 const OwnershipAttr *OA = dyn_cast<OwnershipAttr>(A);
2381 const OwnershipAttr *OA = dyn_cast<OwnershipAttr>(A);
2391 if (OA && isa<OwnershipAttr>(i))
2392 return OA->getOwnKind() == cast<OwnershipAttr>(i)->getOwnKind();
tools/clang/lib/Sema/SemaDeclAttr.cpp 1653 OwnershipAttr::OwnershipKind K =
1658 case OwnershipAttr::Takes:
1659 case OwnershipAttr::Holds:
1665 case OwnershipAttr::Returns:
1691 case OwnershipAttr::Takes:
1692 case OwnershipAttr::Holds:
1696 case OwnershipAttr::Returns:
1708 for (const auto *I : D->specific_attrs<OwnershipAttr>()) {
1708 for (const auto *I : D->specific_attrs<OwnershipAttr>()) {
1715 } else if (K == OwnershipAttr::Returns &&
1716 I->getOwnKind() == OwnershipAttr::Returns) {
1736 OwnershipAttr(S.Context, AL, Module, Start, Size));
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 437 const OwnershipAttr* Att,
495 const OwnershipAttr* Att,
931 for (const auto *I : FD->specific_attrs<OwnershipAttr>()) {
931 for (const auto *I : FD->specific_attrs<OwnershipAttr>()) {
932 OwnershipAttr::OwnershipKind OwnKind = I->getOwnKind();
933 if(OwnKind == OwnershipAttr::Takes || OwnKind == OwnershipAttr::Holds) {
933 if(OwnKind == OwnershipAttr::Takes || OwnKind == OwnershipAttr::Holds) {
936 } else if (OwnKind == OwnershipAttr::Returns) {
1214 for (const auto *I : FD->specific_attrs<OwnershipAttr>()) {
1214 for (const auto *I : FD->specific_attrs<OwnershipAttr>()) {
1216 case OwnershipAttr::Returns:
1219 case OwnershipAttr::Takes:
1220 case OwnershipAttr::Holds:
1483 const OwnershipAttr *Att,
1491 OwnershipAttr::args_iterator I = Att->args_begin(), E = Att->args_end();
1580 const OwnershipAttr *Att,
1593 Att->getOwnKind() == OwnershipAttr::Holds, IsKnownToBeAllocated);
usr/include/c++/7.4.0/type_traits 1558 { typedef _Tp type; };
1580 { typedef _Tp const type; };