|
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 9741 SetTypestateAttr *SetTypestateAttr::clone(ASTContext &C) const {
9742 auto *A = new (C) SetTypestateAttr(C, *this, newState);
9742 auto *A = new (C) SetTypestateAttr(C, *this, newState);
9755 OS << " __attribute__((set_typestate(\"" << SetTypestateAttr::ConvertConsumedStateToStr(getNewState()) << "\")))";
9759 OS << " [[clang::set_typestate(\"" << SetTypestateAttr::ConvertConsumedStateToStr(getNewState()) << "\")]]";
11982 return cast<SetTypestateAttr>(this)->getSpelling();
12562 return cast<SetTypestateAttr>(this)->clone(C);
13142 return cast<SetTypestateAttr>(this)->printPretty(OS, Policy);
gen/tools/clang/include/clang/AST/AttrTextNodeDump.inc 693 void VisitSetTypestateAttr(const SetTypestateAttr *A) {
694 const auto *SA = cast<SetTypestateAttr>(A); (void)SA;
694 const auto *SA = cast<SetTypestateAttr>(A); (void)SA;
696 case SetTypestateAttr::Unknown:
699 case SetTypestateAttr::Consumed:
702 case SetTypestateAttr::Unconsumed:
gen/tools/clang/include/clang/AST/AttrVisitor.inc 983 bool TraverseSetTypestateAttr(SetTypestateAttr *A);
984 bool VisitSetTypestateAttr(SetTypestateAttr *A) {
3528 bool VISITORCLASS<Derived>::TraverseSetTypestateAttr(SetTypestateAttr *A) {
4442 return getDerived().TraverseSetTypestateAttr(cast<SetTypestateAttr>(A));
gen/tools/clang/include/clang/AST/Attrs.inc13115 static SetTypestateAttr *CreateImplicit(ASTContext &Ctx, ConsumedState NewState, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
13116 auto *A = new (Ctx) SetTypestateAttr(Ctx, CommonInfo, NewState);
13116 auto *A = new (Ctx) SetTypestateAttr(Ctx, CommonInfo, NewState);
13123 static SetTypestateAttr *Create(ASTContext &Ctx, ConsumedState NewState, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
13124 auto *A = new (Ctx) SetTypestateAttr(Ctx, CommonInfo, NewState);
13124 auto *A = new (Ctx) SetTypestateAttr(Ctx, CommonInfo, NewState);
13130 static SetTypestateAttr *CreateImplicit(ASTContext &Ctx, ConsumedState NewState, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
13134 static SetTypestateAttr *Create(ASTContext &Ctx, ConsumedState NewState, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
13146 SetTypestateAttr *clone(ASTContext &C) const;
13156 .Case("unknown", SetTypestateAttr::Unknown)
13157 .Case("consumed", SetTypestateAttr::Consumed)
13158 .Case("unconsumed", SetTypestateAttr::Unconsumed)
13169 case SetTypestateAttr::Unknown: return "unknown";
13170 case SetTypestateAttr::Consumed: return "consumed";
13171 case SetTypestateAttr::Unconsumed: return "unconsumed";
gen/tools/clang/include/clang/Sema/AttrTemplateInstantiate.inc 1134 const auto *A = cast<SetTypestateAttr>(At);
1134 const auto *A = cast<SetTypestateAttr>(At);
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc 2152 SetTypestateAttr::ConsumedState newState(static_cast<SetTypestateAttr::ConsumedState>(Record.readInt()));
2153 New = new (Context) SetTypestateAttr(Context, Info, newState);
gen/tools/clang/include/clang/Serialization/AttrPCHWrite.inc 1614 const auto *SA = cast<SetTypestateAttr>(A);
1614 const auto *SA = cast<SetTypestateAttr>(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 236 static ConsumedState mapSetTypestateAttrState(const SetTypestateAttr *STAttr) {
238 case SetTypestateAttr::Unknown:
240 case SetTypestateAttr::Unconsumed:
242 case SetTypestateAttr::Consumed:
666 if (SetTypestateAttr *STA = FunD->getAttr<SetTypestateAttr>()) {
666 if (SetTypestateAttr *STA = FunD->getAttr<SetTypestateAttr>()) {
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/Sema/SemaDeclAttr.cpp 1258 SetTypestateAttr::ConsumedState NewState;
1262 if (!SetTypestateAttr::ConvertStrToConsumedState(Param, NewState)) {
1273 D->addAttr(::new (S.Context) SetTypestateAttr(S.Context, AL, NewState));
usr/include/c++/7.4.0/type_traits 1558 { typedef _Tp type; };
1580 { typedef _Tp const type; };