| /src/external/apache2/llvm/dist/clang/lib/Sema/ |
| SemaModule.cpp | 347 checkModuleImportContext(*this, Mod, ImportLoc, CurContext); 384 ImportDecl *Import = ImportDecl::Create(Context, CurContext, StartLoc, 386 CurContext->addDecl(Import); 405 checkModuleImportContext(*this, Mod, DirectiveLoc, CurContext, true); 439 checkModuleImportContext(*this, Mod, DirectiveLoc, CurContext, true); 452 for (auto *DC = CurContext; DC; DC = DC->getLexicalParent()) { 493 for (auto *DC = CurContext; DC; DC = DC->getLexicalParent()) { 525 ExportDecl *D = ExportDecl::Create(Context, CurContext, ExportLoc); 547 for (const DeclContext *DC = CurContext; DC; DC = DC->getLexicalParent()) { 577 CurContext->addDecl(D) [all...] |
| SemaCodeComplete.cpp | 313 bool CheckHiddenResult(Result &R, DeclContext *CurContext, 322 /// \param CurContext the context in which this result will be named. 323 void MaybeAddResult(Result R, DeclContext *CurContext = nullptr); 330 /// \param CurContext the context in which this result will be named. 336 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding, 386 if (isa<BlockDecl>(S.CurContext)) { 392 } else if (const auto *Function = dyn_cast<FunctionDecl>(S.CurContext)) { 396 } else if (const auto *Method = dyn_cast<ObjCMethodDecl>(S.CurContext)) { 695 /// (\p CurContext) to the target context (\p TargetContext). 699 /// \param CurContext the context where an entity is being named, which i [all...] |
| SemaCUDA.cpp | 687 if (!isa<FunctionDecl>(CurContext)) 701 return (getEmissionStatus(cast<FunctionDecl>(CurContext)) == 710 dyn_cast<FunctionDecl>(CurContext), *this); 717 if (!isa<FunctionDecl>(CurContext)) 730 return (getEmissionStatus(cast<FunctionDecl>(CurContext)) == 739 dyn_cast<FunctionDecl>(CurContext), *this); 752 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); 818 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext);
|
| SemaCXXScopeSpec.cpp | 28 DeclContext *CurContext) { 36 Record->isCurrentInstantiation(CurContext)) 58 return ::getCurrentInstantiationOf(T, CurContext); 187 return ::getCurrentInstantiationOf(T, CurContext); 798 DeclContext *DC = LookupCtx ? LookupCtx : CurContext; 1025 if (isa<ObjCContainerDecl>(CurContext) || isa<ObjCMethodDecl>(CurContext)) 1050 return CurContext->getRedeclContext()->isFileContext();
|
| SemaDeclCXX.cpp | 743 DeclContext *const DC = CurContext; 897 CurContext->addHiddenDecl(New); 2389 return dyn_cast_or_null<CXXRecordDecl>(CurContext); 2416 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); 3023 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext, 3025 CurContext->addHiddenDecl(ASDecl); 3241 assert(isa<CXXRecordDecl>(CurContext)); 3248 if (cast<CXXRecordDecl>(CurContext)->isInterface()) { 3413 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D, 3419 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D [all...] |
| SemaDecl.cpp | 243 for (DeclContext *DC = S.CurContext; 570 NNS = synthesizeCurrentNestedNameSpecifier(Context, CurContext); 573 findRecordWithDependentBasesOfEnclosingMethod(CurContext)) { 643 if (CurContext->isRecord()) { 649 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext); 655 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); 1283 assert(DC->getLexicalParent() == CurContext && 1285 CurContext = DC; 1290 assert(CurContext && "DeclContext imbalance!"); 1292 CurContext = CurContext->getLexicalParent() [all...] |
| SemaCoroutine.cpp | 196 auto *FD = dyn_cast<FunctionDecl>(S.CurContext); 198 S.Diag(Loc, isa<ObjCMethodDecl>(S.CurContext) 529 assert(isa<FunctionDecl>(CurContext) && "not in a function scope"); 530 auto *FD = cast<FunctionDecl>(CurContext); 634 assert(isa<FunctionDecl>(S.CurContext) && "not in a function scope"); 677 S.Diag(cast<FunctionDecl>(S.CurContext)->getLocation(), 743 auto *Fn = cast<FunctionDecl>(CurContext); 1648 VarDecl *Decl = VarDecl::Create(S.Context, S.CurContext, Loc, Loc, II, Type, 1657 assert(isa<FunctionDecl>(CurContext) && "not in a function scope"); 1658 auto *FD = cast<FunctionDecl>(CurContext); [all...] |
| SemaOpenMP.cpp | 1398 DeclContext *DC = SemaRef.CurContext; 2729 if (!CurContext->isDependentContext()) 2921 CurContext->addDecl(D); 3202 if (!CurContext->isFileContext()) { 3207 CurContext->addDecl(D); 3242 auto *Ctx = CurContext; 4281 DSAStack->setContext(CurContext); 4314 auto *CED = OMPCapturedExprDecl::Create(C, S.CurContext, Id, Ty, 4318 S.CurContext->addHiddenDecl(CED); 4388 if (!CurContext->isDependentContext() & [all...] |
| SemaLambda.cpp | 245 DeclContext *DC = CurContext; 319 inTemplateInstantiation() || CurContext->isDependentContext(); 326 isInInlineFunction(CurContext)) { 403 Method->setLexicalDeclContext(CurContext); 414 TemplateMethod->setLexicalDeclContext(CurContext); 869 VarDecl *NewVD = VarDecl::Create(Context, CurContext, Loc, 1775 // set as CurContext seems more faithful to the source. 1801 if (!CurContext->isDependentContext() && !IsImplicit && 1926 if (!CurContext->isDependentContext()) { 1984 BlockDecl *Block = BlockDecl::Create(Context, CurContext, ConvLocation) [all...] |
| SemaDeclObjC.cpp | 765 return ObjCTypeParamDecl::Create(Context, CurContext, variance, varianceLoc, 1036 CurContext, 1055 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName, 1176 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); 1231 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, 1251 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, 1783 = ObjCProtocolDecl::Create(Context, CurContext, Ident, 1821 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, 1825 CurContext->addDecl(CDecl); 1868 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc [all...] |
| SemaTemplate.cpp | 1774 SemanticContext = CurContext; 1829 DeclContext *OutermostContext = CurContext; 1883 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && 1943 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && 1973 = !(TUK == TUK_Friend && CurContext->isDependentContext()); 2023 NewClass->setLexicalDeclContext(CurContext); 2024 NewTemplate->setLexicalDeclContext(CurContext); 2052 if (!CurContext->isDependentContext()) { 2061 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc); 2063 CurContext->addDecl(Friend) [all...] |
| SemaStmt.cpp | 598 if (CurContext->isDependentContext() || (E && E->isInstantiationDependent())) 620 assert(!CurContext->isDependentContext() && 681 const auto *CallerDecl = dyn_cast<FunctionDecl>(CurContext); 686 if (isa<BlockDecl>(CurContext)) 688 else if (isa<ObjCMethodDecl>(CurContext)) 695 } else if (const auto *CMD = dyn_cast<CXXMethodDecl>(CurContext)) { 2360 SemaRef.CurContext->addHiddenDecl(Decl); 2401 DeclContext *DC = SemaRef.CurContext; 3652 if (!CurContext->isDependentContext()) 4005 FunctionDecl *FD = cast<FunctionDecl>(CurContext); [all...] |
| Sema.cpp | 158 CodeCompleter(CodeCompleter), CurContext(nullptr), 472 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); 1334 DeclContext *DC = CurContext; 1485 auto *FD = dyn_cast<FunctionDecl>(CurContext); 2089 !CurBSI->TheDecl->Encloses(CurContext)) { 2113 if (LSI->Lambda && !LSI->Lambda->Encloses(CurContext)) { 2140 !CurLSI->Lambda->Encloses(CurContext)) {
|
| SemaLookup.cpp | 4098 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); 4108 if (Res && Res->getDeclContext() != CurContext) 4112 Res = LabelDecl::Create(Context, CurContext, Loc, II); 4507 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) 4508 : Context(Context), CurContextChain(buildContextChain(CurContext)) { 4762 if (isa<CXXMethodDecl>(SemaRef.CurContext) && 4763 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) 4843 if (getLangOpts().MSVCCompat && CurContext->isDependentContext() && 4844 isa<CXXMethodDecl>(CurContext)) 5234 CurContext(SemaRef.CurContext), MemberFn(ME) [all...] |
| SemaAccess.cpp | 1472 EffectiveContext EC(S.CurContext); 1693 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent(); 1808 EffectiveContext EC(CurContext); 1921 EffectiveContext EC(CurContext);
|
| SemaExprCXX.cpp | 1178 if (ThisTy.isNull() && isLambdaCallOperator(CurContext) && 1193 if (!ThisTy.isNull() && isLambdaCallOperator(CurContext)) 1195 CurContext, Context); 1543 const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); 1637 if (auto *Caller = dyn_cast<FunctionDecl>(S.CurContext)) 2782 EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(CurContext), Matches); 7230 FunctionDecl *CurFD = dyn_cast<FunctionDecl>(CurContext); 7911 assert(S.CurContext->isDependentContext()); 7913 DeclContext *DC = S.CurContext; 7918 "The current call operator must be synchronized with Sema's CurContext"); [all...] |
| SemaExpr.cpp | 83 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable) 330 auto *DRD = dyn_cast<OMPDeclareReductionDecl>(CurContext); 331 if (LangOpts.OpenMP && DRD && !CurContext->containsDecl(D) && 1972 auto *MD = dyn_cast_or_null<CXXMethodDecl>(S.CurContext); 2143 // During a default argument instantiation the CurContext points 2150 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); 2223 DeclContext *DC = SS.isEmpty() ? CurContext : nullptr; 2387 else if (auto *MD = dyn_cast<CXXMethodDecl>(S.CurContext)) 2882 if (const BlockDecl *BD = CurContext->getInnermostBlockDecl()) 3353 if (BD->getDeclContext() != CurContext) { [all...] |
| SemaAttr.cpp | 478 !(CurContext->isTranslationUnit()) && !CurContext->isNamespace()) {
|
| SemaObjCProperty.cpp | 193 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext); 419 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext); 421 DeclContext *DC = CurContext; 1086 dyn_cast<ObjCContainerDecl>(CurContext); 1424 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc,
|
| SemaExprMember.cpp | 1822 auto *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); 1834 !CurContext->isDependentContext() &&
|
| SemaOverload.cpp | 1059 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord() && 6425 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) 6934 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) 9582 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext)) { 9865 FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext); 9969 const FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext); 10990 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext); 12046 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext)) 12163 S.EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(S.CurContext), Matches); 12706 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) [all...] |
| SemaStmtAsm.cpp | 129 FunctionDecl *Func = dyn_cast<FunctionDecl>(S.CurContext);
|
| /src/external/apache2/llvm/dist/clang/lib/AST/ |
| CXXInheritance.cpp | 117 CXXRecordDecl::isCurrentInstantiation(const DeclContext *CurContext) const { 120 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent()) 121 if (CurContext->Equals(this))
|
| /src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| SemaInternal.h | 103 Namespaces(SemaRef.Context, SemaRef.CurContext, SS), 238 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
|
| TypoCorrection.h | 393 DeclContext *CurContext;
|