Searched refs:isFunctionOrMethod (Results 1 – 25 of 28) sorted by relevance
12
286 while (DC && !DC->isFunctionOrMethod()) { in getParentName()384 if (DC->isFunctionOrMethod()) in addParentContext()
101 if (Ctx->isFunctionOrMethod() || S->isFunctionPrototypeScope()) { in isDeclInScope()
30 if (DC->isFunctionOrMethod()) in isDeclWithinFunction()510 Parent->getRedeclContext()->isFunctionOrMethod()) in VisitFieldDecl()779 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition()1247 Owner->isFunctionOrMethod() || in VisitFunctionDecl()2118 if (!Owner->isFunctionOrMethod()) in VisitUsingDirectiveDecl()2190 bool isFunctionScope = Owner->isFunctionOrMethod(); in VisitUsingDecl()3629 if (NewVar->getDeclContext()->isFunctionOrMethod()) in BuildVariableInstantiation()3654 NewVar->getDeclContext()->isFunctionOrMethod() && !NewVar->isUsed() && in BuildVariableInstantiation()4410 (ParentDC->isFunctionOrMethod() && ParentDC->isDependentContext()) || in FindInstantiatedDecl()
505 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename()1157 !D->getLexicalDeclContext()->isFunctionOrMethod()) in PushOnScopeChains()1398 !D->getDeclContext()->isFunctionOrMethod()) in ShouldDiagnoseUnusedDecl()2891 if (!New->getLexicalDeclContext()->isFunctionOrMethod()) in MergeFunctionDecl()3075 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious()3076 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious()3080 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious()3450 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()4470 else if (CurContext->isFunctionOrMethod() && in HandleDeclarator()4896 if (!OuterContext->isFunctionOrMethod()) in isOutOfScopePreviousDeclaration()[all …]
116 } else if (!Ctx || Ctx->isFunctionOrMethod()) { in visitScopeChain()345 if (DC->isFunctionOrMethod()) in getContextForScopeMatching()996 if (Ctx->isFunctionOrMethod()) { in CppLookupName()3115 (S->getEntity())->isFunctionOrMethod()) { in LookupVisibleDecls()3155 if (Ctx->isFunctionOrMethod()) in LookupVisibleDecls()
247 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in createLambdaClosureType()946 if (Intro.Default != LCD_None && !Class->getParent()->isFunctionOrMethod() && in ActOnStartOfLambdaDefinition()
50 static bool isFunctionOrMethod(const Decl *D) { in isFunctionOrMethod() function221 assert(isFunctionOrMethod(D)); in checkFunctionOrMethodParameterIndex()1491 if (!isFunctionOrMethod(D) && !isa<BlockDecl>(D)) { in handleAnalyzerNoReturnAttr()1587 } else if (!isFunctionOrMethod(D)) { in handleUsedAttr()3007 } else if (!isFunctionOrMethod(D)) { in handleNoDebugAttr()3290 if (!isFunctionOrMethod(D) || !hasFunctionProto(D)) { in handleArgumentWithTypeTagAttr()
705 if (DC->isDependentContext() && DC->isFunctionOrMethod()) { in BuildCXXNestedNameSpecifier()
459 CommonAncestor->isFunctionOrMethod()) in getRequiredQualification()566 if (HiddenCtx->isFunctionOrMethod()) in CheckHiddenResult()716 if (LexicalDC->isFunctionOrMethod()) { in getBasePriority()
1652 D->getDeclContext()->isFunctionOrMethod()) || in BuildDeclRefExpr()2619 else if (D->getLexicalDeclContext()->isFunctionOrMethod()) in UseArgumentDependentLookup()11582 if (!S.getLangOpts().CPlusPlus && !S.CurContext->isFunctionOrMethod()) in diagnoseUncapturableValueReference()12448 Var->getDeclContext()->isFunctionOrMethod() && in DoMarkVarDeclReferenced()
4096 if (Tag->getDeclContext()->isFunctionOrMethod()) { in VisitTagDecl()5683 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) { in CheckTemplateSpecializationScope()
3318 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in CreateCapturedStmtRecordDecl()
452 if (!ScopeDC->isFunctionOrMethod()) in MergeCXXFunctionDecl()7166 if (Ctx && !Ctx->isFunctionOrMethod()) in PushUsingDirective()7602 else if (!CurContext->isFunctionOrMethod() && D->isLocalExternDecl() && in BuildUsingDeclaration()
35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
178 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()1464 if (isFunctionOrMethod()) in makeDeclVisibleInContextWithFlags()
2315 if (!DC->isFunctionOrMethod()) { in VisitTypedefNameDecl()2396 if (!DC->isFunctionOrMethod() && SearchName) { in VisitEnumDecl()2482 if (!DC->isFunctionOrMethod()) { in VisitRecordDecl()2603 if (!LexicalDC->isFunctionOrMethod()) { in VisitEnumConstantDecl()2655 if (!LexicalDC->isFunctionOrMethod()) { in VisitFunctionDecl()3972 if (!DC->isFunctionOrMethod()) { in VisitClassTemplateDecl()4160 assert(!DC->isFunctionOrMethod() && in VisitVarTemplateDecl()
145 if (!DC->isFunctionOrMethod()) in getNextDiscriminator()327 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
844 if (DC->isFunctionOrMethod()) return; in AppendScope()
1274 if (D->getDeclContext()->isFunctionOrMethod()) in computeLVForDecl()1345 if (Ctx->isFunctionOrMethod()) { in printQualifiedName()
2201 Tag->getDeclContext()->isFunctionOrMethod() || in computeCachedProperties()
428 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
624 if (DC->isFunctionOrMethod() && (DC->getDeclKind() != Decl::Captured)) { in ComputeName()
1134 bool isFunctionOrMethod() const { in isFunctionOrMethod() function
890 return DC->getRedeclContext()->isFunctionOrMethod(); in isLocalVarDecl()900 return DC->isFunctionOrMethod() && DC->getDeclKind() != Decl::Block; in isFunctionOrMethodVarDecl()
1002 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()