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()
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()
DSemaDecl.cpp553 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 …]
DSemaLookup.cpp116 } 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()
DSemaLambda.cpp247 while (!(DC->isFunctionOrMethod() || DC->isRecord() || DC->isFileContext())) in createLambdaClosureType()
951 if (Intro.Default != LCD_None && !Class->getParent()->isFunctionOrMethod() && in ActOnStartOfLambdaDefinition()
DSemaCXXScopeSpec.cpp762 if (DC->isDependentContext() && DC->isFunctionOrMethod()) { in BuildCXXNestedNameSpecifier()
DSemaDeclAttr.cpp51 static bool isFunctionOrMethod(const Decl *D) { in isFunctionOrMethod() function
57 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()
DSemaStmt.cpp3632 while (DC && !DC->isFunctionOrMethod()) in ActOnSEHTryBlock()
3711 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.cpp4109 if (Tag->getDeclContext()->isFunctionOrMethod()) { in VisitTagDecl()
5804 if (S.CurContext->getRedeclContext()->isFunctionOrMethod()) { in CheckTemplateSpecializationScope()
DSemaExpr.cpp2699 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()
DSemaType.cpp2383 !S.CurContext->isFunctionOrMethod() || in warnAboutAmbiguousFunction()
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
/external/clang/include/clang/AST/
DDeclBase.h1201 bool isFunctionOrMethod() const { in isFunctionOrMethod() function
1214 return !isFunctionOrMethod() && DeclKind != Decl::LinkageSpec; in isLookupContext()
DDecl.h945 return DC->getRedeclContext()->isFunctionOrMethod(); in isLocalVarDecl()
960 return DC->isFunctionOrMethod() && DC->getDeclKind() != Decl::Block; in isFunctionOrMethodVarDecl()
/external/clang/lib/AST/
DDeclBase.cpp178 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()
1512 if (isFunctionOrMethod()) in makeDeclVisibleInContextWithFlags()
DASTImporter.cpp2338 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()
DMicrosoftMangle.cpp166 if (!DC->isFunctionOrMethod()) in getNextDiscriminator()
356 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
DTypePrinter.cpp861 if (DC->isFunctionOrMethod()) return; in AppendScope()
DDecl.cpp1298 if (D->getDeclContext()->isFunctionOrMethod()) in computeLVForDecl()
1369 if (Ctx->isFunctionOrMethod()) { in printQualifiedName()
DType.cpp2187 Tag->getDeclContext()->isFunctionOrMethod() || in computeCachedProperties()
DItaniumMangle.cpp448 if (DC->isFunctionOrMethod() && D->hasLinkage()) in shouldMangleCXXName()
DExpr.cpp662 if (DC->isFunctionOrMethod() && (DC->getDeclKind() != Decl::Captured)) { in ComputeName()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1074 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()

12