Home
last modified time | relevance | path

Searched refs:decl_context (Results 1 – 21 of 21) sorted by relevance

/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/PDB/
H A DPDBASTParser.cpp324 const clang::DeclContext &decl_context, in GetDeclFromContextByName() argument
396 auto decl_context = GetDeclContextContainingSymbol(type); in CreateLLDBTypeFromPDBType() local
404 ConstString(name), decl_context); in CreateLLDBTypeFromPDBType()
415 decl_context, access, name.c_str(), tag_type_kind, in CreateLLDBTypeFromPDBType()
472 auto decl_context = GetDeclContextContainingSymbol(type); in CreateLLDBTypeFromPDBType() local
477 ConstString(name), decl_context); in CreateLLDBTypeFromPDBType()
874 auto decl_context = GetDeclContextContainingSymbol(symbol); in GetDeclForSymbol() local
875 assert(decl_context); in GetDeclForSymbol()
896 decl_context, name.c_str(), in GetDeclForSymbol()
909 assert(decl_context); in GetDeclForSymbol()
[all …]
H A DSymbolFilePDB.cpp634 auto decl_context = pdb->GetDeclContextForSymbol(*symbol); in GetDeclContextForUID() local
635 if (!decl_context) in GetDeclContextForUID()
638 return CompilerDeclContext(clang_ast_ctx, decl_context); in GetDeclContextForUID()
656 auto decl_context = pdb->GetDeclContextContainingSymbol(*symbol); in GetDeclContextContainingUID() local
657 assert(decl_context); in GetDeclContextContainingUID()
659 return CompilerDeclContext(clang_ast_ctx, decl_context); in GetDeclContextContainingUID()
1632 clang::DeclContext *decl_context = nullptr; in FindNamespace() local
1634 decl_context = static_cast<clang::DeclContext *>( in FindNamespace()
1638 pdb->FindNamespaceDecl(decl_context, name.GetStringRef()); in FindNamespace()
H A DPDBASTParser.h59 void ParseDeclsForDeclContext(const clang::DeclContext *decl_context);
/freebsd-12.1/contrib/gcc/cp/
H A Ddecl.h22 enum decl_context enum
38 enum decl_context, int, tree*);
H A Ddecl.c7436 enum decl_context decl_context, in grokdeclarator() argument
7697 decl_context = PARM; in grokdeclarator()
7976 if (decl_context == PARM) in grokdeclarator()
8001 decl_context = FIELD; in grokdeclarator()
8024 if ((decl_context == PARM || decl_context == CATCHPARM) in grokdeclarator()
8042 if (decl_context == PARM || decl_context == CATCHPARM) in grokdeclarator()
8183 && decl_context == FIELD in grokdeclarator()
8215 if (decl_context == FIELD in grokdeclarator()
8511 if ((decl_context == FIELD || decl_context == PARM) in grokdeclarator()
8825 if (decl_context != PARM) in grokdeclarator()
[all …]
H A DChangeLog-1993410 complaining about arrays of references if decl_context==TYPENAME,
H A DChangeLog-19942361 * decl.c (grokdeclarator): Use decl_context to decide whether or not
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangUserExpression.cpp126 CompilerDeclContext decl_context = function_block->GetDeclContext(); in ScanContext() local
128 if (!decl_context) { in ScanContext()
135 ClangASTContext::DeclContextGetAsCXXMethodDecl(decl_context)) { in ScanContext()
165 decl_context)) { in ScanContext()
197 ClangASTContext::DeclContextGetAsFunctionDecl(decl_context)) { in ScanContext()
205 ClangASTContext::DeclContextGetMetaData(decl_context, function_decl); in ScanContext()
H A DClangASTSource.cpp517 const DeclContext *decl_context, in FindExternalLexicalDecls() argument
522 if (auto *interface_decl = dyn_cast<ObjCInterfaceDecl>(decl_context)) { in FindExternalLexicalDecls()
530 return GetMergerUnchecked().FindExternalLexicalDecls(decl_context, in FindExternalLexicalDecls()
540 const Decl *context_decl = dyn_cast<Decl>(decl_context); in FindExternalLexicalDecls()
644 const_cast<DeclContext *>(decl_context); in FindExternalLexicalDecls()
646 if (copied_decl->getDeclContext() != decl_context) { in FindExternalLexicalDecls()
H A DClangExpressionDeclMap.cpp224 auto *decl_context = llvm::cast<DeclContext>(decl); in Complete() local
227 for (Decl *child : decl_context->decls()) in Complete()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Symbol/
H A DClangASTImporter.cpp134 clang::DeclContext *decl_context; member
216 for (DeclContext *decl_context = decl->getLexicalDeclContext(); in OverrideAllDeclsFromContainingFunction() local
217 decl_context; decl_context = decl_context->getLexicalParent()) { in OverrideAllDeclsFromContainingFunction()
218 DeclContext *redecl_context = decl_context->getRedeclContext(); in OverrideAllDeclsFromContainingFunction()
222 for (clang::Decl *child_decl : decl_context->decls()) { in OverrideAllDeclsFromContainingFunction()
231 backup.first->setDeclContext(backup.second.decl_context); in ~DeclContextOverride()
H A DSymtab.cpp388 llvm::StringRef decl_context = rmc.GetBufferRef(); in RegisterMangledNameEntry() local
391 if (decl_context.empty()) { in RegisterMangledNameEntry()
402 const char *decl_context_ccstr = ConstString(decl_context).GetCString(); in RegisterMangledNameEntry()
426 const NameToIndexMap::Entry &entry, const char *decl_context, in RegisterBacklogEntry() argument
428 auto it = class_contexts.find(decl_context); in RegisterBacklogEntry()
H A DClangASTContext.cpp1532 DeclContext *const decl_context = in CreateTemplateParameterList() local
1542 *ast, decl_context, in CreateTemplateParameterList()
1549 *ast, decl_context, in CreateTemplateParameterList()
1563 *ast, decl_context, in CreateTemplateParameterList()
1570 *ast, decl_context, in CreateTemplateParameterList()
2030 if (decl_context != nullptr) { in CreateVariableDeclaration()
2037 decl_context->addDecl(var_decl); in CreateVariableDeclaration()
10018 for (clang::DeclContext *decl_context = root_decl_ctx; in DeclContextFindDeclByName() local
10019 decl_context != nullptr && found_decls.empty(); in DeclContextFindDeclByName()
10020 decl_context = decl_context->getParent()) { in DeclContextFindDeclByName()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParser.h53 GetDIEForDeclContext(lldb_private::CompilerDeclContext decl_context) = 0;
H A DDWARFASTParserClang.cpp148 std::vector<CompilerContext> decl_context; in ParseTypeFromDWO() local
149 die.GetDeclContext(decl_context); in ParseTypeFromDWO()
164 if (sym_vendor->FindTypes(decl_context, true, dwo_types)) in ParseTypeFromDWO()
2416 lldb_private::CompilerDeclContext decl_context) { in GetDIEForDeclContext() argument
3608 clang::DeclContext *decl_context = in GetClangDeclForDIE() local
3612 decl_context, name, in GetClangDeclForDIE()
3623 clang::DeclContext *decl_context = in GetClangDeclForDIE() local
3642 clang::DeclContext *decl_context = in GetClangDeclForDIE() local
3764 CompilerDeclContext decl_context = in GetDeclContextForBlock() local
3776 clang::DeclContext *decl_context = in ResolveBlockDIE() local
[all …]
H A DDWARFASTParserClang.h55 GetDIEForDeclContext(lldb_private::CompilerDeclContext decl_context) override;
/freebsd-12.1/contrib/gcc/
H A Dc-decl.c71 enum decl_context enum
4433 enum decl_context decl_context, bool initialized, tree *width) in grokdeclarator() argument
4457 if (decl_context == FUNCDEF) in grokdeclarator()
4511 decl_context = PARM; in grokdeclarator()
4516 if ((decl_context == NORMAL || decl_context == FIELD) in grokdeclarator()
4608 switch (decl_context) in grokdeclarator()
4794 else if ((decl_context == NORMAL || decl_context == FIELD) in grokdeclarator()
4938 if (decl_context != PARM in grokdeclarator()
5063 && (decl_context == NORMAL || decl_context == FIELD) in grokdeclarator()
5132 if (decl_context == BLOCKDEF) in grokdeclarator()
[all …]
H A Ddwarf2out.c13080 tree decl_context = DECL_CONTEXT (decl); in force_decl_die() local
13081 if (decl_context) in force_decl_die()
13084 if (TYPE_P (decl_context)) in force_decl_die()
13085 context_die = force_type_die (decl_context); in force_decl_die()
13087 context_die = force_decl_die (decl_context); in force_decl_die()
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Symbol/
H A DClangASTContext.h218 clang::DeclContext *decl_context = nullptr) {
224 if (!decl_context)
225 decl_context = ast->getTranslationUnitDecl();
233 decl_context->lookup(myName);
988 clang::VarDecl *CreateVariableDeclaration(clang::DeclContext *decl_context,
H A DSymtab.h206 const char *decl_context,
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.cpp1093 clang::DeclContext *decl_context = nullptr; in CreateEnumType() local
1095 std::tie(decl_context, uname) = CreateDeclInfoForType(er, id.index); in CreateEnumType()
1100 uname.c_str(), decl_context, declaration, ToCompilerType(underlying_type), in CreateEnumType()