Home
last modified time | relevance | path

Searched refs:function_decl (Results 1 – 9 of 9) sorted by relevance

/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.cpp89 } else if (FunctionDecl *function_decl = dyn_cast<FunctionDecl>(D)) { in TransformTopLevelDecl() local
91 if (m_ast_context && function_decl->hasBody() && in TransformTopLevelDecl()
92 !function_decl->getNameInfo().getAsString().compare("$__lldb_expr")) { in TransformTopLevelDecl()
93 RecordPersistentTypes(function_decl); in TransformTopLevelDecl()
94 SynthesizeFunctionResult(function_decl); in TransformTopLevelDecl()
120 FunctionDecl *function_decl = FunDecl; in SynthesizeFunctionResult() local
122 if (!function_decl) in SynthesizeFunctionResult()
129 function_decl->print(os); in SynthesizeFunctionResult()
136 Stmt *function_body = function_decl->getBody(); in SynthesizeFunctionResult()
139 bool ret = SynthesizeBodyResult(compound_stmt, function_decl); in SynthesizeFunctionResult()
[all …]
H A DASTStructExtractor.cpp123 FunctionDecl *function_decl = dyn_cast<FunctionDecl>(D); in ExtractFromTopLevelDecl() local
125 if (m_ast_context && function_decl && in ExtractFromTopLevelDecl()
127 function_decl->getNameAsString())) { in ExtractFromTopLevelDecl()
128 ExtractFromFunctionDecl(function_decl); in ExtractFromTopLevelDecl()
H A DClangExpressionDeclMap.cpp1729 NamedDecl *function_decl = nullptr; in AddOneFunction() local
1818 function_decl = context.AddFunDecl(copied_function_type, extern_c); in AddOneFunction()
1820 if (!function_decl) { in AddOneFunction()
1837 function_decl = context.AddGenericFunDecl(); in AddOneFunction()
1875 parser_vars->m_named_decl = function_decl; in AddOneFunction()
1889 ClangUtil::DumpDecl(function_decl)); in AddOneFunction()
H A DClangUserExpression.cpp218 } else if (clang::FunctionDecl *function_decl = in ScanContext() local
227 TypeSystemClang::DeclContextGetMetaData(decl_context, function_decl); in ScanContext()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.cpp1017 clang::FunctionDecl *function_decl = m_clang.CreateFunctionDeclaration( in GetOrCreateFunctionDecl() local
1021 m_uid_to_decl[toOpaqueUid(func_id)] = function_decl; in GetOrCreateFunctionDecl()
1025 m_decl_to_status.insert({function_decl, status}); in GetOrCreateFunctionDecl()
1027 CreateFunctionParameters(func_id, *function_decl, func_type->getNumParams()); in GetOrCreateFunctionDecl()
1029 return function_decl; in GetOrCreateFunctionDecl()
1033 clang::FunctionDecl &function_decl, in CreateFunctionParameters() argument
1086 &function_decl, OptionalClangModuleID(), param_name.str().c_str(), in CreateFunctionParameters()
1096 m_clang.SetFunctionParameters(&function_decl, params); in CreateFunctionParameters()
H A DPdbAstBuilder.h108 clang::FunctionDecl &function_decl,
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.cpp1211 clang::FunctionDecl *function_decl = nullptr; in ParseSubroutine() local
1218 function_decl = llvm::dyn_cast_or_null<clang::FunctionDecl>( in ParseSubroutine()
1221 if (function_decl) { in ParseSubroutine()
1222 LinkDeclContextToDIE(function_decl, die); in ParseSubroutine()
1227 if (!function_decl) { in ParseSubroutine()
1243 function_decl = m_ast.CreateFunctionDeclaration( in ParseSubroutine()
1266 lldbassert(function_decl); in ParseSubroutine()
1268 if (function_decl) { in ParseSubroutine()
1269 LinkDeclContextToDIE(function_decl, die); in ParseSubroutine()
1287 static_cast<void *>(function_decl)); in ParseSubroutine()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.h367 GetAsDeclContext(clang::FunctionDecl *function_decl);
418 void SetFunctionParameters(clang::FunctionDecl *function_decl,
H A DTypeSystemClang.cpp2224 FunctionDecl *function_decl, llvm::ArrayRef<ParmVarDecl *> params) { in SetFunctionParameters() argument
2225 if (function_decl) in SetFunctionParameters()
2226 function_decl->setParams(params); in SetFunctionParameters()
9601 } else if (clang::FunctionDecl *function_decl = in DeclContextIsClassMethod() local
9603 ClangASTMetadata *metadata = GetMetadata(function_decl); in DeclContextIsClassMethod()