|
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 8424 ParamTypestateAttr *ParamTypestateAttr::clone(ASTContext &C) const {
8425 auto *A = new (C) ParamTypestateAttr(C, *this, paramState);
8425 auto *A = new (C) ParamTypestateAttr(C, *this, paramState);
8438 OS << " __attribute__((param_typestate(\"" << ParamTypestateAttr::ConvertConsumedStateToStr(getParamState()) << "\")))";
8442 OS << " [[clang::param_typestate(\"" << ParamTypestateAttr::ConvertConsumedStateToStr(getParamState()) << "\")]]";
11916 return cast<ParamTypestateAttr>(this)->getSpelling();
12496 return cast<ParamTypestateAttr>(this)->clone(C);
13076 return cast<ParamTypestateAttr>(this)->printPretty(OS, Policy);
gen/tools/clang/include/clang/AST/AttrTextNodeDump.inc 584 void VisitParamTypestateAttr(const ParamTypestateAttr *A) {
585 const auto *SA = cast<ParamTypestateAttr>(A); (void)SA;
585 const auto *SA = cast<ParamTypestateAttr>(A); (void)SA;
587 case ParamTypestateAttr::Unknown:
590 case ParamTypestateAttr::Consumed:
593 case ParamTypestateAttr::Unconsumed:
gen/tools/clang/include/clang/AST/AttrVisitor.inc 851 bool TraverseParamTypestateAttr(ParamTypestateAttr *A);
852 bool VisitParamTypestateAttr(ParamTypestateAttr *A) {
3210 bool VISITORCLASS<Derived>::TraverseParamTypestateAttr(ParamTypestateAttr *A) {
4376 return getDerived().TraverseParamTypestateAttr(cast<ParamTypestateAttr>(A));
gen/tools/clang/include/clang/AST/Attrs.inc11293 static ParamTypestateAttr *CreateImplicit(ASTContext &Ctx, ConsumedState ParamState, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
11294 auto *A = new (Ctx) ParamTypestateAttr(Ctx, CommonInfo, ParamState);
11294 auto *A = new (Ctx) ParamTypestateAttr(Ctx, CommonInfo, ParamState);
11301 static ParamTypestateAttr *Create(ASTContext &Ctx, ConsumedState ParamState, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
11302 auto *A = new (Ctx) ParamTypestateAttr(Ctx, CommonInfo, ParamState);
11302 auto *A = new (Ctx) ParamTypestateAttr(Ctx, CommonInfo, ParamState);
11308 static ParamTypestateAttr *CreateImplicit(ASTContext &Ctx, ConsumedState ParamState, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
11312 static ParamTypestateAttr *Create(ASTContext &Ctx, ConsumedState ParamState, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
11324 ParamTypestateAttr *clone(ASTContext &C) const;
11334 .Case("unknown", ParamTypestateAttr::Unknown)
11335 .Case("consumed", ParamTypestateAttr::Consumed)
11336 .Case("unconsumed", ParamTypestateAttr::Unconsumed)
11347 case ParamTypestateAttr::Unknown: return "unknown";
11348 case ParamTypestateAttr::Consumed: return "consumed";
11349 case ParamTypestateAttr::Unconsumed: return "unconsumed";
gen/tools/clang/include/clang/Sema/AttrTemplateInstantiate.inc 974 const auto *A = cast<ParamTypestateAttr>(At);
974 const auto *A = cast<ParamTypestateAttr>(At);
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc 1868 ParamTypestateAttr::ConsumedState paramState(static_cast<ParamTypestateAttr::ConsumedState>(Record.readInt()));
1869 New = new (Context) ParamTypestateAttr(Context, Info, paramState);
gen/tools/clang/include/clang/Serialization/AttrPCHWrite.inc 1400 const auto *SA = cast<ParamTypestateAttr>(A);
1400 const auto *SA = cast<ParamTypestateAttr>(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*,
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);
101 inline specific_attr_iterator<SpecificAttr, Container>
106 inline specific_attr_iterator<SpecificAttr, Container>
117 inline SpecificAttr *getSpecificAttr(const Container& container) {
118 specific_attr_iterator<SpecificAttr, Container> i =
119 specific_attr_begin<SpecificAttr>(container);
120 if (i != specific_attr_end<SpecificAttr>(container))
tools/clang/include/clang/AST/DeclBase.h 538 template<typename T> T *getAttr() const {
539 return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : nullptr;
tools/clang/lib/Analysis/Consumed.cpp 211 mapParamTypestateAttrState(const ParamTypestateAttr *PTAttr) {
213 case ParamTypestateAttr::Unknown:
215 case ParamTypestateAttr::Unconsumed:
217 case ParamTypestateAttr::Consumed:
633 if (ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) {
633 if (ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) {
861 if (const ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>())
861 if (const ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>())
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/Sema/SemaDeclAttr.cpp 1176 ParamTypestateAttr::ConsumedState ParamState;
1182 if (!ParamTypestateAttr::ConvertStrToConsumedState(StateString,
1206 D->addAttr(::new (S.Context) ParamTypestateAttr(S.Context, AL, ParamState));
usr/include/c++/7.4.0/type_traits 1558 { typedef _Tp type; };
1580 { typedef _Tp const type; };