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

References

tools/clang/include/clang/AST/GlobalDecl.h
   80     assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!");
   85     assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!");
   90     assert(isa<VarDecl>(getDecl()) &&
   91            cast<VarDecl>(getDecl())->hasGlobalStorage() &&
   97     assert(isa<FunctionDecl>(getDecl()) &&
   98            !isa<CXXConstructorDecl>(getDecl()) &&
   99            !isa<CXXDestructorDecl>(getDecl()) &&
  124     assert(isa<CXXConstructorDecl>(getDecl()));
  131     assert(isa<CXXDestructorDecl>(getDecl()));
  138     assert(isa<FunctionDecl>(getDecl()) &&
  139            !isa<CXXConstructorDecl>(getDecl()) &&
  140            !isa<CXXDestructorDecl>(getDecl()) &&
tools/clang/include/clang/AST/VTableBuilder.h
  330     const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()->getCanonicalDecl());
  559     if (isa<CXXDestructorDecl>(GD.getDecl()) &&
tools/clang/lib/AST/VTableBuilder.cpp
 2229   const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent();
 3611     const CXXMethodDecl *MD = cast<const CXXMethodDecl>(I.first.getDecl());
 3732   assert(cast<CXXMethodDecl>(GD.getDecl())->isVirtual() &&
 3734   if (isa<CXXDestructorDecl>(GD.getDecl()))
 3743   const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent();
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1534   const FunctionDecl *FD = GD.getDecl()->getAsFunction();
tools/clang/lib/CodeGen/CGCXX.cpp
  149         TargetDecl.getDecl()->hasAttr<AlwaysInlineAttr>())) {
  216   SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn);
  223   auto *MD = cast<CXXMethodDecl>(GD.getDecl());
tools/clang/lib/CodeGen/CGCXXABI.cpp
  122   const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl());
tools/clang/lib/CodeGen/CGCall.cpp
  306   auto *MD = cast<CXXMethodDecl>(GD.getDecl());
  514   const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
  516   if (isa<CXXConstructorDecl>(GD.getDecl()) ||
  517       isa<CXXDestructorDecl>(GD.getDecl()))
 1670   const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
 1835   const Decl *TargetDecl = CalleeInfo.getCalleeDecl().getDecl();
 3796   const Decl *TargetDecl = Callee.getAbstractInfo().getCalleeDecl().getDecl();
tools/clang/lib/CodeGen/CGClass.cpp
  444   const CXXRecordDecl *Base = cast<CXXMethodDecl>(GD.getDecl())->getParent();
  761       Prologue ? cast<CXXConstructorDecl>(CurGD.getDecl())->getParent()
  762                : cast<CXXDestructorDecl>(CurGD.getDecl())->getParent();
  823   const CXXConstructorDecl *Ctor = cast<CXXConstructorDecl>(CurGD.getDecl());
 1421   const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CurGD.getDecl());
 1534   const CXXMethodDecl *AssignOp = cast<CXXMethodDecl>(CurGD.getDecl());
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 3235   const auto *FD = cast<FunctionDecl>(GD.getDecl());
 3329   SourceLocation Loc = GD.getDecl()->getLocation();
 3335   auto *FD = cast<FunctionDecl>(GD.getDecl());
 3355         getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags,
 3361       getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags,
 3545   const Decl *D = GD.getDecl();
 3663   const Decl *D = GD.getDecl();
 3732   const auto *FD = cast<FunctionDecl>(GD.getDecl());
