Home
last modified time | relevance | path

Searched refs:getRedeclContext (Results 1 – 25 of 69) sorted by relevance

123

/external/llvm-project/clang/lib/Sema/
DIdentifierResolver.cpp101 Ctx = Ctx->getRedeclContext(); in isDeclInScope()
138 DeclContext *DCtx = D->getDeclContext()->getRedeclContext(); in isDeclInScope()
335 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
365 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
DSemaDecl.cpp1509 DeclContext *IDC = (*I)->getLexicalDeclContext()->getRedeclContext(); in PushOnScopeChains()
3129 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl()
3130 New->getDeclContext()->getRedeclContext()) && in checkUsingShadowRedecl()
3177 auto *NamedDC = NewD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3178 auto *SemaDC = OldD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
4995 DeclContext *OwnerScope = Owner->getRedeclContext(); in BuildAnonymousStructOrUnion()
5789 } else if (CurContext->getRedeclContext()->isTranslationUnit() && in HandleDeclarator()
6058 ND->getLexicalDeclContext()->getRedeclContext()->isTranslationUnit()) in RegisterLocallyScopedExternCDecl()
6202 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
6250 DeclContext *OuterContext = DC->getRedeclContext(); in isOutOfScopePreviousDeclaration()
[all …]
DSemaTemplate.cpp1847 PrevClassTemplate->getDeclContext()->getRedeclContext()->Equals( in CheckClassTemplate()
1848 SemanticContext->getRedeclContext()))) { in CheckClassTemplate()
2032 DeclContext *DC = SemanticContext->getRedeclContext(); in CheckClassTemplate()
7951 Ctx = Ctx ? Ctx->getRedeclContext() : nullptr; in CheckTemplateDeclScope()
8054 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) { in CheckTemplateSpecializationScope()
8064 Specialized->getDeclContext()->getRedeclContext(); in CheckTemplateSpecializationScope()
8065 DeclContext *DC = S.CurContext->getRedeclContext(); in CheckTemplateSpecializationScope()
8625 if (!DC->getRedeclContext()->isFileContext()) { in ActOnConceptDefinition()
8909 DeclContext *FDLookupContext = FD->getDeclContext()->getRedeclContext(); in CheckDependentFunctionTemplateSpecialization()
8922 D->getDeclContext()->getRedeclContext())) { in CheckDependentFunctionTemplateSpecialization()
[all …]
/external/clang/lib/Sema/
DIdentifierResolver.cpp99 Ctx = Ctx->getRedeclContext(); in isDeclInScope()
136 DeclContext *DCtx = D->getDeclContext()->getRedeclContext(); in isDeclInScope()
331 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
361 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
DSemaDecl.cpp1260 !D->getDeclContext()->getRedeclContext()->Equals( in PushOnScopeChains()
1261 D->getLexicalDeclContext()->getRedeclContext()) && in PushOnScopeChains()
1290 DeclContext *IDC = (*I)->getLexicalDeclContext()->getRedeclContext(); in PushOnScopeChains()
2699 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl()
2700 New->getDeclContext()->getRedeclContext()) && in checkUsingShadowRedecl()
5030 } else if (CurContext->getRedeclContext()->isTranslationUnit() && in HandleDeclarator()
5104 if (!DC->getRedeclContext()->isFileContext()) { in HandleDeclarator()
5276 ND->getLexicalDeclContext()->getRedeclContext()->isTranslationUnit()) in RegisterLocallyScopedExternCDecl()
5409 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
5457 DeclContext *OuterContext = DC->getRedeclContext(); in isOutOfScopePreviousDeclaration()
[all …]
/external/llvm-project/clang/lib/AST/
DASTImporterLookupTable.cpp106 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()
115 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove()
DDecl.cpp630 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && in getLVForNamespaceScopeDecl()
1199 dyn_cast<NamedDecl>(ContextDecl->getDeclContext()->getRedeclContext()); in getLVForClosure()
1289 LV = getLVForClosure(BD->getDeclContext()->getRedeclContext(), in getLVForLocalDecl()
1392 Record->getDeclContext()->getRedeclContext(), in computeLVForDecl()
1410 if (D->getDeclContext()->getRedeclContext()->isFileContext()) in computeLVForDecl()
1733 if (!this->getDeclContext()->getRedeclContext()->Equals( in declarationReplaces()
1734 OldD->getDeclContext()->getRedeclContext())) in declarationReplaces()
3004 dyn_cast<TranslationUnitDecl>(getDeclContext()->getRedeclContext()); in isMain()
3012 dyn_cast<TranslationUnitDecl>(getDeclContext()->getRedeclContext()); in isMSVCRTEntryPoint()
3044 if (!getDeclContext()->getRedeclContext()->isTranslationUnit()) in isReservedGlobalPlacementOperator()
[all …]
DDeclBase.cpp1095 if (getParent()->getRedeclContext()->isFileContext() && in getLookupParent()
1096 getLexicalParent()->getRedeclContext()->isRecord()) in getLookupParent()
1134 if (!getParent()->getRedeclContext()->isTranslationUnit()) in isStdNamespace()
1804 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext() function in DeclContext
DQualTypeNames.cpp269 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext(); in createNestedNameSpecifierForScopeOf()
DExternalASTMerger.cpp40 return DC->getRedeclContext(); in CanonicalizeDC()
/external/llvm-project/clang/lib/ARCMigrate/
DTransGCCalls.cpp48 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
DTransProtectedScope.cpp35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
/external/clang/lib/ARCMigrate/
DTransGCCalls.cpp49 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
DTransProtectedScope.cpp35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp68 if (!FD->getDeclContext()->getRedeclContext()->isTranslationUnit()) in isCLibraryFunction()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp66 if (!FD->getDeclContext()->getRedeclContext()->isTranslationUnit()) in isCLibraryFunction()
/external/llvm-project/clang/lib/Index/
DIndexDecl.cpp594 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUsingDecl()
605 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUsingDirectiveDecl()
622 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUnresolvedUsingValueDecl()
631 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUnresolvedUsingTypenameDecl()
/external/clang/lib/Index/
DIndexDecl.cpp352 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUsingDecl()
364 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUsingDirectiveDecl()
/external/clang/lib/AST/
DDecl.cpp580 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && in getLVForNamespaceScopeDecl()
1122 DC = ContextDecl->getDeclContext()->getRedeclContext(); in getLVForClosure()
1198 LV = getLVForClosure(BD->getDeclContext()->getRedeclContext(), in getLVForLocalDecl()
1305 OuterMostLambda->getDeclContext()->getRedeclContext(), in computeLVForDecl()
1314 if (D->getDeclContext()->getRedeclContext()->isFileContext()) in computeLVForDecl()
1538 if (!this->getDeclContext()->getRedeclContext()->Equals( in declarationReplaces()
1539 OldD->getDeclContext()->getRedeclContext())) in declarationReplaces()
2522 dyn_cast<TranslationUnitDecl>(getDeclContext()->getRedeclContext()); in isMain()
2530 dyn_cast<TranslationUnitDecl>(getDeclContext()->getRedeclContext()); in isMSVCRTEntryPoint()
2562 if (!getDeclContext()->getRedeclContext()->isTranslationUnit()) in isReservedGlobalPlacementOperator()
[all …]
DDeclBase.cpp894 if (getParent()->getRedeclContext()->isFileContext() && in getLookupParent()
895 getLexicalParent()->getRedeclContext()->isRecord()) in getLookupParent()
915 if (!getParent()->getRedeclContext()->isTranslationUnit()) in isStdNamespace()
1534 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext() function in DeclContext
DASTImporter.cpp2480 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitNamespaceDecl()
2546 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitTypedefNameDecl()
2662 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitEnumDecl()
2751 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitRecordDecl()
2900 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitEnumConstantDecl()
2955 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitFunctionDecl()
3185 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitFieldDecl()
3249 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitIndirectFieldDecl()
3319 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCIvarDecl()
3377 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitVarDecl()
[all …]
/external/clang/include/clang/AST/
DDeclBase.h1360 DeclContext *getRedeclContext();
1361 const DeclContext *getRedeclContext() const { in getRedeclContext() function
1362 return const_cast<DeclContext *>(this)->getRedeclContext(); in getRedeclContext()
DDecl.h322 DC = DC->getRedeclContext(); in isCXXClassMember()
1031 return DC->getRedeclContext()->isFunctionOrMethod(); in isLocalVarDecl()
1045 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl()
1118 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
/external/llvm-project/clang/include/clang/AST/
DDeclBase.h1969 DeclContext *getRedeclContext();
1970 const DeclContext *getRedeclContext() const { in getRedeclContext() function
1971 return const_cast<DeclContext *>(this)->getRedeclContext(); in getRedeclContext()
/external/clang/lib/Tooling/Core/
DQualTypeNames.cpp285 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext(); in createNestedNameSpecifierForScopeOf()

123