Home
last modified time | relevance | path

Searched refs:getParentFunctionOrMethod (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp57 if (const auto *Parent = VD->getParentFunctionOrMethod()) in WriteNamedDecl()
63 VD->getParentFunctionOrMethod() == nullptr)) in WriteNamedDecl()
87 dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod())) in WriteNamedDecl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DNonConstParameterCheck.cpp41 if (const DeclContext *D = Parm->getParentFunctionOrMethod()) { in check()
158 dyn_cast_or_null<const FunctionDecl>(Par->getParentFunctionOrMethod()); in diagnoseNonConstParameters()
H A DIdentifierNamingCheck.cpp978 dyn_cast_or_null<FunctionDecl>(ParmDecl.getParentFunctionOrMethod()); in isParamInMainLikeFunction()
/llvm-project-15.0.7/clang-tools-extra/clang-doc/
H A DMapper.cpp30 if (D->getParentFunctionOrMethod()) in mapDecl()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclBase.h904 return getParentFunctionOrMethod() == nullptr; in isDefinedOutsideFunctionOrMethod()
924 getParentFunctionOrMethod(bool LexicalParent = false) const;
925 DeclContext *getParentFunctionOrMethod(bool LexicalParent = false) {
927 const_cast<const Decl *>(this)->getParentFunctionOrMethod(
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp121 D->getParentFunctionOrMethod()) in VisitTagTypeLoc()
H A DUSRGeneration.cpp128 return D->getParentFunctionOrMethod() != nullptr; in isLocal()
191 if (D->getParentFunctionOrMethod()) in ShouldGenerateLocation()
H A DIndexSymbol.cpp64 if (!D->getParentFunctionOrMethod()) in isFunctionLocalSymbol()
H A DIndexDecl.cpp632 if (!D->getParentFunctionOrMethod()) in VisitUsingDirectiveDecl()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DRename.cpp194 if (RenameDecl.getParentFunctionOrMethod()) in renameable()
776 if (RenameDecl.getParentFunctionOrMethod()) { in rename()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndexHigh.cpp227 if (const DeclContext *DC = Dcl->getParentFunctionOrMethod()) { in findIdRefsInFile()
H A DCXIndexDataConsumer.cpp428 if (!D->getParentFunctionOrMethod()) in isFunctionLocalDecl()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclBase.cpp286 const DeclContext *Decl::getParentFunctionOrMethod(bool LexicalParent) const { in getParentFunctionOrMethod() function in Decl
H A DASTContext.cpp11470 const DeclContext *LexicalContext = VD->getParentFunctionOrMethod(); in basicGVALinkageForVariable()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DXRefs.cpp1386 if (D->getParentFunctionOrMethod()) in findReferences()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4968 const clang::DeclContext *Context = Node.getParentFunctionOrMethod(); in AST_MATCHER_P()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDecl.cpp1146 else if (const DeclContext *DC = D.getParentFunctionOrMethod()) in createUnnamedGlobalFrom()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDecl.cpp13813 auto *FD = dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod()); in CheckStaticLocalForDllExport()
13819 FD = dyn_cast_or_null<FunctionDecl>(FD->getParentFunctionOrMethod()); in CheckStaticLocalForDllExport()
13945 auto *F = dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod()); in FinalizeDeclaration()