Home
last modified time | relevance | path

Searched refs:isFunctionOrMethod (Results 1 – 25 of 27) sorted by relevance

12

/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp283 while (DC && !DC->isFunctionOrMethod()) { in getParentName()
381 if (DC->isFunctionOrMethod()) in addParentContext()
DIdentifierResolver.cpp101 if (Ctx->isFunctionOrMethod() || (S && S->isFunctionPrototypeScope())) { in isDeclInScope()
DSemaTemplateInstantiateDecl.cpp30 if (DC->isFunctionOrMethod()) in isDeclWithinFunction()
626 Parent->getRedeclContext()->isFunctionOrMethod()) in VisitFieldDecl()
905 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition()
1400 Owner->isFunctionOrMethod() || in VisitFunctionDecl()
2270 if (!Owner->isFunctionOrMethod()) in VisitUsingDirectiveDecl()
2342 bool isFunctionScope = Owner->isFunctionOrMethod(); in VisitUsingDecl()
3670 if (NewVar->getDeclContext()->isFunctionOrMethod()) in BuildVariableInstantiation()
3695 NewVar->getDeclContext()->isFunctionOrMethod() && in BuildVariableInstantiation()
4431 (ParentDC->isFunctionOrMethod() && ParentDC->isDependentContext()) || in FindInstantiatedDecl()
DSemaDecl.cpp552 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename()
1222 !D->getLexicalDeclContext()->isFunctionOrMethod()) in PushOnScopeChains()
1463 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
3166 if (!New->getLexicalDeclContext()->isFunctionOrMethod()) in MergeFunctionDecl()
3363 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious()
3364 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious()
3368 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious()
3872 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
4891 else if (CurContext->isFunctionOrMethod() && in HandleDeclarator()
5325 if (!OuterContext->isFunctionOrMethod()) in isOutOfScopePreviousDeclaration()
[all …]
DSemaLambda.cpp247 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in createLambdaClosureType()
910 if (Intro.Default != LCD_None && !Class->getParent()->isFunctionOrMethod() && in ActOnStartOfLambdaDefinition()
DSemaLookup.cpp120 } else if (!Ctx || Ctx->isFunctionOrMethod()) { in visitScopeChain()
350 if (DC->isFunctionOrMethod()) in getContextForScopeMatching()
1140 if (Ctx->isFunctionOrMethod()) { in CppLookupName()
3517 (S->getEntity())->isFunctionOrMethod()) { in LookupVisibleDecls()
3557 if (Ctx->isFunctionOrMethod()) in LookupVisibleDecls()
DSemaType.cpp2831 !S.CurContext->isFunctionOrMethod() || in warnAboutAmbiguousFunction()
3187 if (ctx->isFunctionOrMethod()) in getNullabilityCompletenessCheckFileID()
3390 bool isFunctionOrMethod = false; in GetFullTypeForDeclarator() local
3396 isFunctionOrMethod = true; in GetFullTypeForDeclarator()
3400 if (state.getDeclarator().isObjCIvar() && !isFunctionOrMethod) { in GetFullTypeForDeclarator()
3437 if (isFunctionOrMethod && inAssumeNonNullRegion) in GetFullTypeForDeclarator()
3442 if (isFunctionOrMethod) { in GetFullTypeForDeclarator()
DSemaCXXScopeSpec.cpp765 if (DC->isDependentContext() && DC->isFunctionOrMethod()) { in BuildCXXNestedNameSpecifier()
DSemaDeclAttr.cpp52 static bool isFunctionOrMethod(const Decl *D) { in isFunctionOrMethod() function
58 return isFunctionOrMethod(D) || isa<BlockDecl>(D); in isFunctionOrMethodOrBlock()
1795 } else if (!isFunctionOrMethod(D)) { in handleUsedAttr()
3485 } else if (!isFunctionOrMethod(D)) { in handleNoDebugAttr()
3897 if (!isFunctionOrMethod(D) || !hasFunctionProto(D)) { in handleArgumentWithTypeTagAttr()
4533 if (!isFunctionOrMethod(D)) { in handleMipsInterruptAttr()
DSemaStmt.cpp3681 while (DC && !DC->isFunctionOrMethod()) in ActOnSEHTryBlock()
3764 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in CreateCapturedStmtRecordDecl()
DSemaCodeComplete.cpp459 CommonAncestor->isFunctionOrMethod()) in getRequiredQualification()
565 if (HiddenCtx->isFunctionOrMethod()) in CheckHiddenResult()
715 if (LexicalDC->isFunctionOrMethod()) { in getBasePriority()
DSemaTemplate.cpp4187 if (Tag->getDeclContext()->isFunctionOrMethod()) { in VisitTagDecl()
5884 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) { in CheckTemplateSpecializationScope()
DSemaExpr.cpp2693 else if (D->getLexicalDeclContext()->isFunctionOrMethod()) in UseArgumentDependentLookup()
12603 if (!S.getLangOpts().CPlusPlus && !S.CurContext->isFunctionOrMethod()) in diagnoseUncapturableValueReference()
13445 Var->getDeclContext()->isFunctionOrMethod() && Var->hasLocalStorage()); in DoMarkVarDeclReferenced()
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
/external/clang/lib/AST/
DDeclBase.cpp203 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()
272 if (LDC->isFunctionOrMethod()) in isLexicallyWithinFunctionOrMethod()
1548 if (isFunctionOrMethod()) in makeDeclVisibleInContextWithFlags()
DASTImporter.cpp2396 if (!DC->isFunctionOrMethod()) { in VisitTypedefNameDecl()
2480 if (!DC->isFunctionOrMethod() && SearchName) { in VisitEnumDecl()
2569 if (!DC->isFunctionOrMethod()) { in VisitRecordDecl()
2693 if (!LexicalDC->isFunctionOrMethod()) { in VisitEnumConstantDecl()
2748 if (!LexicalDC->isFunctionOrMethod()) { in VisitFunctionDecl()
4204 if (!DC->isFunctionOrMethod()) { in VisitClassTemplateDecl()
4395 assert(!DC->isFunctionOrMethod() && in VisitVarTemplateDecl()
DMicrosoftMangle.cpp170 if (!DC->isFunctionOrMethod()) in getNextDiscriminator()
363 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
DDecl.cpp1335 if (D->getDeclContext()->isFunctionOrMethod()) in computeLVForDecl()
1410 if (Ctx->isFunctionOrMethod()) { in printQualifiedName()
DTypePrinter.cpp865 if (DC->isFunctionOrMethod()) return; in AppendScope()
DItaniumMangle.cpp446 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
DType.cpp3316 Tag->getDeclContext()->isFunctionOrMethod() || in computeCachedProperties()
DExpr.cpp668 if (DC->isFunctionOrMethod() && (DC->getDeclKind() != Decl::Captured)) { in ComputeName()
/external/clang/include/clang/AST/
DDeclBase.h1244 bool isFunctionOrMethod() const { in isFunctionOrMethod() function
1257 return !isFunctionOrMethod() && DeclKind != Decl::LinkageSpec; in isLookupContext()
DDecl.h958 return DC->getRedeclContext()->isFunctionOrMethod(); in isLocalVarDecl()
973 return DC->isFunctionOrMethod() && DC->getDeclKind() != Decl::Block; in isFunctionOrMethodVarDecl()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1175 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()

12