Searched refs:isFunctionOrMethod (Results 1 – 25 of 27) sorted by relevance
12
283 while (DC && !DC->isFunctionOrMethod()) { in getParentName()381 if (DC->isFunctionOrMethod()) in addParentContext()
101 if (Ctx->isFunctionOrMethod() || (S && S->isFunctionPrototypeScope())) { in isDeclInScope()
30 if (DC->isFunctionOrMethod()) in isDeclWithinFunction()594 Parent->getRedeclContext()->isFunctionOrMethod()) in VisitFieldDecl()864 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition()1335 Owner->isFunctionOrMethod() || in VisitFunctionDecl()2206 if (!Owner->isFunctionOrMethod()) in VisitUsingDirectiveDecl()2278 bool isFunctionScope = Owner->isFunctionOrMethod(); in VisitUsingDecl()3617 if (NewVar->getDeclContext()->isFunctionOrMethod()) in BuildVariableInstantiation()3642 NewVar->getDeclContext()->isFunctionOrMethod() && in BuildVariableInstantiation()4378 (ParentDC->isFunctionOrMethod() && ParentDC->isDependentContext()) || in FindInstantiatedDecl()
553 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename()1205 !D->getLexicalDeclContext()->isFunctionOrMethod()) in PushOnScopeChains()1446 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()3052 if (!New->getLexicalDeclContext()->isFunctionOrMethod()) in MergeFunctionDecl()3236 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious()3237 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious()3241 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious()3689 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()4714 else if (CurContext->isFunctionOrMethod() && in HandleDeclarator()5126 if (!OuterContext->isFunctionOrMethod()) in isOutOfScopePreviousDeclaration()[all …]
116 } else if (!Ctx || Ctx->isFunctionOrMethod()) { in visitScopeChain()346 if (DC->isFunctionOrMethod()) in getContextForScopeMatching()997 if (Ctx->isFunctionOrMethod()) { in CppLookupName()3196 (S->getEntity())->isFunctionOrMethod()) { in LookupVisibleDecls()3236 if (Ctx->isFunctionOrMethod()) in LookupVisibleDecls()
247 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in createLambdaClosureType()951 if (Intro.Default != LCD_None && !Class->getParent()->isFunctionOrMethod() && in ActOnStartOfLambdaDefinition()
762 if (DC->isDependentContext() && DC->isFunctionOrMethod()) { in BuildCXXNestedNameSpecifier()
51 static bool isFunctionOrMethod(const Decl *D) { in isFunctionOrMethod() function57 return isFunctionOrMethod(D) || isa<BlockDecl>(D); in isFunctionOrMethodOrBlock()1715 } else if (!isFunctionOrMethod(D)) { in handleUsedAttr()3201 } else if (!isFunctionOrMethod(D)) { in handleNoDebugAttr()3530 if (!isFunctionOrMethod(D) || !hasFunctionProto(D)) { in handleArgumentWithTypeTagAttr()
3632 while (DC && !DC->isFunctionOrMethod()) in ActOnSEHTryBlock()3711 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in CreateCapturedStmtRecordDecl()
459 CommonAncestor->isFunctionOrMethod()) in getRequiredQualification()565 if (HiddenCtx->isFunctionOrMethod()) in CheckHiddenResult()715 if (LexicalDC->isFunctionOrMethod()) { in getBasePriority()
4109 if (Tag->getDeclContext()->isFunctionOrMethod()) { in VisitTagDecl()5804 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) { in CheckTemplateSpecializationScope()
2699 else if (D->getLexicalDeclContext()->isFunctionOrMethod()) in UseArgumentDependentLookup()12272 if (!S.getLangOpts().CPlusPlus && !S.CurContext->isFunctionOrMethod()) in diagnoseUncapturableValueReference()13184 Var->getDeclContext()->isFunctionOrMethod() && Var->hasLocalStorage()); in DoMarkVarDeclReferenced()
2383 !S.CurContext->isFunctionOrMethod() || in warnAboutAmbiguousFunction()
35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
1201 bool isFunctionOrMethod() const { in isFunctionOrMethod() function1214 return !isFunctionOrMethod() && DeclKind != Decl::LinkageSpec; in isLookupContext()
945 return DC->getRedeclContext()->isFunctionOrMethod(); in isLocalVarDecl()960 return DC->isFunctionOrMethod() && DC->getDeclKind() != Decl::Block; in isFunctionOrMethodVarDecl()
178 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()1512 if (isFunctionOrMethod()) in makeDeclVisibleInContextWithFlags()
2338 if (!DC->isFunctionOrMethod()) { in VisitTypedefNameDecl()2419 if (!DC->isFunctionOrMethod() && SearchName) { in VisitEnumDecl()2505 if (!DC->isFunctionOrMethod()) { in VisitRecordDecl()2626 if (!LexicalDC->isFunctionOrMethod()) { in VisitEnumConstantDecl()2678 if (!LexicalDC->isFunctionOrMethod()) { in VisitFunctionDecl()4029 if (!DC->isFunctionOrMethod()) { in VisitClassTemplateDecl()4217 assert(!DC->isFunctionOrMethod() && in VisitVarTemplateDecl()
166 if (!DC->isFunctionOrMethod()) in getNextDiscriminator()356 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
861 if (DC->isFunctionOrMethod()) return; in AppendScope()
1298 if (D->getDeclContext()->isFunctionOrMethod()) in computeLVForDecl()1369 if (Ctx->isFunctionOrMethod()) { in printQualifiedName()
2187 Tag->getDeclContext()->isFunctionOrMethod() || in computeCachedProperties()
448 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
662 if (DC->isFunctionOrMethod() && (DC->getDeclKind() != Decl::Captured)) { in ComputeName()
1074 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()