Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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.cpp1817 NamedDecl *function_decl = nullptr; in AddOneFunction() local
1906 function_decl = context.AddFunDecl(copied_function_type, extern_c); in AddOneFunction()
1908 if (!function_decl) { in AddOneFunction()
1925 function_decl = context.AddGenericFunDecl(); in AddOneFunction()
1963 parser_vars->m_named_decl = function_decl; in AddOneFunction()
1977 ClangUtil::DumpDecl(function_decl)); in AddOneFunction()
H A DClangUserExpression.cpp215 } else if (clang::FunctionDecl *function_decl = in ScanContext() local
224 TypeSystemClang::DeclContextGetMetaData(decl_context, function_decl); in ScanContext()
/llvm-project-15.0.7/clang/test/CodeGen/
H A D2005-09-24-BitFieldCrash.c25 struct tree_function_decl function_decl; member
30 decl->function_decl.built_in_class != 0; in foo()
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.cpp41 function_decl(function_decl), parent_ty(parent_ty), in CreateMethodDecl()
46 clang::FunctionDecl *&function_decl; member
80 if (name != proc_name || function_decl) in AddMethod()
1173 if (!function_decl) { in CreateFunctionDecl()
1189 return function_decl; in CreateFunctionDecl()
1206 clang::FunctionDecl *function_decl = in GetOrCreateInlinedFunctionDecl() local
1208 if (function_decl == nullptr) in GetOrCreateInlinedFunctionDecl()
1225 return function_decl; in GetOrCreateInlinedFunctionDecl()
1312 clang::FunctionDecl *function_decl = in GetOrCreateFunctionDecl() local
1315 if (function_decl == nullptr) in GetOrCreateFunctionDecl()
[all …]
H A DPdbAstBuilder.h110 clang::FunctionDecl &function_decl,
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.cpp1193 clang::FunctionDecl *function_decl = nullptr; in ParseSubroutine() local
1200 function_decl = llvm::dyn_cast_or_null<clang::FunctionDecl>( in ParseSubroutine()
1203 if (function_decl) { in ParseSubroutine()
1204 LinkDeclContextToDIE(function_decl, die); in ParseSubroutine()
1209 if (!function_decl) { in ParseSubroutine()
1225 function_decl = m_ast.CreateFunctionDeclaration( in ParseSubroutine()
1248 lldbassert(function_decl); in ParseSubroutine()
1250 if (function_decl) { in ParseSubroutine()
1251 LinkDeclContextToDIE(function_decl, die); in ParseSubroutine()
1269 static_cast<void *>(function_decl)); in ParseSubroutine()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.h368 GetAsDeclContext(clang::FunctionDecl *function_decl);
412 void SetFunctionParameters(clang::FunctionDecl *function_decl,
H A DTypeSystemClang.cpp2229 FunctionDecl *function_decl, llvm::ArrayRef<ParmVarDecl *> params) { in SetFunctionParameters() argument
2230 if (function_decl) in SetFunctionParameters()
2231 function_decl->setParams(params); in SetFunctionParameters()
9698 } else if (clang::FunctionDecl *function_decl = in DeclContextIsClassMethod() local
9700 ClangASTMetadata *metadata = GetMetadata(function_decl); in DeclContextIsClassMethod()
/llvm-project-15.0.7/llvm/test/Transforms/Attributor/
H A Dnonnull.ll1594 declare i8* @function_decl()
1599 ; CHECK-NEXT: ret i8* bitcast (i8* ()* @function_decl to i8*)
1601 %bc = bitcast i8*()* @function_decl to i8*