reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/tools/clang/include/clang/AST/AttrImpl.inc
10217 TestTypestateAttr *TestTypestateAttr::clone(ASTContext &C) const {
10218   auto *A = new (C) TestTypestateAttr(C, *this, testState);
10218   auto *A = new (C) TestTypestateAttr(C, *this, testState);
10231     OS << " __attribute__((test_typestate(\"" << TestTypestateAttr::ConvertConsumedStateToStr(getTestState()) << "\")))";
10235     OS << " [[clang::test_typestate(\"" << TestTypestateAttr::ConvertConsumedStateToStr(getTestState()) << "\")]]";
12006     return cast<TestTypestateAttr>(this)->getSpelling();
12586     return cast<TestTypestateAttr>(this)->clone(C);
13166     return cast<TestTypestateAttr>(this)->printPretty(OS, Policy);
gen/tools/clang/include/clang/AST/AttrTextNodeDump.inc
  720   void VisitTestTypestateAttr(const TestTypestateAttr *A) {
  721     const auto *SA = cast<TestTypestateAttr>(A); (void)SA;
  721     const auto *SA = cast<TestTypestateAttr>(A); (void)SA;
  723     case TestTypestateAttr::Consumed:
  726     case TestTypestateAttr::Unconsumed:
gen/tools/clang/include/clang/AST/AttrVisitor.inc
 1031   bool TraverseTestTypestateAttr(TestTypestateAttr *A);
 1032   bool VisitTestTypestateAttr(TestTypestateAttr *A) {
 3646 bool VISITORCLASS<Derived>::TraverseTestTypestateAttr(TestTypestateAttr *A) {
 4466       return getDerived().TraverseTestTypestateAttr(cast<TestTypestateAttr>(A));
gen/tools/clang/include/clang/AST/Attrs.inc
13817   static TestTypestateAttr *CreateImplicit(ASTContext &Ctx, ConsumedState TestState, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
13818     auto *A = new (Ctx) TestTypestateAttr(Ctx, CommonInfo, TestState);
13818     auto *A = new (Ctx) TestTypestateAttr(Ctx, CommonInfo, TestState);
13825   static TestTypestateAttr *Create(ASTContext &Ctx, ConsumedState TestState, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
13826     auto *A = new (Ctx) TestTypestateAttr(Ctx, CommonInfo, TestState);
13826     auto *A = new (Ctx) TestTypestateAttr(Ctx, CommonInfo, TestState);
13832   static TestTypestateAttr *CreateImplicit(ASTContext &Ctx, ConsumedState TestState, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
13836   static TestTypestateAttr *Create(ASTContext &Ctx, ConsumedState TestState, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
13848   TestTypestateAttr *clone(ASTContext &C) const;
13858       .Case("consumed", TestTypestateAttr::Consumed)
13859       .Case("unconsumed", TestTypestateAttr::Unconsumed)
13870     case TestTypestateAttr::Consumed: return "consumed";
13871     case TestTypestateAttr::Unconsumed: return "unconsumed";
gen/tools/clang/include/clang/Sema/AttrTemplateInstantiate.inc
 1199       const auto *A = cast<TestTypestateAttr>(At);
 1199       const auto *A = cast<TestTypestateAttr>(At);
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc
 2264     TestTypestateAttr::ConsumedState testState(static_cast<TestTypestateAttr::ConsumedState>(Record.readInt()));
 2265     New = new (Context) TestTypestateAttr(Context, Info, testState);
gen/tools/clang/include/clang/Serialization/AttrPCHWrite.inc
 1695     const auto *SA = cast<TestTypestateAttr>(A);
 1695     const auto *SA = cast<TestTypestateAttr>(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>
  113   return specific_attr_begin<SpecificAttr>(container) !=
  114           specific_attr_end<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;
  543     return hasAttrs() && hasSpecificAttr<T>(getAttrs());
tools/clang/lib/Analysis/Consumed.cpp
  186   return FunDecl->hasAttr<TestTypestateAttr>();
  267   switch (FunDecl->getAttr<TestTypestateAttr>()->getTestState()) {
  268   case TestTypestateAttr::Unconsumed:
  270   case TestTypestateAttr::Consumed:
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/Sema/SemaDeclAttr.cpp
 1280   TestTypestateAttr::ConsumedState TestState;
 1284     if (!TestTypestateAttr::ConvertStrToConsumedState(Param, TestState)) {
 1295   D->addAttr(::new (S.Context) TestTypestateAttr(S.Context, AL, TestState));
usr/include/c++/7.4.0/type_traits
 1558     { typedef _Tp     type; };
 1580     { typedef _Tp const     type; };