Home
last modified time | relevance | path

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

/external/clang/lib/AST/
DMangle.cpp136 if (DC->isFunctionOrMethod()) in mangleBlock()
DDecl.cpp762 if (D->getLexicalDeclContext()->isFunctionOrMethod()) { in getLVForDecl()
818 if (Ctx->isFunctionOrMethod()) in getQualifiedNameAsString()
1161 (getDeclContext()->isFunctionOrMethod() && hasExternalStorage()); in isExternC()
1164 if (DC->isFunctionOrMethod()) in isExternC()
DASTImporter.cpp2031 if (!DC->isFunctionOrMethod()) { in VisitTypedefNameDecl()
2111 if (!DC->isFunctionOrMethod() && SearchName) { in VisitEnumDecl()
2213 if (!DC->isFunctionOrMethod() && SearchName) { in VisitRecordDecl()
2297 if (!LexicalDC->isFunctionOrMethod()) { in VisitEnumConstantDecl()
2343 if (!LexicalDC->isFunctionOrMethod()) { in VisitFunctionDecl()
3596 if (!DC->isFunctionOrMethod()) { in VisitClassTemplateDecl()
DDeclBase.cpp140 if (DC->isFunctionOrMethod()) in isDefinedOutsideFunctionOrMethod()
DType.cpp2037 Tag->getDeclContext()->isFunctionOrMethod() || in computeCachedProperties()
DItaniumMangle.cpp370 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleDeclName()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp365 if (Owner->isFunctionOrMethod()) in VisitVarDecl()
418 if (!Var->isInvalidDecl() && Owner->isFunctionOrMethod() && !Var->isUsed() && in VisitVarDecl()
500 Parent->getRedeclContext()->isFunctionOrMethod()) in VisitFieldDecl()
640 if (D->getDeclContext()->isFunctionOrMethod()) in VisitEnumDecl()
685 if (D->getDeclContext()->isFunctionOrMethod()) { in VisitEnumDecl()
999 if (Record->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitCXXRecordDecl()
1038 Owner->isFunctionOrMethod() || in VisitFunctionDecl()
1061 if (D->getDeclContext()->isFunctionOrMethod()) in VisitFunctionDecl()
1827 bool isFunctionScope = Owner->isFunctionOrMethod(); in VisitUsingDecl()
3047 (ParentDC->isFunctionOrMethod() && ParentDC->isDependentContext())) { in FindInstantiatedDecl()
DIdentifierResolver.cpp111 if (Ctx->isFunctionOrMethod()) { in isDeclInScope()
DSemaDeclAttr.cpp84 static bool isFunctionOrMethod(const Decl *D) { in isFunctionOrMethod() function
92 if (isFunctionOrMethod(D)) in isFunctionOrMethodOrBlock()
385 if (!isFunctionOrMethod(D) || !hasFunctionProto(D)) { in handleNonNullAttr()
865 if (!isFunctionOrMethod(D) && !isa<BlockDecl>(D)) { in handleAnalyzerNoReturnAttr()
942 if (!isFunctionOrMethod(D) && !isa<ParmVarDecl>(D)) { in handleDependencyAttr()
957 if (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isFunctionOrMethod(D) && in handleUnusedAttr()
979 } else if (!isFunctionOrMethod(D)) { in handleUsedAttr()
1642 if (!isFunctionOrMethod(D) || !hasFunctionProto(D)) { in handleFormatArgAttr()
2261 if (!isFunctionOrMethod(D)) { in handleNoDebugAttr()
2610 if (!isFunctionOrMethod(D)) { in handleLaunchBoundsAttr()
DCodeCompleteConsumer.cpp263 if (DC->isFunctionOrMethod() || isa<BlockDecl>(DC)) { in getPriorityFromDecl()
DSemaDecl.cpp1049 !D->getDeclContext()->isFunctionOrMethod()) in ShouldDiagnoseUnusedDecl()
3097 if (CurContext->isFunctionOrMethod() || in HandleDeclarator()
3290 assert(ND->getLexicalDeclContext()->isFunctionOrMethod() && in RegisterLocallyScopedExternCDecl()
3485 if (!OuterContext->isFunctionOrMethod()) in isOutOfScopePreviousDeclaration()
3802 if (CurContext->isFunctionOrMethod() && NewVD->isExternC() && in ActOnVariableDeclarator()
4149 if (CurContext->getRedeclContext()->isFunctionOrMethod()) { in ActOnFunctionDeclarator()
4470 if (CurContext->isFunctionOrMethod()) { in ActOnFunctionDeclarator()
4876 if (CurContext->isFunctionOrMethod() && NewFD->isExternC() in ActOnFunctionDeclarator()
6284 if (Prev->getDeclContext()->isFunctionOrMethod()) in ShouldWarnAboutMissingPrototype()
DSemaLookup.cpp899 if (Ctx->isFunctionOrMethod()) { in CppLookupName()
2814 ((DeclContext *)S->getEntity())->isFunctionOrMethod()) { in LookupVisibleDecls()
2871 if (Ctx->isFunctionOrMethod()) in LookupVisibleDecls()
DSemaAccess.cpp1342 if (!DC->isFunctionOrMethod()) DC = fn; in HandleDelayedAccessCheck()
DSemaTemplate.cpp3239 if (Tag->getDeclContext()->isFunctionOrMethod()) { in VisitTagDecl()
4492 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) { in CheckTemplateSpecializationScope()
DSemaExpr.cpp1062 if (!S.CurContext->isFunctionOrMethod()) return CR_NoCapture; in diagnoseUncapturableValueReference()
2084 else if (D->getDeclContext()->isFunctionOrMethod()) in UseArgumentDependentLookup()
8882 (isa<VarDecl>(D) && D->getDeclContext()->isFunctionOrMethod())) { in MarkDeclarationReferenced()
DSemaCodeComplete.cpp443 CommonAncestor->isFunctionOrMethod()) in getRequiredQualification()
558 if (HiddenCtx->isFunctionOrMethod()) in CheckHiddenResult()
DSemaOverload.cpp8124 !(*I)->getDeclContext()->isFunctionOrMethod()); in AddOverloadedCallCandidates()
/external/clang/include/clang/AST/
DDeclBase.h895 bool isFunctionOrMethod() const { in isFunctionOrMethod() function
DDecl.h842 return DC->getRedeclContext()->isFunctionOrMethod(); in isLocalVarDecl()
852 return DC->isFunctionOrMethod() && DC->getDeclKind() != Decl::Block; in isFunctionOrMethodVarDecl()
/external/clang/lib/Serialization/
DASTWriter.cpp2571 if (DC->isFunctionOrMethod()) in WriteDeclContextVisibleBlock()