Home
last modified time | relevance | path

Searched refs:isFunctionOrMethod (Results 1 – 25 of 29) 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()
733 Parent->getRedeclContext()->isFunctionOrMethod()) in VisitFieldDecl()
1012 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition()
1507 Owner->isFunctionOrMethod() || in VisitFunctionDecl()
2342 if (!Owner->isFunctionOrMethod()) in VisitUsingDirectiveDecl()
2417 bool isFunctionScope = Owner->isFunctionOrMethod(); in VisitUsingDecl()
3844 if (NewVar->getDeclContext()->isFunctionOrMethod()) in BuildVariableInstantiation()
3870 NewVar->getDeclContext()->isFunctionOrMethod() && in BuildVariableInstantiation()
4641 (ParentDC->isFunctionOrMethod() && ParentDC->isDependentContext()) || in FindInstantiatedDecl()
DSemaDecl.cpp596 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename()
1262 !D->getLexicalDeclContext()->isFunctionOrMethod()) in PushOnScopeChains()
1506 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
3240 if (!New->getLexicalDeclContext()->isFunctionOrMethod()) in MergeFunctionDecl()
3450 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious()
3451 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious()
3455 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious()
3934 if (CurContext->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
4002 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
5024 else if (CurContext->isFunctionOrMethod() && in HandleDeclarator()
[all …]
DSemaLambda.cpp248 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in createLambdaClosureType()
908 if (Intro.Default != LCD_None && !Class->getParent()->isFunctionOrMethod() && in ActOnStartOfLambdaDefinition()
DSemaLookup.cpp119 } else if (!Ctx || Ctx->isFunctionOrMethod()) { in visitScopeChain()
353 if (DC->isFunctionOrMethod()) in getContextForScopeMatching()
1158 if (Ctx->isFunctionOrMethod()) { in CppLookupName()
3603 (S->getEntity())->isFunctionOrMethod()) { in LookupVisibleDecls()
3643 if (Ctx->isFunctionOrMethod()) in LookupVisibleDecls()
DSemaType.cpp3044 !S.CurContext->isFunctionOrMethod() || in warnAboutAmbiguousFunction()
3424 if (ctx->isFunctionOrMethod()) in getNullabilityCompletenessCheckFileID()
3630 bool isFunctionOrMethod = false; in GetFullTypeForDeclarator() local
3636 isFunctionOrMethod = true; in GetFullTypeForDeclarator()
3640 if (state.getDeclarator().isObjCIvar() && !isFunctionOrMethod) { in GetFullTypeForDeclarator()
3677 if (isFunctionOrMethod && inAssumeNonNullRegion) in GetFullTypeForDeclarator()
3682 if (isFunctionOrMethod) { in GetFullTypeForDeclarator()
DSemaCXXScopeSpec.cpp795 if (DC->isDependentContext() && DC->isFunctionOrMethod()) { in BuildCXXNestedNameSpecifier()
DSemaDeclAttr.cpp55 static bool isFunctionOrMethod(const Decl *D) { in isFunctionOrMethod() function
62 return isFunctionOrMethod(D) || isa<BlockDecl>(D); in isFunctionOrMethodOrBlock()
1822 } else if (!isFunctionOrMethod(D)) { in handleUsedAttr()
4126 if (!isFunctionOrMethod(D) || !hasFunctionProto(D)) { in handleArgumentWithTypeTagAttr()
4809 if (!isFunctionOrMethod(D)) { in handleMipsInterruptAttr()
4850 if (!isFunctionOrMethod(D) || !hasFunctionProto(D) || isInstanceMethod(D) || in handleAnyX86InterruptAttr()
DSemaStmt.cpp3749 while (DC && !DC->isFunctionOrMethod()) in ActOnSEHTryBlock()
3832 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in CreateCapturedStmtRecordDecl()
DSemaCodeComplete.cpp458 CommonAncestor->isFunctionOrMethod()) in getRequiredQualification()
582 if (HiddenCtx->isFunctionOrMethod()) in CheckHiddenResult()
732 if (LexicalDC->isFunctionOrMethod()) { in getBasePriority()
DSemaTemplate.cpp4229 if (Tag->getDeclContext()->isFunctionOrMethod()) { in VisitTagDecl()
5928 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) { in CheckTemplateSpecializationScope()
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
/external/clang/lib/Index/
DIndexingContext.cpp323 if (!IsRef && Parent && !cast<DeclContext>(Parent)->isFunctionOrMethod()) { in handleDeclOccurrence()
/external/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp433 if (Ctx->isFunctionOrMethod()) in matchesNodeFullFast()
/external/clang/include/clang/AST/
DDeclBase.h1263 bool isFunctionOrMethod() const { in isFunctionOrMethod() function
1276 return !isFunctionOrMethod() && DeclKind != Decl::LinkageSpec; in isLookupContext()
DDecl.h1031 return DC->getRedeclContext()->isFunctionOrMethod(); in isLocalVarDecl()
1046 return DC->isFunctionOrMethod() && DC->getDeclKind() != Decl::Block; in isFunctionOrMethodVarDecl()
/external/clang/lib/AST/
DDeclBase.cpp215 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()
284 if (LDC->isFunctionOrMethod()) in isLexicallyWithinFunctionOrMethod()
DASTImporter.cpp2542 if (!DC->isFunctionOrMethod()) { in VisitTypedefNameDecl()
2616 assert(LexicalDC->isFunctionOrMethod()); in VisitLabelDecl()
2659 if (!DC->isFunctionOrMethod() && SearchName) { in VisitEnumDecl()
2748 if (!DC->isFunctionOrMethod()) { in VisitRecordDecl()
2896 if (!LexicalDC->isFunctionOrMethod()) { in VisitEnumConstantDecl()
2951 if (!LexicalDC->isFunctionOrMethod()) { in VisitFunctionDecl()
4429 if (!DC->isFunctionOrMethod()) { in VisitClassTemplateDecl()
4619 assert(!DC->isFunctionOrMethod() && in VisitVarTemplateDecl()
DMicrosoftMangle.cpp198 if (!DC->isFunctionOrMethod()) in getNextDiscriminator()
405 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
DTypePrinter.cpp910 if (DC->isFunctionOrMethod()) return; in AppendScope()
DDecl.cpp1338 if (D->getDeclContext()->isFunctionOrMethod()) in computeLVForDecl()
1413 if (Ctx->isFunctionOrMethod()) { in printQualifiedName()
DType.cpp3320 Tag->getDeclContext()->isFunctionOrMethod() || in computeCachedProperties()
DItaniumMangle.cpp604 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1232 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()
2509 return !D->getDeclContext()->isFunctionOrMethod(); in isConsumerInterestedIn()

12