Home
last modified time | relevance | path

Searched refs:getPreviousDecl (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclTemplate.h747 return getPreviousDecl(); in getPreviousDeclImpl()
942 using redeclarable_base::getPreviousDecl;
1050 FunctionTemplateDecl *getPreviousDecl() {
2145 ClassTemplateDecl *getPreviousDecl() {
2149 const ClassTemplateDecl *getPreviousDecl() const {
2152 this)->getPreviousDecl());
2366 TypeAliasTemplateDecl *getPreviousDecl() {
2373 this)->getPreviousDecl());
2946 VarTemplateDecl *getPreviousDecl() {
2950 const VarTemplateDecl *getPreviousDecl() const {
[all …]
H A DRedeclarable.h204 decl_type *getPreviousDecl() { in getPreviousDecl() function
209 const decl_type *getPreviousDecl() const { in getPreviousDecl() function
211 static_cast<const decl_type*>(this))->getPreviousDecl(); in getPreviousDecl()
H A DDecl.h558 using redeclarable_base::getPreviousDecl;
991 return getPreviousDecl(); in getPreviousDeclImpl()
1005 using redeclarable_base::getPreviousDecl;
1854 return getPreviousDecl(); in getPreviousDeclImpl()
1871 using redeclarable_base::getPreviousDecl;
2944 return getPreviousDecl(); in getPreviousDeclImpl()
2958 using redeclarable_base::getPreviousDecl;
3108 return getPreviousDecl(); in getPreviousDeclImpl()
3141 using redeclarable_base::getPreviousDecl;
3412 EnumDecl *getPreviousDecl() { in getPreviousDecl() function
[all …]
H A DDeclCXX.h736 CXXRecordDecl *getPreviousDecl() {
738 static_cast<RecordDecl *>(this)->getPreviousDecl());
741 const CXXRecordDecl *getPreviousDecl() const {
742 return const_cast<CXXRecordDecl*>(this)->getPreviousDecl();
759 assert(Recent->getPreviousDecl());
760 Recent = Recent->getPreviousDecl();
3072 using redeclarable_base::getPreviousDecl;
3158 return getPreviousDecl();
3188 using redeclarable_base::getPreviousDecl;
H A DDeclBase.h953 Decl *getPreviousDecl() { return getPreviousDeclImpl(); } in getPreviousDecl() function
957 const Decl *getPreviousDecl() const { in getPreviousDecl() function
963 return getPreviousDecl() == nullptr; in isFirstDecl()
1036 Decl *Prev = getPreviousDecl(); in setLocalExternDecl()
1075 Decl *Prev = getPreviousDecl();
H A DDeclObjC.h1277 return getPreviousDecl(); in getPreviousDeclImpl()
1910 using redeclarable_base::getPreviousDecl;
2101 return getPreviousDecl(); in getPreviousDeclImpl()
2245 using redeclarable_base::getPreviousDecl;
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DDeclTemplate.cpp161 for (const RedeclarableTemplateDecl *Prev = getPreviousDecl(); Prev; in getCommonPtr()
162 Prev = Prev->getPreviousDecl()) { in getCommonPtr()
316 for (; Prev; Prev = Prev->getPreviousDecl()) { in mergePrevDecl()
951 CurD = CurD->getPreviousDecl(); in getDefinition()
H A DTemplateName.cpp154 Decl = cast<TemplateDecl>(Decl->getPreviousDecl()); in getNameToSubstitute()
H A DDecl.cpp640 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
650 for (const VarDecl *PrevVar = Var->getPreviousDecl(); PrevVar; in getLVForNamespaceScopeDecl()
651 PrevVar = PrevVar->getPreviousDecl()) { in getLVForNamespaceScopeDecl()
1103 TD = TD->getPreviousDecl(); in getExplicitVisibilityAux()
1230 if (const VarDecl *Prev = Var->getPreviousDecl()) { in getLVForLocalDecl()
3101 FD = FD->getPreviousDecl()) in isMSExternInline()
3112 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3113 FD = FD->getPreviousDecl()) in redeclForcesDefMSVC()
3166 while ((Prev = Prev->getPreviousDecl())) { in doesDeclarationForceExternallyVisibleDefinition()
3194 while ((Prev = Prev->getPreviousDecl())) { in doesDeclarationForceExternallyVisibleDefinition()
H A DDeclCXX.cpp824 if (Primary->getPreviousDecl()) in addedMember()
825 Conversions.replace(cast<NamedDecl>(Primary->getPreviousDecl()), in addedMember()
2618 return getPreviousDecl(); in getPreviousDeclImpl()
2632 return getPreviousDecl(); in getPreviousDeclImpl()
H A DTextNodeDumper.cpp33 const T *Prev = D->getPreviousDecl(); in dumpPreviousDeclImpl()
H A DDeclBase.cpp1233 N = N->getPreviousDecl()) in collectAllContexts()
H A DASTDumper.cpp413 if (Decl *Prev = D->getPreviousDecl()) in dumpLookups()
H A DDeclObjC.cpp321 decl = decl->getPreviousDecl()) { in getTypeParamList()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp494 DeclT *Result = D->getPreviousDecl(); in getPreviousDeclForInstantiation()
1876 if (TemplateParams && FunctionTemplate->getPreviousDecl()) { in VisitFunctionDecl()
1879 FunctionTemplate->getPreviousDecl()->getTemplateParameters(), in VisitFunctionDecl()
1886 if (Function->isLocalExternDecl() && !Function->getPreviousDecl()) in VisitFunctionDecl()
2140 if (isFriend && Method->getPreviousDecl()) in VisitCXXMethodDecl()
2141 Method->setAccess(Method->getPreviousDecl()->getAccess()); in VisitCXXMethodDecl()
2167 if (!D->getPreviousDecl()) in VisitCXXMethodDecl()
3985 D = D->getPreviousDecl()) { in InstantiateFunctionDefinition()
4205 if (NewVar->isLocalExternDecl() && OldVar->getPreviousDecl() && in BuildVariableInstantiation()
4206 (!OldVar->getPreviousDecl()->getDeclContext()->isDependentContext() || in BuildVariableInstantiation()
[all …]
H A DSemaAccess.cpp1108 PrevDecl = VD->getPreviousDecl(); in diagnoseBadDirectAccess()
1110 PrevDecl = FD->getPreviousDecl(); in diagnoseBadDirectAccess()
1112 PrevDecl = TND->getPreviousDecl(); in diagnoseBadDirectAccess()
1116 PrevDecl = TD->getPreviousDecl(); in diagnoseBadDirectAccess()
H A DSemaLookup.cpp441 for (Decl *Prev = DUnderlying->getPreviousDecl(); Prev; in isPreferredLookupResult()
442 Prev = Prev->getPreviousDecl()) in isPreferredLookupResult()
3282 Cursor = Cursor->getPreviousDecl(); in insert()
3345 D = cast_or_null<NamedDecl>(D->getPreviousDecl())) { in ArgumentDependentLookup()
H A DSemaDecl.cpp3685 PrevVD = PrevVD->getPreviousDecl()) { in MergeVarDeclTypes()
6843 NewVD->getPreviousDecl() in ActOnVariableDeclarator()
8976 if (isFriend && NewFD->getPreviousDecl()) { in ActOnFunctionDeclarator()
8979 Access = NewFD->getPreviousDecl()->getAccess(); in ActOnFunctionDeclarator()
9604 for (const Decl *D = FD->getPreviousDecl(); D; D = D->getPreviousDecl()) { in PreviousDeclsHaveMultiVersionAttribute()
10963 if (VarDecl *Old = VDecl->getPreviousDecl()) { in DeduceVariableDeclarationType()
11785 VarDecl *prev = var->getPreviousDecl(); in CheckCompleteVariableDeclaration()
11787 prev = prev->getPreviousDecl(); in CheckCompleteVariableDeclaration()
12684 for (const FunctionDecl *Prev = FD->getPreviousDecl(); in ShouldWarnAboutMissingPrototype()
12685 Prev; Prev = Prev->getPreviousDecl()) { in ShouldWarnAboutMissingPrototype()
[all …]
H A DSemaTemplate.cpp3862 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in ActOnVarTemplateSpecialization()
7706 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in ActOnClassTemplateSpecialization()
7838 Prev = Prev->getPreviousDecl()) { in DiagLocForExplicitInstantiation()
7916 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
8001 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
8986 = cast_or_null<CXXRecordDecl>(Record->getPreviousDecl()); in ActOnExplicitInstantiation()
9370 FunctionDecl *PrevDecl = Specialization->getPreviousDecl(); in ActOnExplicitInstantiation()
H A DSemaTemplateInstantiate.cpp2667 if (Record->isInjectedClassName() || Record->getPreviousDecl() || in InstantiateClassMembers()
2914 CheckD = Tag->getPreviousDecl(); in findInstantiationOf()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTWriterDecl.cpp174 for (const Decl *R = D->getMostRecentDecl(); R; R = R->getPreviousDecl()) { in AddFirstDeclFromEachModule()
1069 assert(D->getPreviousDecl() == nullptr && "PARM_VAR_DECL can't be redecl"); in VisitParmVarDecl()
1484 if (D->getPreviousDecl() == nullptr) { in VisitClassTemplatePartialSpecializationDecl()
1544 if (D->getPreviousDecl() == nullptr) { in VisitVarTemplatePartialSpecializationDecl()
1673 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl()
1709 Prev != FirstLocal; Prev = Prev->getPreviousDecl()) in VisitRedeclarable()
1730 (void)Writer.GetDeclRef(D->getPreviousDecl()); in VisitRedeclarable()
H A DASTReaderDecl.cpp476 Current = Current->getPreviousDecl(); in operator ++()
3435 for (VarDecl *CurD = PrevVD; CurD; CurD = CurD->getPreviousDecl()) { in attachPreviousDeclImpl()
4186 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
4192 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
H A DASTWriter.cpp3525 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup()
3527 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup()
4151 for (auto *Prev = cast<NamespaceDecl>(DC)->getPreviousDecl(); Prev; in WriteDeclContextVisibleBlock()
4152 Prev = Prev->getPreviousDecl()) in WriteDeclContextVisibleBlock()
6392 for (auto Prev = D->getMostRecentDecl(); Prev; Prev = Prev->getPreviousDecl()) in DeclarationMarkedUsed()
H A DASTReader.cpp6268 for (auto *DI = D; DI; DI = DI->getPreviousDecl()) { in readTypeRecord()
6276 for (auto *DI = D; DI; DI = DI->getPreviousDecl()) in readTypeRecord()
9358 R = R->getPreviousDecl()) { in finishPendingActions()
9374 for (auto *R = getMostRecentExistingDecl(ID); R; R = R->getPreviousDecl()) in finishPendingActions()
9381 for (auto *R = getMostRecentExistingDecl(PD); R; R = R->getPreviousDecl()) in finishPendingActions()
9388 for (auto *R = getMostRecentExistingDecl(RTD); R; R = R->getPreviousDecl()) in finishPendingActions()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp374 FunctionDecl *Old = cast<FunctionDecl>(LM.Method)->getPreviousDecl(); in ParseLexedMethodDeclaration()

12