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

References

gen/tools/clang/include/clang/AST/AttrImpl.inc
 8514 PassObjectSizeAttr *PassObjectSizeAttr::clone(ASTContext &C) const {
 8515   auto *A = new (C) PassObjectSizeAttr(C, *this, type);
 8515   auto *A = new (C) PassObjectSizeAttr(C, *this, type);
11920     return cast<PassObjectSizeAttr>(this)->getSpelling();
12500     return cast<PassObjectSizeAttr>(this)->clone(C);
13080     return cast<PassObjectSizeAttr>(this)->printPretty(OS, Policy);
gen/tools/clang/include/clang/AST/AttrTextNodeDump.inc
  598   void VisitPassObjectSizeAttr(const PassObjectSizeAttr *A) {
  599     const auto *SA = cast<PassObjectSizeAttr>(A); (void)SA;
  599     const auto *SA = cast<PassObjectSizeAttr>(A); (void)SA;
gen/tools/clang/include/clang/AST/AttrVisitor.inc
  859   bool TraversePassObjectSizeAttr(PassObjectSizeAttr *A);
  860   bool VisitPassObjectSizeAttr(PassObjectSizeAttr *A) {
 3228 bool VISITORCLASS<Derived>::TraversePassObjectSizeAttr(PassObjectSizeAttr *A) {
 4380       return getDerived().TraversePassObjectSizeAttr(cast<PassObjectSizeAttr>(A));
gen/tools/clang/include/clang/AST/Attrs.inc
11413   static PassObjectSizeAttr *CreateImplicit(ASTContext &Ctx, int Type, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
11414     auto *A = new (Ctx) PassObjectSizeAttr(Ctx, CommonInfo, Type);
11414     auto *A = new (Ctx) PassObjectSizeAttr(Ctx, CommonInfo, Type);
11421   static PassObjectSizeAttr *Create(ASTContext &Ctx, int Type, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
11422     auto *A = new (Ctx) PassObjectSizeAttr(Ctx, CommonInfo, Type);
11422     auto *A = new (Ctx) PassObjectSizeAttr(Ctx, CommonInfo, Type);
11426   static PassObjectSizeAttr *CreateImplicit(ASTContext &Ctx, int Type, SourceRange Range, AttributeCommonInfo::Syntax Syntax, PassObjectSizeAttr::Spelling S = static_cast<Spelling>(SpellingNotCalculated)) {
11426   static PassObjectSizeAttr *CreateImplicit(ASTContext &Ctx, int Type, SourceRange Range, AttributeCommonInfo::Syntax Syntax, PassObjectSizeAttr::Spelling S = static_cast<Spelling>(SpellingNotCalculated)) {
11430   static PassObjectSizeAttr *Create(ASTContext &Ctx, int Type, SourceRange Range, AttributeCommonInfo::Syntax Syntax, PassObjectSizeAttr::Spelling S = static_cast<Spelling>(SpellingNotCalculated)) {
11430   static PassObjectSizeAttr *Create(ASTContext &Ctx, int Type, SourceRange Range, AttributeCommonInfo::Syntax Syntax, PassObjectSizeAttr::Spelling S = static_cast<Spelling>(SpellingNotCalculated)) {
11442   PassObjectSizeAttr *clone(ASTContext &C) const;
gen/tools/clang/include/clang/Sema/AttrTemplateInstantiate.inc
  982       const auto *A = cast<PassObjectSizeAttr>(At);
  982       const auto *A = cast<PassObjectSizeAttr>(At);
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc
 1886     New = new (Context) PassObjectSizeAttr(Context, Info, type);
gen/tools/clang/include/clang/Serialization/AttrPCHWrite.inc
 1413     const auto *SA = cast<PassObjectSizeAttr>(A);
 1413     const auto *SA = cast<PassObjectSizeAttr>(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/AST/ItaniumMangle.cpp
 2908       if (auto *Attr = FD->getParamDecl(I)->getAttr<PassObjectSizeAttr>()) {
 2908       if (auto *Attr = FD->getParamDecl(I)->getAttr<PassObjectSizeAttr>()) {
tools/clang/lib/AST/MicrosoftMangle.cpp
  357   void manglePassObjectSizeArg(const PassObjectSizeAttr *POSA);
 1794     const PassObjectSizeAttr *POSA) {
 2295         if (const auto *P = D->getParamDecl(I)->getAttr<PassObjectSizeAttr>())
 2295         if (const auto *P = D->getParamDecl(I)->getAttr<PassObjectSizeAttr>())
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGBuiltin.cpp
  582     auto *PS = D->getDecl()->getAttr<PassObjectSizeAttr>();
  582     auto *PS = D->getDecl()->getAttr<PassObjectSizeAttr>();
tools/clang/lib/CodeGen/CGCall.cpp
 3423     auto *PS = AC.getParamDecl(I)->getAttr<PassObjectSizeAttr>();
 3423     auto *PS = AC.getParamDecl(I)->getAttr<PassObjectSizeAttr>();
tools/clang/lib/CodeGen/CGClass.cpp
 2214       if (Param->hasAttr<PassObjectSizeAttr>()) {
tools/clang/lib/CodeGen/CGExpr.cpp
  901   auto *POSAttr = ParamDecl->getAttr<PassObjectSizeAttr>();
  901   auto *POSAttr = ParamDecl->getAttr<PassObjectSizeAttr>();
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1111       if (!Param->hasAttr<PassObjectSizeAttr>())
tools/clang/lib/Sema/SemaChecking.cpp
  415     if (const auto *POS =
  416             FD->getParamDecl(ObjectIndex)->getAttr<PassObjectSizeAttr>())
13098     if (const auto *Attr = Param->getAttr<PassObjectSizeAttr>())
13098     if (const auto *Attr = Param->getAttr<PassObjectSizeAttr>())
tools/clang/lib/Sema/SemaDecl.cpp
 3093     const auto *AttrA = A->getAttr<PassObjectSizeAttr>();
 3093     const auto *AttrA = A->getAttr<PassObjectSizeAttr>();
 3094     const auto *AttrB = B->getAttr<PassObjectSizeAttr>();
 3094     const auto *AttrB = B->getAttr<PassObjectSizeAttr>();
tools/clang/lib/Sema/SemaDeclAttr.cpp
 1073   if (D->hasAttr<PassObjectSizeAttr>()) {
 1101   D->addAttr(::new (S.Context) PassObjectSizeAttr(S.Context, AL, (int)Type));
tools/clang/lib/Sema/SemaLambda.cpp
 1283     return P->hasAttr<PassObjectSizeAttr>();
tools/clang/lib/Sema/SemaOverload.cpp
   43     return P->hasAttr<PassObjectSizeAttr>();
 9811     return P->hasAttr<PassObjectSizeAttr>();
tools/clang/lib/Sema/SemaType.cpp
 4875           if (Param->hasAttr<PassObjectSizeAttr>()) {
usr/include/c++/7.4.0/type_traits
 1558     { typedef _Tp     type; };
 1580     { typedef _Tp const     type; };