Home
last modified time | relevance | path

Searched full:auto (Results 1 – 25 of 5909) sorted by relevance

12345678910>>...237

/freebsd/contrib/bsnmp/tests/
H A Dsnmp_parse_server.cc41 const auto str = "somehost"s;
50 const auto str = "some.host.domain"s;
59 const auto str = "some-mul.host-32.domain."s;
68 const auto str = "foo/bar"s;
77 const auto str = "/foo/bar"s;
92 const auto host = "::"s;
93 const auto str = "[" + host + "]";
102 const auto host = "::1"s;
103 const auto str = "[" + host + "]";
112 const auto host = "fc00:0:12::1"s;
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DContainerModeling.cpp153 const auto *Func = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in checkPostCall()
158 const auto Op = Func->getOverloadedOperator(); in checkPostCall()
161 const auto *InstCall = dyn_cast<CXXInstanceCall>(&Call); in checkPostCall()
175 if (const auto *InstCall = dyn_cast<CXXInstanceCall>(&Call)) { in checkPostCall()
196 const auto *OrigExpr = Call.getOriginExpr(); in checkPostCall()
218 auto ContMap = State->get<ContainerMap>(); in checkLiveSymbols()
219 for (const auto &Cont : ContMap) { in checkLiveSymbols()
220 const auto CData = Cont.second; in checkLiveSymbols()
223 if(const auto *SIE = dyn_cast<SymIntExpr>(CData.getBegin())) in checkLiveSymbols()
228 if(const auto *SIE = dyn_cast<SymIntExpr>(CData.getEnd())) in checkLiveSymbols()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.cpp31 if (auto *DRE = dyn_cast<DeclRefExpr>(E)) { in tryToFindPtrOrigin()
32 if (auto *VD = dyn_cast_or_null<VarDecl>(DRE->getDecl())) { in tryToFindPtrOrigin()
33 auto QT = VD->getType(); in tryToFindPtrOrigin()
39 if (auto *tempExpr = dyn_cast<MaterializeTemporaryExpr>(E)) { in tryToFindPtrOrigin()
43 if (auto *tempExpr = dyn_cast<CXXBindTemporaryExpr>(E)) { in tryToFindPtrOrigin()
47 if (auto *tempExpr = dyn_cast<CXXConstructExpr>(E)) { in tryToFindPtrOrigin()
48 if (auto *C = tempExpr->getConstructor()) { in tryToFindPtrOrigin()
49 if (auto *Class = C->getParent(); Class && isSafePtr(Class)) in tryToFindPtrOrigin()
54 if (auto *TempExpr = dyn_cast<CXXUnresolvedConstructExpr>(E)) { in tryToFindPtrOrigin()
58 if (auto *POE = dyn_cast<PseudoObjectExpr>(E)) { in tryToFindPtrOrigin()
[all …]
H A DRawPtrRefLambdaCapturesChecker.cpp74 if (auto *ImplParamDecl = OCMD->getSelfDecl()) in checkASTDecl()
87 auto result = in checkASTDecl()
101 auto *Init = VD->getInit(); in checkASTDecl()
104 auto *L = dyn_cast_or_null<LambdaExpr>(Init->IgnoreParenCasts()); in checkASTDecl()
114 auto *VD = dyn_cast_or_null<VarDecl>(DRE->getDecl()); in checkASTDecl()
117 auto *Init = VD->getInit(); in checkASTDecl()
120 auto *L = dyn_cast_or_null<LambdaExpr>(Init->IgnoreParenCasts()); in checkASTDecl()
130 auto *NsDecl = Decl->getParent(); in checkASTDecl()
139 if (auto *OuterDecl = NsDecl->getParent(); in checkASTDecl()
150 if (auto *Callee = CE->getConstructor()) { in checkASTDecl()
[all …]
H A DRefCntblBaseVirtualDtorChecker.cpp43 auto [It, IsNew] = VisitedBody.insert(Body); in VisitBody()
59 if (auto *Body = Decl->getBody()) in HasSpecializedDelete()
71 auto name = safeGetName(D); in VisitCallExpr()
74 auto *Arg = CE->getArg(i); in VisitCallExpr()
85 if (auto *TempE = dyn_cast<CXXBindTemporaryExpr>(E)) in VisitLambdaArgument()
88 if (auto *Ref = dyn_cast<DeclRefExpr>(E)) { in VisitLambdaArgument()
89 if (auto *VD = dyn_cast_or_null<VarDecl>(Ref->getDecl())) in VisitLambdaArgument()
93 if (auto *Lambda = dyn_cast<LambdaExpr>(E)) { in VisitLambdaArgument()
97 if (auto *ConstructE = dyn_cast<CXXConstructExpr>(E)) { in VisitLambdaArgument()
107 auto *Arg = E->getArgument(); in VisitCXXDeleteExpr()
[all …]
H A DRetainPtrCtorAdoptChecker.cpp137 if (auto *F = CE->getDirectCallee()) { in visitCallExpr()
148 auto *CalleeExpr = CE->getCallee(); in visitCallExpr()
152 if (auto *UnresolvedExpr = dyn_cast<UnresolvedLookupExpr>(CalleeExpr)) { in visitCallExpr()
153 auto Name = UnresolvedExpr->getName(); in visitCallExpr()
168 auto *Arg = CE->getArg(0)->IgnoreParenCasts(); in checkAdoptCall()
169 auto Result = isOwned(Arg); in checkAdoptCall()
185 if (auto *DRE = dyn_cast<DeclRefExpr>(Arg)) { in checkAdoptCall()
200 auto Selector = ObjCMsgExpr->getSelector(); in visitObjCMessageExpr()
202 auto *Receiver = ObjCMsgExpr->getInstanceReceiver()->IgnoreParenCasts(); in visitObjCMessageExpr()
232 auto *CalleeDecl = CE->getCalleeDecl(); in checkCreateOrCopyFunction()
[all …]
H A DPtrTypesSemantics.cpp29 const auto MethodName = safeGetName(MD); in hasPublicMethodInBaseClass()
50 auto CT = Base->getType().getCanonicalType(); in hasPublicMethodInBase()
51 if (auto *TST = dyn_cast<TemplateSpecializationType>(CT)) { in hasPublicMethodInBase()
52 auto TmplName = TST->getTemplateName(); in hasPublicMethodInBase()
54 if (auto *TD = TmplName.getAsTemplateDecl()) in hasPublicMethodInBase()
85 const auto hasPublicRefInBase = [&](const CXXBaseSpecifier *Base, in isSmartPtrCompatible()
87 auto hasRefInBase = clang::hasPublicMethodInBase(Base, IncMethodName); in isSmartPtrCompatible()
101 const auto hasPublicDerefInBase = [&](const CXXBaseSpecifier *Base, in isSmartPtrCompatible()
103 auto hasDerefInBase = clang::hasPublicMethodInBase(Base, DecMethodName); in isSmartPtrCompatible()
184 if (auto *elaboratedT = type->getAs<ElaboratedType>()) { in isPtrOfType()
[all …]
/freebsd/tests/atf_python/sys/netlink/
H A Dnetlink_route.py9 from enum import auto
158 RTN_UNICAST = auto()
159 RTN_LOCAL = auto()
160 RTN_BROADCAST = auto()
161 RTN_ANYCAST = auto()
162 RTN_MULTICAST = auto()
163 RTN_BLACKHOLE = auto()
164 RTN_UNREACHABLE = auto()
165 RTN_PROHIBIT = auto()
166 RTN_THROW = auto()
[all …]
/freebsd/contrib/llvm-project/lld/include/lld/Common/
H A DBPSectionOrdererBase.inc61 auto computeOrder(llvm::StringRef profilePath, bool forFunctionCompression,
91 const auto *isec = sections[sectionIdx];
98 for (auto &[sectionIdx, hashes] : sectionHashes)
99 for (auto hash : hashes)
107 for (auto &[sectionIdx, hashes] : sectionHashes) {
109 for (auto hash : hashes)
112 auto [it, wasInserted] =
124 for (auto &[sectionIdx, hashes] : sectionHashes)
125 for (auto hash : hashes)
132 for (auto &[hash, frequency] : hashFrequency) {
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/PDB/
H A DSymbolFilePDB.cpp156 auto error = loadDataForEXE(PDB_ReaderType::DIA, llvm::StringRef(exePath), in CalculateAbilities()
160 auto module_sp = m_objfile_sp->GetModule(); in CalculateAbilities()
178 auto enum_tables_up = m_session_up->getEnumTables(); in CalculateAbilities()
181 while (auto table_up = enum_tables_up->getNext()) { in CalculateAbilities()
184 auto type = table_up->getTableType(); in CalculateAbilities()
213 auto compilands = m_global_scope_up->findAllChildren<PDBSymbolCompiland>(); in CalculateNumCompileUnits()
230 auto last_compiland_up = compilands->getChildAtIndex(compile_unit_count - 1); in CalculateNumCompileUnits()
240 auto results_up = m_global_scope_up->findAllChildren<PDBSymbolCompiland>(); in GetCompileUnitIndex()
243 auto uid = pdb_compiland.getSymIndexId(); in GetCompileUnitIndex()
245 auto compiland_up = results_up->getChildAtIndex(cu_idx); in GetCompileUnitIndex()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/BinaryReader/
H A DDylibReader.cpp36 auto I = partition_point(Container, [=](const Triple &CT) { in emplace()
49 auto getOSVersionStr = [](uint32_t V) { in constructTriples()
56 auto getOSVersion = [&](const MachOObjectFile::LoadCommandInfo &cmd) { in constructTriples()
57 auto Vers = Obj->getVersionMinLoadCommand(cmd); in constructTriples()
63 auto Arch = getArchitectureName(ArchT); in constructTriples()
65 for (const auto &cmd : Obj->load_commands()) { in constructTriples()
145 auto H = Obj->getHeader(); in readMachOHeader()
146 auto &BA = Slice.getBinaryAttrs(); in readMachOHeader()
167 for (const auto &LCI : Obj->load_commands()) { in readMachOHeader()
170 auto DLLC = Obj->getDylibIDLoadCommand(LCI); in readMachOHeader()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/
H A Drtsan_test_interceptors_posix.cpp111 auto Func = []() { EXPECT_NE(nullptr, malloc(1)); }; in TEST()
117 auto Func = []() { EXPECT_NE(nullptr, calloc(2, 4)); }; in TEST()
124 auto Func = [ptr_1]() { EXPECT_NE(nullptr, realloc(ptr_1, 8)); }; in TEST()
132 auto Func = [ptr_1]() { EXPECT_NE(nullptr, reallocf(ptr_1, 8)); }; in TEST()
139 auto Func = []() { EXPECT_NE(nullptr, valloc(4)); }; in TEST()
153 auto Func = []() { EXPECT_NE(nullptr, aligned_alloc(16, 32)); }; in TEST()
220 auto Func = []() { in TEST()
230 auto Func = []() { EXPECT_NE(memalign(2, 2048), nullptr); }; in TEST()
238 auto Func = []() { EXPECT_NE(pvalloc(2048), nullptr); }; in TEST()
245 auto Func = []() { in TEST()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DLLJIT.cpp59 for (auto *Arg : HelperPrefixArgs) in addHelperAndWrapper()
62 auto *HelperFnType = in addHelperAndWrapper()
64 auto *HelperFn = Function::Create(HelperFnType, GlobalValue::ExternalLinkage, in addHelperAndWrapper()
67 auto *WrapperFn = Function::Create( in addHelperAndWrapper()
71 auto *EntryBlock = BasicBlock::Create(M.getContext(), "entry", WrapperFn); in addHelperAndWrapper()
76 for (auto &Arg : WrapperFn->args()) in addHelperAndWrapper()
78 auto *HelperResult = IB.CreateCall(HelperFn, HelperArgs); in addHelperAndWrapper()
168 auto Ctx = std::make_unique<LLVMContext>(); in setupJITDylib()
169 auto M = std::make_unique<Module>("__standard_lib", *Ctx); in setupJITDylib()
172 auto *Int64Ty = Type::getInt64Ty(*Ctx); in setupJITDylib()
[all …]
H A DLinkGraphLinkingLayer.cpp68 for (auto &P : Plugins) in notifyMaterializing()
75 for (auto &P : Plugins) in notifyFailed()
88 auto &ES = Layer.getExecutionSession(); in lookup()
91 for (auto &KV : Symbols) { in lookup()
105 auto OnResolve = [LookupContinuation = in lookup()
120 for (auto &[DepJD, Deps] : Deps) in lookup()
121 for (auto &DepSym : Deps) in lookup()
132 for (auto *Sym : G.defined_symbols()) in notifyResolved()
134 auto Ptr = getJITSymbolPtrForSymbol(*Sym, G.getTargetTriple()); in notifyResolved()
135 auto Flags = getJITSymbolFlagsForSymbol(*Sym); in notifyResolved()
[all …]
H A DCOFFPlatform.cpp59 auto G = std::make_unique<jitlink::LinkGraph>( in materialize()
63 auto &HeaderSection = G->createSection("__header", MemProt::Read); in materialize()
64 auto &HeaderBlock = createHeaderBlock(*G, HeaderSection); in materialize()
67 auto &ImageBaseSymbol = G->addDefinedSymbol( in materialize()
119 auto HeaderContent = G.allocateContent( in createHeaderBlock()
128 auto ImageBaseOffset = offsetof(HeaderBlockContent, NTHeader) + in addImageBaseRelocationEdge()
160 auto &ES = ObjLinkingLayer.getExecutionSession(); in Create()
168 auto &EPC = ES.getExecutorProcessControl(); in Create()
170 auto GeneratorArchive = in Create()
176 auto OrcRuntimeArchiveGenerator = StaticLibraryDefinitionGenerator::Create( in Create()
[all …]
H A DRTDyldObjectLinkingLayer.cpp27 auto &ES = MR.getTargetJITDylib().getExecutionSession(); in lookup()
31 for (auto &S : Symbols) in lookup()
36 auto OnResolvedWithUnwrap = in lookup()
45 for (auto &KV : *InternedResult) in lookup()
63 for (auto &KV : MR.getSymbols()) { in getResponsibilitySet()
103 auto &ES = getExecutionSession(); in emit()
105 auto Obj = object::ObjectFile::createObjectFile(*O); in emit()
115 auto InternalSymbols = std::make_shared<std::set<StringRef>>(); in emit()
118 for (auto &Sym : (*Obj)->symbols()) { in emit()
121 if (auto SymType = Sym.getType()) { in emit()
[all …]
H A DCore.cpp91 for (auto &[JD, Syms] : *this->Symbols) in FailedToMaterialize()
96 for (auto &[JD, Syms] : *Symbols) in ~FailedToMaterialize()
211 for (auto &[Name, Flags] : Symbols) in AsynchronousSymbolQuery()
217 auto I = ResolvedSymbols.find(Name); in notifySymbolMetRequiredState()
252 auto T = std::make_unique<RunQueryCompleteTask>(std::move(ResolvedSymbols), in handleComplete()
275 auto QRI = QueryRegistrations.find(&JD); in removeQueryDependence()
285 auto I = ResolvedSymbols.find(Name); in dropSymbol()
295 for (auto &[JD, Syms] : QueryRegistrations) in detach()
313 auto &ES = R->getTargetJITDylib().getExecutionSession(); in materialize()
320 auto RequestedSymbols = R->getRequestedSymbols(); in materialize()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DContext.cpp19 auto It = LLVMValueToValueMap.find(V); in detachLLVMValue()
21 auto *Val = It->second.release(); in detachLLVMValue()
40 [[maybe_unused]] auto Pair = in registerValue()
48 if (auto *I = dyn_cast<Instruction>(V)) { in registerValue()
57 auto Pair = LLVMValueToValueMap.try_emplace(LLVMV); in getOrCreateValueInternal()
58 auto It = Pair.first; in getOrCreateValueInternal()
63 if (auto *LLVMI = dyn_cast<llvm::Instruction>(LLVMV)) { in getOrCreateValueInternal()
66 auto *LLVMVAArg = cast<llvm::VAArgInst>(LLVMV); in getOrCreateValueInternal()
71 auto *LLVMFreeze = cast<llvm::FreezeInst>(LLVMV); in getOrCreateValueInternal()
77 auto *LLVMFence = cast<llvm::FenceInst>(LLVMV); in getOrCreateValueInternal()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DCompilerType.cpp35 if (auto type_system_sp = GetTypeSystem()) in IsAggregateType()
42 if (auto type_system_sp = GetTypeSystem()) in IsAnonymousType()
49 if (auto type_system_sp = GetTypeSystem()) in IsScopedEnumerationType()
57 if (auto type_system_sp = GetTypeSystem()) in IsArrayType()
73 if (auto type_system_sp = GetTypeSystem()) in IsVectorType()
80 if (auto type_system_sp = GetTypeSystem()) in IsRuntimeGeneratedType()
87 if (auto type_system_sp = GetTypeSystem()) in IsCharType()
94 if (auto type_system_sp = GetTypeSystem()) in IsCompleteType()
101 if (auto type_system_sp = GetTypeSystem()) in IsForcefullyCompleted()
108 if (auto type_system_sp = GetTypeSystem()) in IsConst()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DComputeDependence.cpp29 auto D = toExprDependenceForImpliedType(E->getType()->getDependence()); in computeDependence()
30 if (auto *S = E->getSourceExpr()) in computeDependence()
65 auto *VD = Result.Val.getLValueBase().dyn_cast<const ValueDecl *>(); in computeDependence()
67 auto *VarD = dyn_cast<VarDecl>(VD); in computeDependence()
84 auto ArgDeps = E->getArgumentExpr()->getDependence(); in computeDependence()
85 auto Deps = ArgDeps & ~ExprDependence::TypeValue; in computeDependence()
91 auto ExprKind = E->getKind(); in computeDependence()
97 auto *NoParens = E->getArgumentExpr()->IgnoreParens(); in computeDependence()
99 if (const auto *DRE = dyn_cast<DeclRefExpr>(NoParens)) in computeDependence()
101 else if (const auto *ME = dyn_cast<MemberExpr>(NoParens)) in computeDependence()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCtxProfAnalysis.cpp84 for (const auto *E : Edges) { in getEdgeSum()
105 for (auto *I : Edges) in setSingleUnknownEdgeCount()
188 if (auto *E = OutEdges[Index]) in getEdgeCount()
215 for (const auto &BBInfo : BBInfos) in allCountersAreAssigned()
218 for (const auto &EdgeInfo : EdgeInfos) in allCountersAreAssigned()
232 const auto *BB = Worklist.front(); in allTakenPathsExit()
246 const auto &BBInfo = getBBInfo(*BB); in allTakenPathsExit()
248 for (auto I = 0U; I < BB->getTerminator()->getNumSuccessors(); ++I) { in allTakenPathsExit()
249 const auto *Succ = BB->getTerminator()->getSuccessor(I); in allTakenPathsExit()
264 for (const auto &BB : F) { in allNonColdSelectsHaveProfile()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DYAMLOutputStyle.cpp50 if (auto EC = dumpFileHeaders()) in dump()
53 if (auto EC = dumpStreamMetadata()) in dump()
56 if (auto EC = dumpStreamDirectory()) in dump()
59 if (auto EC = dumpStringTable()) in dump()
62 if (auto EC = dumpPDBStream()) in dump()
65 if (auto EC = dumpDbiStream()) in dump()
68 if (auto EC = dumpTpiStream()) in dump()
71 if (auto EC = dumpIpiStream()) in dump()
74 if (auto EC = dumpPublics()) in dump()
79 auto MachineType = in dump()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DBalancedPartitioning.cpp95 auto NodesRange = llvm::make_range(Nodes.begin(), Nodes.end()); in run()
96 auto BisectTask = [this, NodesRange, &TP]() { in run()
106 llvm::stable_sort(NodesRange, [](const auto &L, const auto &R) { in run()
121 llvm::sort(Nodes, [](const auto &L, const auto &R) { in bisect()
124 for (auto &N : Nodes) in bisect()
143 auto NodesMid = in bisect()
144 llvm::partition(Nodes, [&](auto &N) { return N.Bucket == LeftBucket; }); in bisect()
147 auto LeftNodes = llvm::make_range(Nodes.begin(), NodesMid); in bisect()
148 auto RightNodes = llvm::make_range(NodesMid, Nodes.end()); in bisect()
150 auto LeftRecTask = [this, LeftNodes, RecDepth, LeftBucket, Offset, &TP]() { in bisect()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAPINotes.cpp64 auto *typeAttr = SwiftTypeAttr::CreateImplicit(S.Context, typeString); in applyAPINotesType()
65 auto *versioned = SwiftVersionedAdditionAttr::CreateImplicit( in applyAPINotesType()
96 auto *nullabilityAttr = in applyNullability()
98 auto *versioned = SwiftVersionedAdditionAttr::CreateImplicit( in applyNullability()
145 auto Existing = GetExistingAttr(D); in handleAPINotedAttribute()
149 auto *Versioned = SwiftVersionedAdditionAttr::CreateImplicit( in handleAPINotedAttribute()
158 if (auto Attr = CreateAttr()) in handleAPINotedAttribute()
165 if (auto Attr = CreateAttr()) { in handleAPINotedAttribute()
166 auto *Versioned = SwiftVersionedAdditionAttr::CreateImplicit( in handleAPINotedAttribute()
175 auto *Versioned = SwiftVersionedRemovalAttr::CreateImplicit( in handleAPINotedAttribute()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp88 auto Wrapper = CB->getWrapperFunction(); in lowerAwaitSuspend()
89 auto Awaiter = CB->getAwaiter(); in lowerAwaitSuspend()
90 auto FramePtr = CB->getFrame(); in lowerAwaitSuspend()
101 if (auto Invoke = dyn_cast<InvokeInst>(CB)) { in lowerAwaitSuspend()
102 auto WrapperInvoke = in lowerAwaitSuspend()
112 } else if (auto Call = dyn_cast<CallInst>(CB)) { in lowerAwaitSuspend()
113 auto WrapperCall = Builder.CreateCall(Wrapper, {Awaiter, FramePtr}); in lowerAwaitSuspend()
126 if (auto *Invoke = dyn_cast<InvokeInst>(CB)) { in lowerAwaitSuspend()
132 auto *ResumeAddr = LB.makeSubFnCall(NewCall, CoroSubFnInst::ResumeIndex, in lowerAwaitSuspend()
138 auto *ResumeCall = Builder.CreateCall(ResumeTy, ResumeAddr, {NewCall}); in lowerAwaitSuspend()
[all …]

12345678910>>...237