Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.cpp90 } else if (FunctionDecl *function_decl = dyn_cast<FunctionDecl>(D)) { in TransformTopLevelDecl() local
92 if (m_ast_context && function_decl->hasBody() && in TransformTopLevelDecl()
93 !function_decl->getNameInfo().getAsString().compare("$__lldb_expr")) { in TransformTopLevelDecl()
94 RecordPersistentTypes(function_decl); in TransformTopLevelDecl()
95 SynthesizeFunctionResult(function_decl); in TransformTopLevelDecl()
121 FunctionDecl *function_decl = FunDecl; in SynthesizeFunctionResult() local
123 if (!function_decl) in SynthesizeFunctionResult()
130 function_decl->print(os); in SynthesizeFunctionResult()
137 Stmt *function_body = function_decl->getBody(); in SynthesizeFunctionResult()
140 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.cpp1806 NamedDecl *function_decl = nullptr; in AddOneFunction() local
1895 function_decl = context.AddFunDecl(copied_function_type, extern_c); in AddOneFunction()
1897 if (!function_decl) { in AddOneFunction()
1914 function_decl = context.AddGenericFunDecl(); in AddOneFunction()
1952 parser_vars->m_named_decl = function_decl; in AddOneFunction()
1966 ClangUtil::DumpDecl(function_decl)); in AddOneFunction()
H A DClangUserExpression.cpp214 } else if (clang::FunctionDecl *function_decl = in ScanContext() local
223 TypeSystemClang::DeclContextGetMetaData(decl_context, function_decl); in ScanContext()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.cpp43 function_decl(function_decl), parent_ty(parent_ty), in CreateMethodDecl()
48 clang::FunctionDecl *&function_decl; member
82 if (name != proc_name || function_decl) in AddMethod()
903 if (!function_decl) { in CreateFunctionDecl()
919 return function_decl; in CreateFunctionDecl()
939 clang::FunctionDecl *function_decl = in GetOrCreateInlinedFunctionDecl() local
941 if (function_decl == nullptr) in GetOrCreateInlinedFunctionDecl()
958 return function_decl; in GetOrCreateInlinedFunctionDecl()
1052 clang::FunctionDecl *function_decl = in GetOrCreateFunctionDecl() local
1055 if (function_decl == nullptr) in GetOrCreateFunctionDecl()
[all …]
H A DPdbAstBuilder.h112 clang::FunctionDecl &function_decl,
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.cpp1240 clang::FunctionDecl *function_decl = nullptr; in ParseSubroutine() local
1247 function_decl = llvm::dyn_cast_or_null<clang::FunctionDecl>( in ParseSubroutine()
1250 if (function_decl) { in ParseSubroutine()
1251 LinkDeclContextToDIE(function_decl, die); in ParseSubroutine()
1256 if (!function_decl) { in ParseSubroutine()
1272 function_decl = m_ast.CreateFunctionDeclaration( in ParseSubroutine()
1295 lldbassert(function_decl); in ParseSubroutine()
1297 if (function_decl) { in ParseSubroutine()
1312 LinkDeclContextToDIE(function_decl, die); in ParseSubroutine()
1330 static_cast<void *>(function_decl)); in ParseSubroutine()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.h441 GetAsDeclContext(clang::FunctionDecl *function_decl);
488 void SetFunctionParameters(clang::FunctionDecl *function_decl,
H A DTypeSystemClang.cpp2269 FunctionDecl *function_decl, llvm::ArrayRef<ParmVarDecl *> params) { in SetFunctionParameters() argument
2270 if (function_decl) in SetFunctionParameters()
2271 function_decl->setParams(params); in SetFunctionParameters()