Home
last modified time | relevance | path

Searched refs:Expected (Results 1 – 25 of 1062) sorted by relevance

12345678910>>...43

/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DArchive.h49 virtual Expected<StringRef> getRawName() const = 0;
56 virtual Expected<StringRef> getName(uint64_t Size) const = 0;
57 virtual Expected<uint64_t> getSize() const = 0;
61 virtual Expected<const char *> getNextChildLoc() const = 0;
62 virtual Expected<bool> isThin() const = 0;
64 Expected<sys::fs::perms> getAccessMode() const;
65 Expected<sys::TimePoint<std::chrono::seconds>> getLastModified() const;
66 Expected<unsigned> getUID() const;
67 Expected<unsigned> getGID() const;
111 Expected<StringRef> getRawName() const override;
[all …]
H A DELF.h109 Expected<T> operator[](uint64_t N) {
283 Expected<const T *> getEntry(uint32_t Section, uint32_t Entry) const;
285 Expected<const T *> getEntry(const Elf_Shdr &Section, uint32_t Entry) const;
287 Expected<std::vector<VerDef>>
289 Expected<std::vector<VerNeed>> getVersionDependencies(
292 Expected<StringRef> getSymbolVersionByIndex(
297 Expected<StringRef>
300 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
301 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section,
303 Expected<StringRef> getLinkAsStrtab(const typename ELFT::Shdr &Sec) const;
[all …]
H A DObjectFile.h97 Expected<StringRef> getName() const;
101 Expected<StringRef> getContents() const;
139 Expected<section_iterator> getRelocatedSection() const;
187 Expected<StringRef> getName() const;
190 Expected<uint64_t> getAddress() const;
194 Expected<uint64_t> getValue() const;
199 Expected<SymbolRef::Type> getType() const;
203 Expected<section_iterator> getSection() const;
249 virtual Expected<StringRef> getSymbolName(DataRefImpl Symb) const = 0;
252 virtual Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const = 0;
[all …]
H A DMinidump.h28 static Expected<std::unique_ptr<MinidumpFile>> create(MemoryBufferRef Source);
50 Expected<ArrayRef<uint8_t>>
57 Expected<std::string> getString(size_t Offset) const;
63 Expected<const minidump::SystemInfo &> getSystemInfo() const { in getSystemInfo()
72 Expected<ArrayRef<minidump::Module>> getModuleList() const { in getModuleList()
81 Expected<ArrayRef<minidump::Thread>> getThreadList() const { in getThreadList()
89 Expected<const minidump::ExceptionStream &> getExceptionStream() const { in getExceptionStream()
101 Expected<ArrayRef<minidump::MemoryDescriptor>> getMemoryList() const { in getMemoryList()
142 Expected<iterator_range<MemoryInfoIterator>> getMemoryInfoList() const;
155 static Expected<ArrayRef<uint8_t>> getDataSlice(ArrayRef<uint8_t> Data,
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/
H A DSymbolize.h77 Expected<DILineInfo> symbolizeCode(const ObjectFile &Obj,
79 Expected<DILineInfo> symbolizeCode(const std::string &ModuleName,
81 Expected<DILineInfo> symbolizeCode(ArrayRef<uint8_t> BuildID,
83 Expected<DIInliningInfo>
86 Expected<DIInliningInfo>
89 Expected<DIInliningInfo>
93 Expected<DIGlobal> symbolizeData(const ObjectFile &Obj,
95 Expected<DIGlobal> symbolizeData(const std::string &ModuleName,
97 Expected<DIGlobal> symbolizeData(ArrayRef<uint8_t> BuildID,
99 Expected<st
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Remarks/
H A DYAMLRemarkParser.cpp27 assert(Ctx && "Expected non-null Ctx in diagnostic handler."); in handleDiagnostic()
29 assert(Message.empty() && "Expected an empty string."); in handleDiagnostic()
62 static Expected<bool> parseMagic(StringRef &Buf) { in parseMagic()
72 static Expected<uint64_t> parseVersion(StringRef &Buf) { in parseVersion()
88 static Expected<uint64_t> parseStrTabSize(StringRef &Buf) {
98 static Expected<ParsedStringTable> parseStrTab(StringRef &Buf, in parseStrTabSize()
107 return Expected<ParsedStringTable>(std::move(Result)); in parseStrTab()
110 Expected<std::unique_ptr<YAMLRemarkParser>> remarks::createYAMLParserFromMeta( in parseStrTab()
114 Expected<bool> isMeta = parseMagic(Buf); in createYAMLParserFromMeta()
120 Expected<uint64_ in createYAMLParserFromMeta()
[all...]
H A DYAMLRemarkParser.h66 Expected<std::unique_ptr<Remark>> next() override;
81 Expected<std::unique_ptr<Remark>> parseRemark(yaml::Document &Remark);
83 Expected<Type> parseType(yaml::MappingNode &Node);
85 Expected<StringRef> parseKey(yaml::KeyValueNode &Node);
87 virtual Expected<StringRef> parseStr(yaml::KeyValueNode &Node);
89 Expected<unsigned> parseUnsigned(yaml::KeyValueNode &Node);
91 Expected<RemarkLocation> parseDebugLoc(yaml::KeyValueNode &Node);
93 Expected<Argument> parseArg(yaml::Node &Node);
107 Expected<StringRef> parseStr(yaml::KeyValueNode &Node) override;
110 Expected<std::unique_ptr<YAMLRemarkParser>> createYAMLParserFromMeta(
H A DRemarkLinker.cpp29 static Expected<StringRef>
38 Expected<std::optional<StringRef>>
40 Expected<StringRef> SectionName = getRemarksSectionName(Obj); in getRemarksSectionContents()
45 Expected<StringRef> MaybeName = Section.getName(); in getRemarksSectionContents()
51 if (Expected<StringRef> Contents = Section.getContents()) in getRemarksSectionContents()
71 Expected<Format> ParserFormat = magicToFormat(Buffer); in link()
77 Expected<std::unique_ptr<RemarkParser>> MaybeParser = in link()
88 Expected<std::unique_ptr<Remark>> Next = Parser.next(); in link()
107 Expected<std::optional<StringRef>> SectionOrErr = in link()
118 Expected<std::unique_ptr<RemarkSerializer>> MaybeSerializer = in serialize()
/freebsd/contrib/llvm-project/llvm/lib/Bitstream/Reader/
H A DBitstreamReader.cpp40 Expected<uint32_t> MaybeVBR = ReadVBR(bitc::CodeLenWidth); in EnterSubBlock()
52 Expected<word_t> MaybeNum = Read(bitc::BlockSizeWidth); in EnterSubBlock()
71 static Expected<uint64_t> readAbbreviatedField(BitstreamCursor &Cursor, in readAbbreviatedField()
87 if (Expected<unsigned> Res = Cursor.Read(6)) in readAbbreviatedField()
96 Expected<unsigned> BitstreamCursor::skipRecord(unsigned AbbrevID) { in skipRecord()
99 Expected<uint32_t> MaybeCode = ReadVBR(6); in skipRecord()
103 Expected<uint32_t> MaybeVBR = ReadVBR(6); in skipRecord()
108 if (Expected<uint64_t> Res = ReadVBR64(6)) in skipRecord()
115 Expected<const BitCodeAbbrev *> MaybeAbbv = getAbbrev(AbbrevID); in skipRecord()
130 Expected<uint64_t> MaybeCode = readAbbreviatedField(*this, CodeOp); in skipRecord()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTImporter.h267 virtual Expected<Decl *> ImportImpl(Decl *From);
316 llvm::Expected<ExprWithCleanups::CleanupObject>
323 llvm::Expected<const Type *> Import(const Type *FromT);
329 llvm::Expected<QualType> Import(QualType FromT);
336 llvm::Expected<TypeSourceInfo *> Import(TypeSourceInfo *FromTSI);
343 llvm::Expected<Attr *> Import(const Attr *FromAttr);
350 llvm::Expected<Decl *> Import(Decl *FromD);
351 llvm::Expected<const Decl *> Import(const Decl *FromD) { in Import()
355 llvm::Expected<InheritedConstructor>
386 llvm::Expected<DeclContext *> ImportContext(DeclContext *FromDC);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeReader.h59 // These functions are for converting Expected/Error values to
66 ErrorOr<T> expectedToErrorOrAndEmitErrors(LLVMContext &Ctx, Expected<T> Val) { in expectedToErrorOrAndEmitErrors()
121 friend Expected<BitcodeFileContents>
124 Expected<std::unique_ptr<Module>>
142 Expected<std::unique_ptr<Module>>
147 Expected<std::unique_ptr<Module>>
152 Expected<BitcodeLTOInfo> getLTOInfo();
155 Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary();
174 Expected<BitcodeFileContents> getBitcodeFileContents(MemoryBufferRef Buffer);
177 Expected<st
[all...]
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Derror_test.cpp175 Expected<int> A = 7; in TEST()
184 Expected<int &> B = A; in TEST()
195 EXPECT_DEATH({ Expected<int> A = 7; }, in TEST()
206 Expected<int> A = 7; in TEST()
219 Expected<int> A = 7; in TEST()
228 Expected<int> A = make_error<CustomError>(42); in TEST()
239 Expected<int> A = make_error<CustomError>(42); in TEST()
249 EXPECT_DEATH({ Expected<int> A = make_error<CustomError>(42); }, in TEST()
259 Expected<B *> A1(Expected<D *>(nullptr)); in TEST()
262 A1 = Expected<D *>(nullptr); in TEST()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DArchive.cpp56 Expected<StringRef> NameOrErr = ArMemHeader->getName(Size); in createMemberHeaderParseError()
118 Expected<StringRef> NameOrErr = getName(Size); in ArchiveMemberHeader()
155 Expected<StringRef> ArchiveMemberHeader::getRawName() const { in getRawName()
180 Expected<uint64_t>
198 Expected<uint64_t>
216 Expected<StringRef> BigArchiveMemberHeader::getRawName() const { in getRawName()
217 Expected<uint64_t> NameLenOrErr = getArchiveMemberDecField( in getRawName()
245 Expected<StringRef> ArchiveMemberHeader::getName(uint64_t Size) const { in getName()
259 Expected<StringRef> NameOrErr = getRawName(); in getName()
353 Expected<StringRef> BigArchiveMemberHeader::getName(uint64_t Size) const { in getName()
[all …]
H A DIRObjectFile.cpp49 Expected<uint32_t> IRObjectFile::getSymbolFlags(DataRefImpl Symb) const {
72 Expected<MemoryBufferRef>
76 Expected<StringRef> Contents = Sec.getContents(); in findBitcodeInObject()
88 Expected<MemoryBufferRef>
98 Expected<std::unique_ptr<ObjectFile>> ObjFile = in findBitcodeInMemBuffer()
109 Expected<std::unique_ptr<IRObjectFile>>
111 Expected<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); in create()
115 Expected<std::vector<BitcodeModule>> BMsOrErr = in create()
122 Expected<std::unique_ptr<Module>> MOrErr = in create()
135 Expected<IRSymtabFil in create()
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMSVCErrorWorkarounds.h43 template <typename T> class MSVCPExpected : public Expected<T> {
46 : Expected<T>(make_error<StringError>("", inconvertibleErrorCode())) { in MSVCPExpected()
50 MSVCPExpected(MSVCPExpected &&Other) : Expected<T>(std::move(Other)) {} in MSVCPExpected()
53 Expected<T>::operator=(std::move(Other));
57 MSVCPExpected(Error Err) : Expected<T>(std::move(Err)) {} in MSVCPExpected()
63 : Expected<T>(std::move(Val)) {}
67 Expected<OtherT> &&Other,
69 : Expected<T>(std::move(Other)) {}
73 Expected<OtherT> &&Other,
75 : Expected<T>(std::move(Other)) {}
/freebsd/contrib/llvm-project/clang/include/clang/Interpreter/
H A DInterpreter.h56 llvm::Expected<std::unique_ptr<CompilerInstance>> CreateCpp();
64 llvm::Expected<std::unique_ptr<CompilerInstance>> CreateCudaHost();
65 llvm::Expected<std::unique_ptr<CompilerInstance>> CreateCudaDevice();
68 static llvm::Expected<std::unique_ptr<CompilerInstance>>
71 llvm::Expected<std::unique_ptr<CompilerInstance>> createCuda(bool device);
134 static llvm::Expected<std::unique_ptr<Interpreter>>
136 static llvm::Expected<std::unique_ptr<Interpreter>>
143 llvm::Expected<llvm::orc::LLJIT &> getExecutionEngine();
145 llvm::Expected<PartialTranslationUnit &> Parse(llvm::StringRef Code);
148 llvm::Expected<llvm::orc::ExecutorAddr> CompileDtorCall(CXXRecordDecl *CXXRD);
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.h318 llvm::Expected<PythonObject> CallMethod(const char *name,
330 llvm::Expected<PythonObject> Call(const T &... t) const {
339 llvm::Expected<PythonObject> GetAttribute(const llvm::Twine &name) const {
348 llvm::Expected<PythonObject> GetType() const {
357 llvm::Expected<bool> IsTrue() {
366 llvm::Expected<long long> AsLongLong() const;
368 llvm::Expected<unsigned long long> AsUnsignedLongLong() const;
371 llvm::Expected<unsigned long long> AsModuloUnsignedLongLong() const;
373 llvm::Expected<bool> IsInstance(const PythonObject &cls) {
388 template <typename T> llvm::Expected<T> As(llvm::Expected<PythonObject> &&obj) {
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Debuginfod/
H A DDebuginfod.h58 Expected<std::string> getDefaultDebuginfodCacheDirectory();
71 Expected<std::string> getCachedOrDownloadSource(object::BuildIDRef ID,
79 Expected<std::string> getCachedOrDownloadExecutable(object::BuildIDRef ID);
86 Expected<std::string> getCachedOrDownloadDebuginfo(object::BuildIDRef ID);
90 Expected<std::string> getCachedOrDownloadArtifact(StringRef UniqueKey,
96 Expected<std::string> getCachedOrDownloadArtifact(
131 Expected<std::optional<std::string>> getDebugBinaryPath(object::BuildIDRef);
132 Expected<std::optional<std::string>> getBinaryPath(object::BuildIDRef);
136 Expected<bool> updateIfStale();
151 Expected<std::string> findDebugBinaryPath(object::BuildIDRef);
[all …]
/freebsd/contrib/googletest/googletest/test/
H A Dgoogletest-output-test-golden-lin.txt6 Expected: true
10 Expected equality of these values:
42 Expected equality of these values:
50 Expected equality of these values:
60 Expected equality of these values:
76 Expected equality of these values:
86 Expected equality of these values:
98 Expected: true
108 Expected: (3) >= (a[i]), actual: 3 vs 9
114 Expected: (3) >= (a[i]), actual: 3 vs 6
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DPDBFile.h68 Expected<ArrayRef<uint8_t>> getBlockData(uint32_t BlockIndex,
87 Expected<std::unique_ptr<msf::MappedBlockStream>>
89 Expected<std::unique_ptr<msf::MappedBlockStream>>
98 Expected<InfoStream &> getPDBInfoStream();
99 Expected<DbiStream &> getPDBDbiStream();
100 Expected<GlobalsStream &> getPDBGlobalsStream();
101 Expected<TpiStream &> getPDBTpiStream();
102 Expected<TpiStream &> getPDBIpiStream();
103 Expected<PublicsStream &> getPDBPublicsStream();
104 Expected<SymbolStream &> getPDBSymbolStream();
[all …]
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock_output_test_golden.txt24 Expected to be called twice, but has only 1 WillOnce().
39 Expected arg #0: is equal to 0
41 Expected: to be called once
53 Expected arg #0: is equal to 0
55 Expected: to be called once
64 Expected: to be called once
72 Expected: to be called once
100 Expected: the expectation is active
102 Expected: to be called once
105 Expected arg #0: is equal to 0
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPTBundleSaver.cpp70 static Expected<FileSpec>
97 static llvm::Expected<std::vector<JSONThread>>
137 static Expected<std::optional<FileSpec>>
156 Expected<std::vector<uint8_t>> compact_context_switch_trace = in WriteContextSwitchTrace()
177 static Expected<FileSpec> WriteIntelPTTrace(TraceIntelPT &trace_ipt, in WriteIntelPTTrace()
193 static llvm::Expected<std::optional<std::vector<JSONCpu>>>
206 Expected<std::optional<FileSpec>> context_switch_trace_path = in BuildCpusSection()
215 if (Expected<FileSpec> ipt_trace_path = in BuildCpusSection()
246 static llvm::Expected<std::vector<JSONModule>>
304 static llvm::Expected<JSONProcess>
[all …]
/freebsd/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheckImpl.h91 Expected<std::string> getWildcardRegex() const;
96 Expected<std::string> getMatchingString(APInt Value) const;
118 Expected<APInt> exprAdd(const APInt &Lhs, const APInt &Rhs, bool &Overflow); in log()
119 Expected<APInt> exprSub(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
120 Expected<APInt> exprMul(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
121 Expected<APInt> exprDiv(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
122 Expected<APInt> exprMax(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
123 Expected<APInt> exprMin(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
139 virtual Expected<APInt> eval() const = 0;
145 virtual Expected<ExpressionForma
[all...]
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/
H A Derror.h39 template <typename T> friend class Expected; variable
185 template <typename T> class ORC_RT_NODISCARD Expected {
187 template <class OtherT> friend class Expected; variable
202 Expected(Error Err) : HasError(true), Unchecked(true) { in Expected() function
209 Expected(OtherT &&Val,
216 Expected(Expected &&Other) { moveConstruct(std::move(Other)); } in Expected() function
221 Expected(
222 Expected<OtherT> &&Other,
230 explicit Expected(
231 Expected<OtherT> &&Other,
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackReader.h22 /// Expected<bool> ReadObj = MPReader.read(&Obj);
128 Expected<bool> read(Object &Obj);
141 template <class T> Expected<bool> readRaw(Object &Obj);
142 template <class T> Expected<bool> readInt(Object &Obj);
143 template <class T> Expected<bool> readUInt(Object &Obj);
144 template <class T> Expected<bool> readLength(Object &Obj);
145 template <class T> Expected<bool> readExt(Object &Obj);
146 Expected<bool> createRaw(Object &Obj, uint32_t Size);
147 Expected<bool> createExt(Object &Obj, uint32_t Size);

12345678910>>...43