Home
last modified time | relevance | path

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

123

/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()
/external/llvm-project/clang/lib/ARCMigrate/
DTransProtectedScope.cpp35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
/external/llvm-project/clang/lib/Sema/
DCodeCompleteConsumer.cpp374 while (DC && !DC->isFunctionOrMethod()) { in getParentName()
469 if (DC->isFunctionOrMethod()) in addParentContext()
DIdentifierResolver.cpp103 if (Ctx->isFunctionOrMethod() || (S && S->isFunctionPrototypeScope())) { in isDeclInScope()
DSemaTemplateInstantiateDecl.cpp35 if (DC->isFunctionOrMethod()) in isDeclWithinFunction()
1116 Parent->getRedeclContext()->isFunctionOrMethod()) in VisitFieldDecl()
1394 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition()
1897 Owner->isFunctionOrMethod() || in VisitFunctionDecl()
2975 if (!Owner->isFunctionOrMethod()) in VisitUsingDirectiveDecl()
3050 bool isFunctionScope = Owner->isFunctionOrMethod(); in VisitUsingDecl()
3138 if (D->getDeclContext()->isFunctionOrMethod() && *NumExpansions > 1) { in instantiateUnresolvedUsingDecl()
5039 if (NewVar->getDeclContext()->isFunctionOrMethod()) in BuildVariableInstantiation()
5087 NewVar->getDeclContext()->isFunctionOrMethod() && in BuildVariableInstantiation()
5813 (ParentDependsOnArgs && (ParentDC->isFunctionOrMethod() || in FindInstantiatedDecl()
DSemaDecl.cpp657 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename()
1784 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
3996 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious()
3997 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious()
4001 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious()
4655 if (CurContext->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
4723 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
5783 else if (CurContext->isFunctionOrMethod() && in HandleDeclarator()
6251 if (!OuterContext->isFunctionOrMethod()) in isOutOfScopePreviousDeclaration()
6648 if (DC->isFunctionOrMethod() || isa<OMPDeclareReductionDecl>(DC) || in shouldConsiderLinkage()
[all …]
DSemaLookup.cpp118 } else if (!Ctx || Ctx->isFunctionOrMethod()) { in visitScopeChain()
356 if (DC->isFunctionOrMethod()) in getContextForScopeMatching()
1310 if (Ctx->isFunctionOrMethod()) { in CppLookupName()
3935 (S->getEntity())->isFunctionOrMethod()) { in lookupInScope()
3977 if (Ctx->isFunctionOrMethod()) in lookupInScope()
/external/clang/lib/Index/
DIndexingContext.cpp323 if (!IsRef && Parent && !cast<DeclContext>(Parent)->isFunctionOrMethod()) { in handleDeclOccurrence()
/external/llvm-project/clang/lib/Serialization/
DASTCommon.cpp460 if (D->getLexicalDeclContext()->isFunctionOrMethod()) { in needsAnonymousDeclarationNumber()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DUseAfterMoveCheck.cpp449 if (!Arg->getDecl()->getDeclContext()->isFunctionOrMethod()) in check()
/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()
/external/llvm-project/clang-tools-extra/clangd/
DQuality.cpp277 if (DC->isFunctionOrMethod()) in computeScope()
DSemanticHighlighting.cpp94 return BD->getDeclContext()->isFunctionOrMethod() in kindForDecl()
/external/clang/lib/AST/
DDeclBase.cpp215 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()
284 if (LDC->isFunctionOrMethod()) in isLexicallyWithinFunctionOrMethod()
/external/llvm-project/clang/include/clang/AST/
DDeclBase.h1867 bool isFunctionOrMethod() const { in isFunctionOrMethod() function
1881 return !isFunctionOrMethod() && getDeclKind() != Decl::LinkageSpec && in isLookupContext()
/external/llvm-project/clang/lib/AST/
DDeclBase.cpp290 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()
372 if (LDC->isFunctionOrMethod()) in isInLocalScopeForInstantiation()
/external/llvm-project/clang/lib/Analysis/
DBodyFarm.cpp233 if (!FoundDecl->getDeclContext()->isFunctionOrMethod()) in findMemberField()

123