Home
last modified time | relevance | path

Searched refs:DC (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/openbsd-src/gnu/gcc/gcc/
H A Ddiagnostic.h118 #define diagnostic_starter(DC) (DC)->begin_diagnostic argument
122 #define diagnostic_finalizer(DC) (DC)->end_diagnostic argument
125 #define diagnostic_auxiliary_data(DC) (DC)->x_data argument
128 #define diagnostic_format_decoder(DC) ((DC)->printer->format_decoder) argument
131 #define diagnostic_prefixing_rule(DC) ((DC)->printer->wrapping.rule) argument
135 #define diagnostic_line_cutoff(DC) ((DC)->printer->wrapping.line_cutoff) argument
137 #define diagnostic_flush_buffer(DC) pp_base_flush ((DC)->printer) argument
141 #define diagnostic_last_function_changed(DC) \ argument
142 ((DC)->last_function != current_function_decl)
146 #define diagnostic_set_last_function(DC) \ argument
[all …]
/openbsd-src/gnu/llvm/llvm/lib/MC/MCDisassembler/
H A DDisassembler.cpp103 LLVMDisasmContext *DC = new LLVMDisasmContext( in LLVMCreateDisasmCPUFeatures() local
107 if (!DC) in LLVMCreateDisasmCPUFeatures()
110 DC->setCPU(CPU); in LLVMCreateDisasmCPUFeatures()
111 return DC; in LLVMCreateDisasmCPUFeatures()
133 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); in LLVMDisasmDispose() local
134 delete DC; in LLVMDisasmDispose()
139 static void emitComments(LLVMDisasmContext *DC, in emitComments() argument
142 StringRef Comments = DC->CommentsToEmit.str(); in emitComments()
144 const MCAsmInfo *MAI = DC->getAsmInfo(); in emitComments()
162 DC->CommentsToEmit.clear(); in emitComments()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Ddiagnostic.h223 #define diagnostic_starter(DC) (DC)->begin_diagnostic argument
227 #define diagnostic_finalizer(DC) (DC)->end_diagnostic argument
230 #define diagnostic_auxiliary_data(DC) (DC)->x_data argument
233 #define diagnostic_format_decoder(DC) output_format_decoder (&(DC)->buffer) argument
236 #define diagnostic_prefixing_rule(DC) output_prefixing_rule (&(DC)->buffer) argument
240 #define diagnostic_line_cutoff(DC) output_line_cutoff (&(DC)->buffer) argument
244 #define diagnostic_last_function_changed(DC) \ argument
245 ((DC)->last_function != current_function_decl)
249 #define diagnostic_set_last_function(DC) \ argument
250 (DC)->last_function = current_function_decl
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DASTImporterLookupTable.cpp90 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add() argument
91 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in add()
96 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() argument
98 DeclList &Decls = LookupTable[DC][Name]; in remove()
105 Name.getAsString(), DC->getDeclKindName()) in remove()
114 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add() local
115 add(DC, ND); in add()
116 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()
117 if (DC != ReDC) in add()
123 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove() local
[all …]
H A DDeclBase.cpp268 auto *DC = getFriendObjectKind() || isLocalExternDecl() in isTemplated() local
270 return DC->isDependentContext() || isTemplateDecl() || in isTemplated()
275 if (auto *DC = dyn_cast<DeclContext>(this)) in getTemplateDepth() local
276 if (DC->isFileContext()) in getTemplateDepth()
290 const DeclContext *DC = in getTemplateDepth() local
292 return cast<Decl>(DC)->getTemplateDepth(); in getTemplateDepth()
296 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod() local
298 DC && !DC->isFileContext(); DC = DC->getParent()) in getParentFunctionOrMethod()
299 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()
300 return DC; in getParentFunctionOrMethod()
[all …]
H A DDeclOpenMP.cpp29 DeclContext *DC, in Create() argument
33 C, DC, std::nullopt, VL.size(), L); in Create()
57 OMPAllocateDecl *OMPAllocateDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument
61 C, DC, CL, VL.size(), L); in Create()
85 OMPRequiresDecl *OMPRequiresDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument
88 return OMPDeclarativeDirective::createDirective<OMPRequiresDecl>(C, DC, CL, 0, in Create()
103 Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in OMPDeclareReductionDecl() argument
105 : ValueDecl(DK, DC, L, Name, Ty), DeclContext(DK), Combiner(nullptr), in OMPDeclareReductionDecl()
113 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create() argument
115 return new (C, DC) OMPDeclareReductionDecl(OMPDeclareReduction, DC, L, Name, in Create()
[all …]
H A DDeclTemplate.cpp230 TemplateDecl::TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() argument
233 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl), TemplateParams(Params) {} in TemplateDecl()
377 FunctionTemplateDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, in Create() argument
381 auto *TD = new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl); in Create()
460 ClassTemplateDecl *ClassTemplateDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument
466 auto *TD = new (C, DC) ClassTemplateDecl(C, DC, L, Name, Params, Decl); in Create()
641 const ASTContext &C, DeclContext *DC, SourceLocation KeyLoc, in Create() argument
646 new (C, DC, in Create()
648 TemplateTypeParmDecl(DC, KeyLoc, NameLoc, Id, Typename, in Create()
720 DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D, in NonTypeTemplateParmDecl() argument
[all …]
H A DExternalASTMerger.cpp38 const DeclContext *CanonicalizeDC(const DeclContext *DC) { in CanonicalizeDC() argument
39 if (isa<LinkageSpecDecl>(DC)) in CanonicalizeDC()
40 return DC->getRedeclContext(); in CanonicalizeDC()
41 return DC; in CanonicalizeDC()
45 LookupSameContext(Source<TranslationUnitDecl *> SourceTU, const DeclContext *DC, in LookupSameContext() argument
47 DC = CanonicalizeDC(DC); in LookupSameContext()
48 if (DC->isTranslationUnit()) { in LookupSameContext()
52 LookupSameContext(SourceTU, DC->getParent(), ReverseImporter); in LookupSameContext()
57 auto *ND = cast<NamedDecl>(DC); in LookupSameContext()
80 SearchResultDecl->getKind() == DC->getDeclKind()) in LookupSameContext()
[all …]
H A DASTDumper.cpp26 void ASTDumper::dumpInvalidDeclContext(const DeclContext *DC) { in dumpInvalidDeclContext() argument
28 if (!DC) { in dumpInvalidDeclContext()
43 NodeDumper.dumpPointer(DC); in dumpInvalidDeclContext()
47 OS << "unrecognized Decl kind " << (unsigned)DC->getDeclKind(); in dumpInvalidDeclContext()
53 void ASTDumper::dumpLookups(const DeclContext *DC, bool DumpDecls) { in dumpLookups() argument
56 NodeDumper.dumpBareDeclRef(cast<Decl>(DC)); in dumpLookups()
58 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
59 if (Primary != DC) { in dumpLookups()
263 const DeclContext *DC = this; in dumpLookups() local
264 while (!DC->isTranslationUnit()) in dumpLookups()
[all …]
H A DDecl.cpp305 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext() local
306 while (DC->getDeclKind() != Decl::TranslationUnit) { in getOutermostFuncOrBlockContext()
307 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext()
308 Ret = cast<Decl>(DC); in getOutermostFuncOrBlockContext()
309 DC = DC->getParent(); in getOutermostFuncOrBlockContext()
736 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl() local
737 !isa<TranslationUnitDecl>(DC); in getLVForNamespaceScopeDecl()
738 DC = DC->getParent()) { in getLVForNamespaceScopeDecl()
739 const auto *ND = dyn_cast<NamespaceDecl>(DC); in getLVForNamespaceScopeDecl()
1140 const DeclContext *DC = getDeclContext()->getRedeclContext(); in isReserved() local
[all …]
H A DDeclCXX.cpp124 DeclContext *DC, SourceLocation StartLoc, in CXXRecordDecl() argument
127 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), in CXXRecordDecl()
132 DeclContext *DC, SourceLocation StartLoc, in Create() argument
136 auto *R = new (C, DC) CXXRecordDecl(CXXRecord, TK, C, DC, StartLoc, IdLoc, Id, in Create()
147 CXXRecordDecl::CreateLambda(const ASTContext &C, DeclContext *DC, in CreateLambda() argument
151 auto *R = new (C, DC) CXXRecordDecl(CXXRecord, TTK_Class, C, DC, Loc, Loc, in CreateLambda()
1951 static bool isDeclContextInNamespace(const DeclContext *DC) { in isDeclContextInNamespace() argument
1952 while (!DC->isTranslationUnit()) { in isDeclContextInNamespace()
1953 if (DC->isNamespace()) in isDeclContextInNamespace()
1955 DC = DC->getParent(); in isDeclContextInNamespace()
[all …]
H A DDeclObjC.cpp68 ObjCContainerDecl::ObjCContainerDecl(Kind DK, DeclContext *DC, in ObjCContainerDecl() argument
71 : NamedDecl(DK, DC, nameLoc, Id), DeclContext(DK) { in ObjCContainerDecl()
178 ObjCPropertyDecl::findPropertyDecl(const DeclContext *DC, in findPropertyDecl() argument
183 if (const auto *Proto = dyn_cast<ObjCProtocolDecl>(DC)) { in findPropertyDecl()
191 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl()
199 DeclContext::lookup_result R = DC->lookup(propertyID); in findPropertyDecl()
893 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface() local
894 if (isa<ObjCProtocolDecl>(DC)) in isDesignatedInitializerForTheInterface()
1543 DeclContext *DC, in Create() argument
1550 auto *Result = new (C, DC) in Create()
[all …]
H A DDeclFriend.cpp34 FriendDecl *FriendDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument
50 (cast<CXXRecordDecl>(DC)->getTemplateSpecializationKind())); in Create()
59 auto *FD = new (C, DC, Extra) FriendDecl(DC, L, Friend, FriendL, in Create()
61 cast<CXXRecordDecl>(DC)->pushFriendDecl(FD); in Create()
H A DMangle.cpp289 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock() argument
291 assert(!isa<CXXConstructorDecl>(DC) && !isa<CXXDestructorDecl>(DC)); in mangleBlock()
295 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) { in mangleBlock()
298 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock()
300 if (isa<BlockDecl>(DC)) in mangleBlock()
301 for (; DC && isa<BlockDecl>(DC); DC = DC->getParent()) in mangleBlock()
302 (void) getBlockId(cast<BlockDecl>(DC), true); in mangleBlock()
303 assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) && in mangleBlock()
305 if (const auto *CD = dyn_cast<CXXConstructorDecl>(DC)) in mangleBlock()
307 else if (const auto *DD = dyn_cast<CXXDestructorDecl>(DC)) in mangleBlock()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DASTLambda.h33 inline bool isLambdaCallOperator(const DeclContext *DC) { in isLambdaCallOperator() argument
34 if (!DC || !isa<CXXMethodDecl>(DC)) return false; in isLambdaCallOperator()
35 return isLambdaCallOperator(cast<CXXMethodDecl>(DC)); in isLambdaCallOperator()
62 inline bool isGenericLambdaCallOperatorSpecialization(DeclContext *DC) { in isGenericLambdaCallOperatorSpecialization() argument
64 dyn_cast<CXXMethodDecl>(DC)); in isGenericLambdaCallOperatorSpecialization()
68 const DeclContext *DC) { in isGenericLambdaCallOperatorOrStaticInvokerSpecialization() argument
69 const auto *MD = dyn_cast<CXXMethodDecl>(DC); in isGenericLambdaCallOperatorOrStaticInvokerSpecialization()
80 inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) { in getLambdaAwareParentOfDeclContext() argument
81 if (isLambdaCallOperator(DC)) in getLambdaAwareParentOfDeclContext()
82 return DC->getParent()->getParent(); in getLambdaAwareParentOfDeclContext()
[all …]
H A DDeclOpenMP.h50 static T *createDirective(const ASTContext &C, DeclContext *DC, in createDirective() argument
53 auto *Inst = new (C, DC, size(Clauses.size(), NumChildren)) in createDirective()
54 T(DC, std::forward<Params>(P)...); in createDirective()
115 OMPThreadPrivateDecl(DeclContext *DC = nullptr,
117 : OMPDeclarativeDirective<Decl>(OMPThreadPrivate, DC, L) {}
132 static OMPThreadPrivateDecl *Create(ASTContext &C, DeclContext *DC,
203 OMPDeclareReductionDecl(Kind DK, DeclContext *DC, SourceLocation L,
214 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name,
272 static OMPDeclareReductionDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument
274 const_cast<DeclContext *>(DC)); in castFromDeclContext()
[all …]
H A DDecl.h131 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument
132 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
154 static PragmaCommentDecl *Create(const ASTContext &C, TranslationUnitDecl *DC,
189 TranslationUnitDecl *DC,
237 static ExternCContextDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument
238 return static_cast<ExternCContextDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
259 NamedDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName N) in NamedDecl() argument
260 : Decl(DK, DC, L), Name(N) {} in NamedDecl()
370 const DeclContext *DC = getDeclContext(); in isCXXClassMember() local
375 if (isa<EnumDecl>(DC)) in isCXXClassMember()
[all …]
H A DASTImporterLookupTable.h56 void add(DeclContext *DC, NamedDecl *ND);
57 void remove(DeclContext *DC, NamedDecl *ND);
82 LookupResult lookup(DeclContext *DC, DeclarationName Name) const;
86 bool contains(DeclContext *DC, NamedDecl *ND) const;
87 void dump(DeclContext *DC) const;
H A DDeclCXX.h90 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl() argument
92 : Decl(AccessSpec, DC, ASLoc), ColonLoc(ColonLoc) { in AccessSpecDecl()
118 DeclContext *DC, SourceLocation ASLoc, in Create() argument
120 return new (C, DC) AccessSpecDecl(AS, DC, ASLoc, ColonLoc); in Create()
496 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC,
557 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
562 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC,
1901 CXXDeductionGuideDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in CXXDeductionGuideDecl() argument
1906 : FunctionDecl(CXXDeductionGuide, C, DC, StartLoc, NameInfo, T, TInfo, in CXXDeductionGuideDecl()
1923 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
[all …]
H A DDeclTemplate.h412 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name,
417 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in TemplateDecl() argument
419 : TemplateDecl(DK, DC, L, Name, Params, nullptr) {} in TemplateDecl()
871 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, in RedeclarableTemplateDecl() argument
874 : TemplateDecl(DK, DC, L, Name, Params, Decl), redeclarable_base(C) {} in RedeclarableTemplateDecl()
1019 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
1022 : RedeclarableTemplateDecl(FunctionTemplate, C, DC, L, Name, Params,
1130 static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC,
1238 TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc,
1242 : TypeDecl(TemplateTypeParm, DC, IdLoc, Id, KeyLoc), Typename(Typename),
[all …]
H A DExternalASTMerger.h53 DeclContext *DC; member
143 bool FindExternalVisibleDeclsByName(const DeclContext *DC,
148 FindExternalLexicalDecls(const DeclContext *DC,
159 bool CanComplete(DeclContext *DC);
191 void ForEachMatchingDC(const DeclContext *DC, CallbackType Callback);
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaModule.cpp24 SourceLocation ImportLoc, DeclContext *DC, in checkModuleImportContext() argument
28 if (auto *LSD = dyn_cast<LinkageSpecDecl>(DC)) { in checkModuleImportContext()
37 DC = LSD->getParent(); in checkModuleImportContext()
40 while (isa<LinkageSpecDecl>(DC) || isa<ExportDecl>(DC)) in checkModuleImportContext()
41 DC = DC->getParent(); in checkModuleImportContext()
43 if (!isa<TranslationUnitDecl>(DC)) { in checkModuleImportContext()
47 << M->getFullModuleName() << DC; in checkModuleImportContext()
48 S.Diag(cast<Decl>(DC)->getBeginLoc(), in checkModuleImportContext()
50 << DC; in checkModuleImportContext()
535 for (auto *DC = D->getLexicalDeclContext(); DC; DC = DC->getLexicalParent()) in getEnclosingExportDecl() local
[all …]
/openbsd-src/gnu/llvm/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp32 const DeclContext *DC, bool isBase, bool isIBType) in TypeIndexer() argument
33 : IndexCtx(indexCtx), Parent(parent), ParentDC(DC), IsBase(isBase) { in TypeIndexer()
247 const DeclContext *DC, in indexTypeSourceInfo() argument
253 indexTypeLoc(TInfo->getTypeLoc(), Parent, DC, isBase, isIBType); in indexTypeSourceInfo()
258 const DeclContext *DC, in indexTypeLoc() argument
264 if (!DC) in indexTypeLoc()
265 DC = Parent->getLexicalDeclContext(); in indexTypeLoc()
266 TypeIndexer(*this, Parent, DC, isBase, isIBType).TraverseTypeLoc(TL); in indexTypeLoc()
271 const DeclContext *DC) { in indexNestedNameSpecifierLoc() argument
276 indexNestedNameSpecifierLoc(Prefix, Parent, DC); in indexNestedNameSpecifierLoc()
[all …]
H A DIndexingContext.h76 const DeclContext *DC = nullptr);
79 const NamedDecl *Parent, const DeclContext *DC,
101 const DeclContext *DC = nullptr,
106 const DeclContext *DC = nullptr,
112 const DeclContext *DC = nullptr);
114 bool indexDeclContext(const DeclContext *DC);
117 const DeclContext *DC = nullptr);
/openbsd-src/gnu/llvm/clang/lib/Tooling/Inclusions/Stdlib/
H A DStandardLibrary.cpp131 const DeclContext *DC = D->getDeclContext(); in operator ()() local
132 while (DC && !DC->isNamespace()) { in operator ()()
133 if (NamedDecl::classofKind(DC->getDeclKind())) in operator ()()
134 IntermediateDecl.push_back(DC); in operator ()()
135 DC = DC->getParent(); in operator ()()
137 NSSymbolMap *Symbols = namespaceSymbols(cast_or_null<NamespaceDecl>(DC)); in operator ()()

12345678910>>...14