Home
last modified time | relevance | path

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

12

/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp286 while (DC && !DC->isFunctionOrMethod()) { in getParentName()
384 if (DC->isFunctionOrMethod()) in addParentContext()
DIdentifierResolver.cpp101 if (Ctx->isFunctionOrMethod() || S->isFunctionPrototypeScope()) { in isDeclInScope()
DSemaTemplateInstantiateDecl.cpp30 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()
DSemaDecl.cpp505 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 …]
DSemaLookup.cpp116 } 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()
DSemaLambda.cpp247 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in createLambdaClosureType()
946 if (Intro.Default != LCD_None && !Class->getParent()->isFunctionOrMethod() && in ActOnStartOfLambdaDefinition()
DSemaDeclAttr.cpp50 static bool isFunctionOrMethod(const Decl *D) { in isFunctionOrMethod() function
221 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()
DSemaCXXScopeSpec.cpp705 if (DC->isDependentContext() && DC->isFunctionOrMethod()) { in BuildCXXNestedNameSpecifier()
DSemaCodeComplete.cpp459 CommonAncestor->isFunctionOrMethod()) in getRequiredQualification()
566 if (HiddenCtx->isFunctionOrMethod()) in CheckHiddenResult()
716 if (LexicalDC->isFunctionOrMethod()) { in getBasePriority()
DSemaExpr.cpp1652 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()
DSemaTemplate.cpp4096 if (Tag->getDeclContext()->isFunctionOrMethod()) { in VisitTagDecl()
5683 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) { in CheckTemplateSpecializationScope()
DSemaStmt.cpp3318 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in CreateCapturedStmtRecordDecl()
DSemaDeclCXX.cpp452 if (!ScopeDC->isFunctionOrMethod()) in MergeCXXFunctionDecl()
7166 if (Ctx && !Ctx->isFunctionOrMethod()) in PushUsingDirective()
7602 else if (!CurContext->isFunctionOrMethod() && D->isLocalExternDecl() && in BuildUsingDeclaration()
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
/external/clang/lib/AST/
DDeclBase.cpp178 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()
1464 if (isFunctionOrMethod()) in makeDeclVisibleInContextWithFlags()
DASTImporter.cpp2315 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()
DMicrosoftMangle.cpp145 if (!DC->isFunctionOrMethod()) in getNextDiscriminator()
327 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
DTypePrinter.cpp844 if (DC->isFunctionOrMethod()) return; in AppendScope()
DDecl.cpp1274 if (D->getDeclContext()->isFunctionOrMethod()) in computeLVForDecl()
1345 if (Ctx->isFunctionOrMethod()) { in printQualifiedName()
DType.cpp2201 Tag->getDeclContext()->isFunctionOrMethod() || in computeCachedProperties()
DItaniumMangle.cpp428 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
DExpr.cpp624 if (DC->isFunctionOrMethod() && (DC->getDeclKind() != Decl::Captured)) { in ComputeName()
/external/clang/include/clang/AST/
DDeclBase.h1134 bool isFunctionOrMethod() const { in isFunctionOrMethod() function
DDecl.h890 return DC->getRedeclContext()->isFunctionOrMethod(); in isLocalVarDecl()
900 return DC->isFunctionOrMethod() && DC->getDeclKind() != Decl::Block; in isFunctionOrMethodVarDecl()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1002 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()

12