Searched refs:getParentFunctionOrMethod (Results 1 – 18 of 18) sorted by relevance
57 if (const auto *Parent = VD->getParentFunctionOrMethod()) in WriteNamedDecl()63 VD->getParentFunctionOrMethod() == nullptr)) in WriteNamedDecl()87 dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod())) in WriteNamedDecl()
41 if (const DeclContext *D = Parm->getParentFunctionOrMethod()) { in check()158 dyn_cast_or_null<const FunctionDecl>(Par->getParentFunctionOrMethod()); in diagnoseNonConstParameters()
978 dyn_cast_or_null<FunctionDecl>(ParmDecl.getParentFunctionOrMethod()); in isParamInMainLikeFunction()
30 if (D->getParentFunctionOrMethod()) in mapDecl()
904 return getParentFunctionOrMethod() == nullptr; in isDefinedOutsideFunctionOrMethod()924 getParentFunctionOrMethod(bool LexicalParent = false) const;925 DeclContext *getParentFunctionOrMethod(bool LexicalParent = false) {927 const_cast<const Decl *>(this)->getParentFunctionOrMethod(
121 D->getParentFunctionOrMethod()) in VisitTagTypeLoc()
128 return D->getParentFunctionOrMethod() != nullptr; in isLocal()191 if (D->getParentFunctionOrMethod()) in ShouldGenerateLocation()
64 if (!D->getParentFunctionOrMethod()) in isFunctionLocalSymbol()
632 if (!D->getParentFunctionOrMethod()) in VisitUsingDirectiveDecl()
194 if (RenameDecl.getParentFunctionOrMethod()) in renameable()776 if (RenameDecl.getParentFunctionOrMethod()) { in rename()
227 if (const DeclContext *DC = Dcl->getParentFunctionOrMethod()) { in findIdRefsInFile()
428 if (!D->getParentFunctionOrMethod()) in isFunctionLocalDecl()
286 const DeclContext *Decl::getParentFunctionOrMethod(bool LexicalParent) const { in getParentFunctionOrMethod() function in Decl
11470 const DeclContext *LexicalContext = VD->getParentFunctionOrMethod(); in basicGVALinkageForVariable()
1386 if (D->getParentFunctionOrMethod()) in findReferences()
4968 const clang::DeclContext *Context = Node.getParentFunctionOrMethod(); in AST_MATCHER_P()
1146 else if (const DeclContext *DC = D.getParentFunctionOrMethod()) in createUnnamedGlobalFrom()
13813 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()