Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/gcc/gcc/cp/
H A Ddecl.h22 enum decl_context enum
36 enum decl_context, int, tree*);
H A Ddecl.c6975 enum decl_context decl_context, in grokdeclarator() argument
7041 if (decl_context == FUNCDEF) in grokdeclarator()
7042 funcdef_flag = true, decl_context = NORMAL; in grokdeclarator()
7043 else if (decl_context == MEMFUNCDEF) in grokdeclarator()
7044 funcdef_flag = true, decl_context = FIELD; in grokdeclarator()
7045 else if (decl_context == BITFIELD) in grokdeclarator()
7046 bitfield = 1, decl_context = FIELD; in grokdeclarator()
7229 if (decl_context == NORMAL && !toplevel_bindings_p ()) in grokdeclarator()
7234 decl_context = PARM; in grokdeclarator()
7239 name = decl_context == PARM ? "parameter" : "type name"; in grokdeclarator()
[all …]
H A DChangeLog-1993410 complaining about arrays of references if decl_context==TYPENAME,
/openbsd-src/gnu/usr.bin/gcc/gcc/cp/
H A Ddecl.h22 enum decl_context enum
34 extern tree grokdeclarator PARAMS ((tree, tree, enum decl_context, int,
H A Ddecl.c10480 grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist) in grokdeclarator() argument
10483 enum decl_context decl_context;
10530 if (decl_context == FUNCDEF)
10531 funcdef_flag = 1, decl_context = NORMAL;
10532 else if (decl_context == MEMFUNCDEF)
10533 funcdef_flag = -1, decl_context = FIELD;
10534 else if (decl_context == BITFIELD)
10535 bitfield = 1, decl_context = FIELD;
10620 if (decl_context != NORMAL)
10653 if (decl_context == FIELD && ctype == NULL_TREE)
[all …]
/openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/PDB/
H A DPDBASTParser.cpp331 const clang::DeclContext &decl_context, in GetDeclFromContextByName() argument
335 clang::DeclContext::lookup_result result = decl_context.lookup(decl_name); in GetDeclFromContextByName()
404 auto decl_context = GetDeclContextContainingSymbol(type); in CreateLLDBTypeFromPDBType() local
412 ConstString(name), decl_context); in CreateLLDBTypeFromPDBType()
423 decl_context, OptionalClangModuleID(), access, name, tag_type_kind, in CreateLLDBTypeFromPDBType()
479 auto decl_context = GetDeclContextContainingSymbol(type); in CreateLLDBTypeFromPDBType() local
484 ConstString(name), decl_context); in CreateLLDBTypeFromPDBType()
509 ast_enum = m_ast.CreateEnumerationType(name, decl_context, in CreateLLDBTypeFromPDBType()
910 auto decl_context = GetDeclContextContainingSymbol(symbol); in GetDeclForSymbol() local
911 assert(decl_context); in GetDeclForSymbol()
[all …]
H A DSymbolFilePDB.cpp676 auto decl_context = pdb->GetDeclContextForSymbol(*symbol); in GetDeclContextForUID() local
677 if (!decl_context) in GetDeclContextForUID()
680 return clang_ast_ctx->CreateDeclContext(decl_context); in GetDeclContextForUID()
707 auto decl_context = pdb->GetDeclContextContainingSymbol(*symbol); in GetDeclContextContainingUID() local
708 assert(decl_context); in GetDeclContextContainingUID()
710 return clang_ast_ctx->CreateDeclContext(decl_context); in GetDeclContextContainingUID()
1715 clang::DeclContext *decl_context = nullptr; in FindNamespace() local
1717 decl_context = static_cast<clang::DeclContext *>( in FindNamespace()
1721 pdb->FindNamespaceDecl(decl_context, name.GetStringRef()); in FindNamespace()
H A DPDBASTParser.h58 void ParseDeclsForDeclContext(const clang::DeclContext *decl_context);
/openbsd-src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangUserExpression.cpp126 CompilerDeclContext decl_context = function_block->GetDeclContext(); in ScanContext() local
128 if (!decl_context) { in ScanContext()
154 TypeSystemClang::DeclContextGetAsCXXMethodDecl(decl_context)) { in ScanContext()
184 decl_context)) { in ScanContext()
216 TypeSystemClang::DeclContextGetAsFunctionDecl(decl_context)) { in ScanContext()
224 TypeSystemClang::DeclContextGetMetaData(decl_context, function_decl); in ScanContext()
H A DClangASTImporter.cpp109 clang::DeclContext *decl_context; member
190 for (DeclContext *decl_context = decl->getLexicalDeclContext(); in OverrideAllDeclsFromContainingFunction() local
191 decl_context; decl_context = decl_context->getLexicalParent()) { in OverrideAllDeclsFromContainingFunction()
192 DeclContext *redecl_context = decl_context->getRedeclContext(); in OverrideAllDeclsFromContainingFunction()
196 for (clang::Decl *child_decl : decl_context->decls()) { in OverrideAllDeclsFromContainingFunction()
205 backup.first->setDeclContext(backup.second.decl_context); in ~DeclContextOverride()
H A DClangASTSource.cpp387 const DeclContext *decl_context, in FindExternalLexicalDecls() argument
393 const Decl *context_decl = dyn_cast<Decl>(decl_context); in FindExternalLexicalDecls()
511 decl_context->setHasExternalLexicalStorage(true); in FindExternalLexicalDecls()
515 const_cast<DeclContext *>(decl_context)->setMustBuildLookupTable(); in FindExternalLexicalDecls()
H A DClangExpressionDeclMap.cpp1070 CompilerDeclContext decl_context = sym_ctx.block->GetDeclContext(); in LookupLocalVariable() local
1071 if (!decl_context) in LookupLocalVariable()
1085 decl_context.FindDeclByName(name, namespace_decl.IsValid()); in LookupLocalVariable()
/openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParser.h57 lldb_private::CompilerDeclContext decl_context) = 0;
H A DDWARFASTParserClang.cpp143 llvm::SmallVector<CompilerContext, 4> decl_context; in ParseTypeFromClangModule() local
144 die.GetDeclContext(decl_context); in ParseTypeFromClangModule()
151 clang_module_sp->GetSymbolFile()->FindTypes(decl_context, languages, in ParseTypeFromClangModule()
165 module.GetSymbolFile()->FindTypes(decl_context, languages, in ParseTypeFromClangModule()
2250 lldb_private::CompilerDeclContext decl_context) { in EnsureAllDIEsInDeclContextHaveBeenParsed() argument
2252 (clang::DeclContext *)decl_context.GetOpaqueDeclContext(); in EnsureAllDIEsInDeclContextHaveBeenParsed()
3225 clang::DeclContext *decl_context = in GetClangDeclForDIE() local
3229 decl_context, GetOwningClangModule(die), name, in GetClangDeclForDIE()
3240 clang::DeclContext *decl_context = in GetClangDeclForDIE() local
3247 decl_context, OptionalClangModuleID(), clang_imported_decl); in GetClangDeclForDIE()
[all …]
H A DDWARFASTParserClang.h66 lldb_private::CompilerDeclContext decl_context) override;
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dc-decl.c53 enum decl_context enum
280 static tree grokdeclarator PARAMS ((tree, tree, enum decl_context,
3468 grokdeclarator (declarator, declspecs, decl_context, initialized) in grokdeclarator() argument
3471 enum decl_context decl_context;
3498 if (decl_context == BITFIELD)
3499 bitfield = 1, decl_context = FIELD;
3501 if (decl_context == FUNCDEF)
3502 funcdef_flag = 1, decl_context = NORMAL;
3549 if (decl_context == NORMAL && !funcdef_flag
3551 decl_context = PARM;
[all …]
/openbsd-src/gnu/gcc/gcc/
H A Dc-decl.c66 enum decl_context enum
422 enum decl_context, bool, tree *);
3904 enum decl_context decl_context, bool initialized, tree *width) in grokdeclarator() argument
3928 if (decl_context == FUNCDEF) in grokdeclarator()
3929 funcdef_flag = true, decl_context = NORMAL; in grokdeclarator()
3974 if (decl_context == NORMAL && !funcdef_flag && current_scope->parm_flag) in grokdeclarator()
3975 decl_context = PARM; in grokdeclarator()
3980 if ((decl_context == NORMAL || decl_context == FIELD) in grokdeclarator()
4066 else if (decl_context != NORMAL && (storage_class != csc_none || threadp)) in grokdeclarator()
4068 if (decl_context == PARM && storage_class == csc_register) in grokdeclarator()
[all …]
H A Ddwarf2out.c12949 tree decl_context = DECL_CONTEXT (decl); in force_decl_die() local
12950 if (decl_context) in force_decl_die()
12953 if (TYPE_P (decl_context)) in force_decl_die()
12954 context_die = force_type_die (decl_context); in force_decl_die()
12956 context_die = force_decl_die (decl_context); in force_decl_die()
/openbsd-src/gnu/llvm/lldb/source/Symbol/
H A DSymtab.cpp394 llvm::StringRef decl_context = rmc.ParseFunctionDeclContextName(); in RegisterMangledNameEntry() local
397 if (decl_context.empty()) { in RegisterMangledNameEntry()
411 const char *decl_context_ccstr = ConstString(decl_context).GetCString(); in RegisterMangledNameEntry()
437 const NameToIndexMap::Entry &entry, const char *decl_context, in RegisterBacklogEntry() argument
441 auto it = class_contexts.find(decl_context); in RegisterBacklogEntry()
/openbsd-src/gnu/llvm/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.h256 clang::DeclContext *decl_context = nullptr) {
261 if (!decl_context)
262 decl_context = ast.getTranslationUnitDecl();
268 clang::DeclContext::lookup_result result = decl_context->lookup(myName);
1030 clang::VarDecl *CreateVariableDeclaration(clang::DeclContext *decl_context,
H A DTypeSystemClang.cpp1383 DeclContext *const decl_context = in CreateTemplateParameterList() local
1395 ast, decl_context, SourceLocation(), SourceLocation(), depth, i, in CreateTemplateParameterList()
1400 ast, decl_context, SourceLocation(), SourceLocation(), depth, i, in CreateTemplateParameterList()
1416 ast, decl_context, SourceLocation(), SourceLocation(), depth, in CreateTemplateParameterList()
1422 ast, decl_context, SourceLocation(), SourceLocation(), depth, in CreateTemplateParameterList()
2023 clang::DeclContext *decl_context, OptionalClangModuleID owning_module, in CreateVariableDeclaration() argument
2025 if (decl_context) { in CreateVariableDeclaration()
2028 var_decl->setDeclContext(decl_context); in CreateVariableDeclaration()
2034 decl_context->addDecl(var_decl); in CreateVariableDeclaration()
9566 for (clang::DeclContext *decl_context = root_decl_ctx; in DeclContextFindDeclByName() local
[all …]
/openbsd-src/gnu/llvm/lldb/include/lldb/Symbol/
H A DSymtab.h351 const char *decl_context,
/openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.cpp1143 clang::DeclContext *decl_context = nullptr; in CreateEnumType() local
1145 std::tie(decl_context, uname) = CreateDeclInfoForType(er, id.index); in CreateEnumType()
1146 if (!decl_context) in CreateEnumType()
1155 uname, decl_context, OptionalClangModuleID(), declaration, in CreateEnumType()
/openbsd-src/gnu/llvm/llvm/lib/Target/
H A DREADME.txt922 %tmp = icmp eq i32 %decl_context, 4
923 %decl_context_addr.0 = select i1 %tmp, i32 3, i32 %decl_context
928 (!tmp || decl_context == 1)
/openbsd-src/gnu/usr.bin/gcc/gcc/java/
H A Dparse.c10728 tree decl_context; local
10735 decl_context = DECL_CONTEXT (decl);
10740 if (interface_of_p (TREE_TYPE (decl_context),
10748 TREE_TYPE (decl_context)))

12