| /freebsd-12-stable/contrib/gcc/ |
| D | diagnostic.h | 118 #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 …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/MC/MCDisassembler/ |
| D | Disassembler.cpp | 104 LLVMDisasmContext *DC = new LLVMDisasmContext( in LLVMCreateDisasmCPUFeatures() local 108 if (!DC) in LLVMCreateDisasmCPUFeatures() 111 DC->setCPU(CPU); in LLVMCreateDisasmCPUFeatures() 112 return DC; in LLVMCreateDisasmCPUFeatures() 134 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); in LLVMDisasmDispose() local 135 delete DC; in LLVMDisasmDispose() 140 static void emitComments(LLVMDisasmContext *DC, in emitComments() argument 143 StringRef Comments = DC->CommentsToEmit.str(); in emitComments() 145 const MCAsmInfo *MAI = DC->getAsmInfo(); in emitComments() 163 DC->CommentsToEmit.clear(); in emitComments() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/AST/ |
| D | ASTImporterLookupTable.cpp | 89 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add() argument 90 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in add() 95 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() argument 96 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in remove() 104 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add() local 105 add(DC, ND); in add() 106 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add() 107 if (DC != ReDC) in add() 113 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove() local 114 remove(DC, ND); in remove() [all …]
|
| D | DeclBase.cpp | 260 auto *DC = getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in isTemplated() local 261 return DC->isDependentContext() || isTemplateDecl() || in isTemplated() 266 if (auto *DC = dyn_cast<DeclContext>(this)) in getTemplateDepth() local 267 if (DC->isFileContext()) in getTemplateDepth() 281 const DeclContext *DC = in getTemplateDepth() local 283 return cast<Decl>(DC)->getTemplateDepth(); in getTemplateDepth() 287 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod() local 288 DC && !DC->isTranslationUnit() && !DC->isNamespace(); in getParentFunctionOrMethod() 289 DC = DC->getParent()) in getParentFunctionOrMethod() 290 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod() [all …]
|
| D | DeclTemplate.cpp | 222 TemplateDecl::TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() argument 225 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl), TemplateParams(Params) {} in TemplateDecl() 343 DeclContext *DC, in Create() argument 349 return new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl); in Create() 442 DeclContext *DC, in Create() argument 449 return new (C, DC) ClassTemplateDecl(C, DC, L, Name, Params, Decl); in Create() 618 TemplateTypeParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create() argument 625 new (C, DC, in Create() 627 TemplateTypeParmDecl(DC, KeyLoc, NameLoc, Id, Typename, in Create() 699 DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D, in NonTypeTemplateParmDecl() argument [all …]
|
| D | DeclOpenMP.cpp | 29 DeclContext *DC, in Create() argument 33 C, DC, llvm::None, 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 …]
|
| D | ExternalASTMerger.cpp | 38 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 …]
|
| D | Decl.cpp | 304 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext() local 305 while (DC->getDeclKind() != Decl::TranslationUnit) { in getOutermostFuncOrBlockContext() 306 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext() 307 Ret = cast<Decl>(DC); in getOutermostFuncOrBlockContext() 308 DC = DC->getParent(); in getOutermostFuncOrBlockContext() 717 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl() local 718 !isa<TranslationUnitDecl>(DC); in getLVForNamespaceScopeDecl() 719 DC = DC->getParent()) { in getLVForNamespaceScopeDecl() 720 const auto *ND = dyn_cast<NamespaceDecl>(DC); in getLVForNamespaceScopeDecl() 1095 const DeclContext *DC = getDeclContext()->getRedeclContext(); in isReserved() local [all …]
|
| D | DeclObjC.cpp | 68 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() 850 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface() local 851 if (isa<ObjCProtocolDecl>(DC)) in isDesignatedInitializerForTheInterface() 1492 DeclContext *DC, in Create() argument 1499 auto *Result = new (C, DC) in Create() [all …]
|
| D | DeclCXX.cpp | 125 DeclContext *DC, SourceLocation StartLoc, in CXXRecordDecl() argument 128 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), in CXXRecordDecl() 133 DeclContext *DC, SourceLocation StartLoc, in Create() argument 137 auto *R = new (C, DC) CXXRecordDecl(CXXRecord, TK, C, DC, StartLoc, IdLoc, Id, in Create() 148 CXXRecordDecl::CreateLambda(const ASTContext &C, DeclContext *DC, in CreateLambda() argument 152 auto *R = new (C, DC) CXXRecordDecl(CXXRecord, TTK_Class, C, DC, Loc, Loc, in CreateLambda() 1900 static bool isDeclContextInNamespace(const DeclContext *DC) { in isDeclContextInNamespace() argument 1901 while (!DC->isTranslationUnit()) { in isDeclContextInNamespace() 1902 if (DC->isNamespace()) in isDeclContextInNamespace() 1904 DC = DC->getParent(); in isDeclContextInNamespace() [all …]
|
| D | Mangle.cpp | 285 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock() argument 287 assert(!isa<CXXConstructorDecl>(DC) && !isa<CXXDestructorDecl>(DC)); in mangleBlock() 291 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) { in mangleBlock() 294 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock() 296 if (isa<BlockDecl>(DC)) in mangleBlock() 297 for (; DC && isa<BlockDecl>(DC); DC = DC->getParent()) in mangleBlock() 298 (void) getBlockId(cast<BlockDecl>(DC), true); in mangleBlock() 299 assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) && in mangleBlock() 301 if (const auto *CD = dyn_cast<CXXConstructorDecl>(DC)) in mangleBlock() 303 else if (const auto *DD = dyn_cast<CXXDestructorDecl>(DC)) in mangleBlock() [all …]
|
| D | ASTDumper.cpp | 25 void ASTDumper::dumpLookups(const DeclContext *DC, bool DumpDecls) { in dumpLookups() argument 28 NodeDumper.dumpBareDeclRef(cast<Decl>(DC)); in dumpLookups() 30 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups() 31 if (Primary != DC) { in dumpLookups() 218 const DeclContext *DC = this; in dumpLookups() local 219 while (!DC->isTranslationUnit()) in dumpLookups() 220 DC = DC->getParent(); in dumpLookups() 221 const ASTContext &Ctx = cast<TranslationUnitDecl>(DC)->getASTContext(); in dumpLookups()
|
| D | DeclFriend.cpp | 34 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()
|
| /freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/ |
| D | ASTLambda.h | 33 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 DeclContext *DC) { in isGenericLambdaCallOperatorOrStaticInvokerSpecialization() argument 69 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(DC); in isGenericLambdaCallOperatorOrStaticInvokerSpecialization() 81 inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) { in getLambdaAwareParentOfDeclContext() argument 82 if (isLambdaCallOperator(DC)) in getLambdaAwareParentOfDeclContext() 83 return DC->getParent()->getParent(); in getLambdaAwareParentOfDeclContext() [all …]
|
| D | DeclOpenMP.h | 50 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 …]
|
| D | Decl.h | 133 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument 134 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext() 156 static PragmaCommentDecl *Create(const ASTContext &C, TranslationUnitDecl *DC, 191 TranslationUnitDecl *DC, 239 static ExternCContextDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument 240 return static_cast<ExternCContextDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext() 261 NamedDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName N) in NamedDecl() argument 262 : Decl(DK, DC, L), Name(N) {} in NamedDecl() 370 const DeclContext *DC = getDeclContext(); in isCXXClassMember() local 375 if (isa<EnumDecl>(DC)) in isCXXClassMember() [all …]
|
| D | ASTImporterLookupTable.h | 57 void add(DeclContext *DC, NamedDecl *ND); 58 void remove(DeclContext *DC, NamedDecl *ND); 79 LookupResult lookup(DeclContext *DC, DeclarationName Name) const; 83 bool contains(DeclContext *DC, NamedDecl *ND) const; 84 void dump(DeclContext *DC) const;
|
| D | DeclCXX.h | 91 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl() argument 93 : Decl(AccessSpec, DC, ASLoc), ColonLoc(ColonLoc) { in AccessSpecDecl() 119 DeclContext *DC, SourceLocation ASLoc, in Create() argument 121 return new (C, DC) AccessSpecDecl(AS, DC, ASLoc, ColonLoc); in Create() 483 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC, 544 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC, 549 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC, 1854 CXXDeductionGuideDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in CXXDeductionGuideDecl() argument 1859 : FunctionDecl(CXXDeductionGuide, C, DC, StartLoc, NameInfo, T, TInfo, in CXXDeductionGuideDecl() 1876 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, [all …]
|
| D | DeclTemplate.h | 404 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, 409 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in TemplateDecl() argument 411 : TemplateDecl(DK, DC, L, Name, Params, nullptr) {} in TemplateDecl() 848 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, in RedeclarableTemplateDecl() argument 851 : TemplateDecl(DK, DC, L, Name, Params, Decl), redeclarable_base(C) {} in RedeclarableTemplateDecl() 997 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L, 1000 : RedeclarableTemplateDecl(FunctionTemplate, C, DC, L, Name, Params, 1117 static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC, 1208 TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc, 1212 : TypeDecl(TemplateTypeParm, DC, IdLoc, Id, KeyLoc), Typename(Typename), [all …]
|
| D | ExternalASTMerger.h | 53 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);
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/ |
| D | SemaModule.cpp | 23 SourceLocation ImportLoc, DeclContext *DC, in checkModuleImportContext() argument 27 if (auto *LSD = dyn_cast<LinkageSpecDecl>(DC)) { in checkModuleImportContext() 36 DC = LSD->getParent(); in checkModuleImportContext() 39 while (isa<LinkageSpecDecl>(DC) || isa<ExportDecl>(DC)) in checkModuleImportContext() 40 DC = DC->getParent(); in checkModuleImportContext() 42 if (!isa<TranslationUnitDecl>(DC)) { in checkModuleImportContext() 46 << M->getFullModuleName() << DC; in checkModuleImportContext() 47 S.Diag(cast<Decl>(DC)->getBeginLoc(), in checkModuleImportContext() 49 << DC; in checkModuleImportContext() 335 for (auto *DC = D->getLexicalDeclContext(); DC; DC = DC->getLexicalParent()) in getEnclosingExportDecl() local [all …]
|
| D | SemaAccess.cpp | 66 DeclContext *DC = D->getDeclContext(); in FindDeclaringClass() local 70 if (isa<EnumDecl>(DC)) in FindDeclaringClass() 71 DC = cast<EnumDecl>(DC)->getDeclContext(); in FindDeclaringClass() 73 CXXRecordDecl *DeclaringClass = cast<CXXRecordDecl>(DC); in FindDeclaringClass() 83 explicit EffectiveContext(DeclContext *DC) in EffectiveContext() 84 : Inner(DC), in EffectiveContext() 85 Dependent(DC->isDependentContext()) { in EffectiveContext() 90 if (auto *DGD = dyn_cast<CXXDeductionGuideDecl>(DC)) { in EffectiveContext() 92 DC = DGD->getCorrespondingConstructor(); in EffectiveContext() 93 if (!DC) { in EffectiveContext() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Index/ |
| D | IndexTypeSourceInfo.cpp | 29 const DeclContext *DC, bool isBase, bool isIBType) in TypeIndexer() argument 30 : IndexCtx(indexCtx), Parent(parent), ParentDC(DC), IsBase(isBase) { in TypeIndexer() 237 const DeclContext *DC, in indexTypeSourceInfo() argument 243 indexTypeLoc(TInfo->getTypeLoc(), Parent, DC, isBase, isIBType); in indexTypeSourceInfo() 248 const DeclContext *DC, in indexTypeLoc() argument 254 if (!DC) in indexTypeLoc() 255 DC = Parent->getLexicalDeclContext(); in indexTypeLoc() 256 TypeIndexer(*this, Parent, DC, isBase, isIBType).TraverseTypeLoc(TL); in indexTypeLoc() 261 const DeclContext *DC) { in indexNestedNameSpecifierLoc() argument 266 indexNestedNameSpecifierLoc(Prefix, Parent, DC); in indexNestedNameSpecifierLoc() [all …]
|
| D | IndexingContext.h | 76 const DeclContext *DC = nullptr); 80 const DeclContext *DC, 103 const DeclContext *DC = nullptr, 108 const DeclContext *DC = nullptr, 114 const DeclContext *DC = nullptr); 116 bool indexDeclContext(const DeclContext *DC); 119 const DeclContext *DC = nullptr);
|
| /freebsd-12-stable/sys/netpfil/ipfw/ |
| D | ip_dn_io.c | 151 #define DC(x) (&(VNET_NAME(dn_cfg).x)) macro 168 CTLFLAG_RW | CTLFLAG_VNET, DC(io_fast), 0, "Enable fast dummynet io."); 170 CTLFLAG_RW | CTLFLAG_VNET, DC(debug), 0, "Dummynet debug level"); 174 CTLFLAG_RD | CTLFLAG_VNET, DC(red_lookup_depth), 0, "Depth of RED lookup table"); 176 CTLFLAG_RD | CTLFLAG_VNET, DC(red_avg_pkt_size), 0, "RED Medium packet size"); 178 CTLFLAG_RD | CTLFLAG_VNET, DC(red_max_pkt_size), 0, "RED Max packet size"); 182 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_delta), 0, "Last vs standard tick difference (usec)."); 184 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_delta_sum), 0, "Accumulated tick difference (usec)."); 186 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_adjustment), 0, "Tick adjustments done."); 188 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_diff), 0, [all …]
|