tools/clang/lib/CodeGen/CGDecl.cpp
  299   if (GD.getDecl()) {
tools/clang/lib/CodeGen/CGExpr.cpp
 4781       OrigCallee.getAbstractInfo().getCalleeDecl().getDecl();
tools/clang/lib/CodeGen/CGExprCXX.cpp
   96   const CXXMethodDecl *DtorDecl = cast<CXXMethodDecl>(Dtor.getDecl());
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1278     const auto *D = cast<FunctionDecl>(OldGD.getDecl());
 9583     if (const auto *FD = dyn_cast<FunctionDecl>(GD.getDecl())) {
 9593   const ValueDecl *VD = cast<ValueDecl>(GD.getDecl());
 9617   QualType RDTy = cast<VarDecl>(GD.getDecl())->getType();
 9634           cast<VarDecl>(GD.getDecl()));
 9638     DeferredGlobalVariables.insert(cast<VarDecl>(GD.getDecl()));
 9750   if (isa<FunctionDecl>(GD.getDecl()) ||
 9751       isa<OMPDeclareReductionDecl>(GD.getDecl()))
 9839   const auto *D = cast<FunctionDecl>(GD.getDecl());
11126   const auto *D = cast<FunctionDecl>(GD.getDecl());
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 1912   auto *NewFD = cast<FunctionDecl>(NewGD.getDecl());
tools/clang/lib/CodeGen/CGVTables.cpp
  159   const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
  238   assert(!CurGD.getDecl() && "CurGD was already set!");
  243   const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
  294   assert(isa<CXXMethodDecl>(CurGD.getDecl()) &&
  296   const CXXMethodDecl *MD = cast<CXXMethodDecl>(CurGD.getDecl());
  490   const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
  563   CGM.SetLLVMFunctionAttributesForDefinition(GD.getDecl(), ThunkFn);
  602     cast<CXXMethodDecl>(GD.getDecl())->getCanonicalDecl();
  666       const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
  691     if (cast<CXXMethodDecl>(GD.getDecl())->isPure()) {
  698     } else if (cast<CXXMethodDecl>(GD.getDecl())->isDeleted()) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  648   const Decl *D = GD.getDecl();
 1087   const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
 1143   const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
tools/clang/lib/CodeGen/CodeGenFunction.h
 1490           cast<CXXConstructorDecl>(GD.getDecl());
tools/clang/lib/CodeGen/CodeGenModule.cpp
  301     const auto *D = cast<ValueDecl>(GD.getDecl());
  860   const auto *D = dyn_cast<NamedDecl>(GD.getDecl());
  882   setGVPropertiesAux(GV, dyn_cast<NamedDecl>(GD.getDecl()));
 1046                .getDecl()
 1053                                       .getDecl()
 1078   if (const auto *CD = dyn_cast<CXXConstructorDecl>(CanonicalGD.getDecl())) {
 1092   const auto *ND = cast<NamedDecl>(GD.getDecl());
 1097   if (auto *FD = dyn_cast<FunctionDecl>(GD.getDecl()))
 1108   const Decl *D = GD.getDecl();
 1114       dyn_cast_or_null<VarDecl>(initializedGlobalDecl.getDecl()), Out);
 1190   const auto *D = cast<FunctionDecl>(GD.getDecl());
 1639   const Decl *D = GD.getDecl();
 1663   const auto *FD = dyn_cast_or_null<FunctionDecl>(GD.getDecl());
 1707   const Decl *D = GD.getDecl();
 1750   const Decl *D = GD.getDecl();
 1802   const auto *FD = cast<FunctionDecl>(GD.getDecl());
 2416   const auto *Global = cast<ValueDecl>(GD.getDecl());
 2696   const auto *F = cast<FunctionDecl>(GD.getDecl());
 2734   const auto *FD = cast<FunctionDecl>(GD.getDecl());
 2749   const auto *D = cast<FunctionDecl>(OldGD.getDecl());
 2790   const auto *D = cast<ValueDecl>(GD.getDecl());
 2856     const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
 2911   const auto *FD = cast<FunctionDecl>(GD.getDecl());
 2955       if (ExistingDecl.getDecl() &&
 2956           ExistingDecl.getDecl()->getAsFunction()->isDefined()) {
 2960         if (!ExistingDecl.getDecl())
 3083   const Decl *D = GD.getDecl();
 3139           (GD.getCanonicalDecl().getDecl() !=
 3140            OtherGD.getCanonicalDecl().getDecl()) &&
 3144         getDiags().Report(OtherGD.getDecl()->getLocation(),
 3276     const auto *FD = cast<FunctionDecl>(GD.getDecl());
 3283   if (const auto *DD = dyn_cast<CXXDestructorDecl>(GD.getDecl())) {
 3438           (D->getCanonicalDecl() != OtherGD.getCanonicalDecl().getDecl()) &&
 3439           (OtherD = dyn_cast<VarDecl>(OtherGD.getDecl())) &&
 3444         getDiags().Report(OtherGD.getDecl()->getLocation(),
 3594   const Decl *D = GD.getDecl();
 4390   const auto *D = cast<FunctionDecl>(GD.getDecl());
 4435   const auto *D = cast<ValueDecl>(GD.getDecl());
 4468     LT = getLLVMLinkageVarDefinition(cast<VarDecl>(GD.getDecl()),
 4516   const auto *D = cast<ValueDecl>(GD.getDecl());
 4535       Diags.Report(OtherGD.getDecl()->getLocation(),
 5571                                CGM.getLLVMContext(), D.getDecl()))};
 5675     const Decl *D = Val.first.getDecl()->getMostRecentDecl();
 5883   const FunctionDecl *FD = GD.getDecl()->getAsFunction();
tools/clang/lib/CodeGen/CodeGenPGO.cpp
  760   const Decl *D = GD.getDecl();
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
   79     if (isa<CXXDestructorDecl>(GD.getDecl())) {
   93     if (isa<CXXConstructorDecl>(GD.getDecl())) {
  462     return (isa<CXXConstructorDecl>(GD.getDecl()) || (
  463               isa<CXXDestructorDecl>(GD.getDecl()) &&
  499     return isa<CXXConstructorDecl>(GD.getDecl()) ||
  500            (isa<CXXDestructorDecl>(GD.getDecl()) &&
 1526   if ((isa<CXXConstructorDecl>(GD.getDecl()) ? GD.getCtorType() == Ctor_Base
 1528       cast<CXXMethodDecl>(GD.getDecl())->getParent()->getNumVBases() != 0) {
 1555   const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl());
 1780   auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl());
 1975   if (!isa<CXXDestructorDecl>(CGF.CurGD.getDecl()))
 2738   const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
 3955   auto *MD = cast<CXXMethodDecl>(GD.getDecl());
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
   62     if (isa<CXXDestructorDecl>(GD.getDecl())) {
  366         getContext().GetGVALinkageForFunction(cast<FunctionDecl>(GD.getDecl()));
 1043   return isa<CXXConstructorDecl>(GD.getDecl());
 1047   return isa<CXXDestructorDecl>(GD.getDecl()) &&
 1264   if (isa<CXXDestructorDecl>(GD.getDecl()) &&
 1270   auto *CD = dyn_cast<CXXConstructorDecl>(GD.getDecl());
 1346   const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
 1394   const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
 1452   const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl());
 1456         Context, /*DC=*/nullptr, CGF.CurGD.getDecl()->getLocation(),
 1469         Context, /*DC=*/nullptr, CGF.CurGD.getDecl()->getLocation(),
 1495   const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl());
 1867   auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl());
 3854   if (auto *ctor = dyn_cast<CXXConstructorDecl>(GD.getDecl())) {
 3862   auto *dtor = cast<CXXDestructorDecl>(GD.getDecl());
tools/clang/lib/CodeGen/ModuleBuilder.cpp
  114       const Decl *D = Result.getCanonicalDecl().getDecl();