Searched refs:Expected (Results 1 - 25 of 598) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/XRay/
H A DFileHeaderReader.h26 Expected<XRayFileHeader> readBinaryFormatHeader(DataExtractor &HeaderExtractor,
H A DFDRRecordProducer.h23 virtual Expected<std::unique_ptr<Record>> produce() = 0;
35 Expected<std::unique_ptr<Record>> findNextBufferExtent();
44 Expected<std::unique_ptr<Record>> produce() override;
H A DTrace.h53 friend Expected<Trace> loadTrace(const DataExtractor &, bool);
71 Expected<Trace> loadTraceFile(StringRef Filename, bool Sort = false);
75 Expected<Trace> loadTrace(const DataExtractor &Extractor, bool Sort = false);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackReader.h122 Expected<bool> read(Object &Obj);
135 template <class T> Expected<bool> readRaw(Object &Obj);
136 template <class T> Expected<bool> readInt(Object &Obj);
137 template <class T> Expected<bool> readUInt(Object &Obj);
138 template <class T> Expected<bool> readLength(Object &Obj);
139 template <class T> Expected<bool> readExt(Object &Obj);
140 Expected<bool> createRaw(Object &Obj, uint32_t Size);
141 Expected<bool> createExt(Object &Obj, uint32_t Size);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Remarks/
H A DRemarkFormat.h28 Expected<Format> parseFormat(StringRef FormatStr);
31 Expected<Format> magicToFormat(StringRef Magic);
H A DRemarkParser.h52 virtual Expected<std::unique_ptr<Remark>> next() = 0;
75 Expected<StringRef> operator[](size_t Index) const;
78 Expected<std::unique_ptr<RemarkParser>> createRemarkParser(Format ParserFormat,
81 Expected<std::unique_ptr<RemarkParser>>
85 Expected<std::unique_ptr<RemarkParser>>
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DMSVCErrorWorkarounds.h10 // constructible, so this header provides analogues of Error an Expected
13 // FIXME: Kill off this header and migrate all users to Error/Expected once we
41 // A default-constructible llvm::Expected that is suitable for use with MSVC's
43 template <typename T> class MSVCPExpected : public Expected<T> {
46 : Expected<T>(make_error<StringError>("", inconvertibleErrorCode())) {
50 MSVCPExpected(MSVCPExpected &&Other) : Expected<T>(std::move(Other)) {}
53 Expected<T>::operator=(std::move(Other));
57 MSVCPExpected(Error Err) : Expected<T>(std::move(Err)) {}
64 : Expected<T>(std::move(Val)) {}
68 Expected<Other
[all...]
H A DCachePruning.h22 template <typename T> class Expected;
67 Expected<CachePruningPolicy> parseCachePruningPolicy(StringRef PolicyStr);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeReader.h34 // These functions are for converting Expected/Error values to
41 ErrorOr<T> expectedToErrorOrAndEmitErrors(LLVMContext &Ctx, Expected<T> Val) {
77 friend Expected<BitcodeFileContents>
80 Expected<std::unique_ptr<Module>> getModuleImpl(LLVMContext &Context,
98 Expected<std::unique_ptr<Module>> getLazyModule(LLVMContext &Context,
103 Expected<std::unique_ptr<Module>> parseModule(LLVMContext &Context);
107 Expected<BitcodeLTOInfo> getLTOInfo();
110 Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary();
128 Expected<BitcodeFileContents> getBitcodeFileContents(MemoryBufferRef Buffer);
131 Expected<st
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/TextAPI/MachO/
H A DTextAPIReader.h22 static Expected<std::unique_ptr<InterfaceFile>>
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Object/
H A DArchive.h46 Expected<StringRef> getRawName() const;
49 Expected<StringRef> getName(uint64_t Size) const;
51 Expected<uint64_t> getSize() const;
53 Expected<sys::fs::perms> getAccessMode() const;
54 Expected<sys::TimePoint<std::chrono::seconds>> getLastModified() const;
61 Expected<unsigned> getUID() const;
62 Expected<unsigned> getGID() const;
98 Expected<bool> isThinMember() const;
110 Expected<Child> getNext() const;
112 Expected<StringRe
[all...]
H A DArchiveWriter.h32 static Expected<NewArchiveMember>
35 static Expected<NewArchiveMember> getFile(StringRef FileName,
39 Expected<std::string> computeArchiveRelativePath(StringRef From, StringRef To);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Remarks/
H A DYAMLRemarkParser.h68 Expected<std::unique_ptr<Remark>> next() override;
83 Expected<std::unique_ptr<Remark>> parseRemark(yaml::Document &Remark);
85 Expected<Type> parseType(yaml::MappingNode &Node);
87 Expected<StringRef> parseKey(yaml::KeyValueNode &Node);
89 virtual Expected<StringRef> parseStr(yaml::KeyValueNode &Node);
91 Expected<unsigned> parseUnsigned(yaml::KeyValueNode &Node);
93 Expected<RemarkLocation> parseDebugLoc(yaml::KeyValueNode &Node);
95 Expected<Argument> parseArg(yaml::Node &Node);
109 Expected<StringRef> parseStr(yaml::KeyValueNode &Node) override;
112 Expected<st
[all...]
H A DRemarkLinker.cpp23 static Expected<StringRef>
32 Expected<Optional<StringRef>>
34 Expected<StringRef> SectionName = getRemarksSectionName(Obj);
39 Expected<StringRef> MaybeName = Section.getName();
45 if (Expected<StringRef> Contents = Section.getContents())
68 Expected<Format> ParserFormat = magicToFormat(Buffer);
74 Expected<std::unique_ptr<RemarkParser>> MaybeParser =
85 Expected<std::unique_ptr<Remark>> Next = Parser.next();
104 Expected<Optional<StringRef>> SectionOrErr = getRemarksSectionContents(Obj);
114 Expected<st
[all...]
H A DYAMLRemarkParser.cpp26 assert(Ctx && "Expected non-null Ctx in diagnostic handler.");
28 assert(Message.empty() && "Expected an empty string.");
61 static Expected<bool> parseMagic(StringRef &Buf) {
71 static Expected<uint64_t> parseVersion(StringRef &Buf) {
88 static Expected<uint64_t> parseStrTabSize(StringRef &Buf) {
99 static Expected<ParsedStringTable> parseStrTab(StringRef &Buf,
108 return Expected<ParsedStringTable>(std::move(Result));
111 Expected<std::unique_ptr<YAMLRemarkParser>>
116 Expected<bool> isMeta = parseMagic(Buf);
122 Expected<uint64_
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Object/
H A DIRObjectFile.cpp73 Expected<MemoryBufferRef>
77 Expected<StringRef> Contents = Sec.getContents();
89 Expected<MemoryBufferRef>
98 Expected<std::unique_ptr<ObjectFile>> ObjFile =
109 Expected<std::unique_ptr<IRObjectFile>>
111 Expected<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object);
115 Expected<std::vector<BitcodeModule>> BMsOrErr =
122 Expected<std::unique_ptr<Module>> MOrErr =
135 Expected<IRSymtabFile> object::readIRSymtab(MemoryBufferRef MBRef) {
137 Expected<MemoryBufferRe
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DPDBFile.h70 Expected<ArrayRef<uint8_t>> getBlockData(uint32_t BlockIndex,
89 Expected<std::unique_ptr<msf::MappedBlockStream>>
91 Expected<std::unique_ptr<msf::MappedBlockStream>>
100 Expected<InfoStream &> getPDBInfoStream();
101 Expected<DbiStream &> getPDBDbiStream();
102 Expected<GlobalsStream &> getPDBGlobalsStream();
103 Expected<TpiStream &> getPDBTpiStream();
104 Expected<TpiStream &> getPDBIpiStream();
105 Expected<PublicsStream &> getPDBPublicsStream();
106 Expected<SymbolStrea
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Extract/
H A DExtract.h27 static Expected<ExtractFunction> initiate(RefactoringRuleContext &Context,
38 Expected<AtomicChanges>
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitstream/Reader/
H A DBitstreamReader.cpp36 Expected<uint32_t> MaybeVBR = ReadVBR(bitc::CodeLenWidth);
48 Expected<word_t> MaybeNum = Read(bitc::BlockSizeWidth);
67 static Expected<uint64_t> readAbbreviatedField(BitstreamCursor &Cursor,
83 if (Expected<unsigned> Res = Cursor.Read(6))
92 Expected<unsigned> BitstreamCursor::skipRecord(unsigned AbbrevID) {
95 Expected<uint32_t> MaybeCode = ReadVBR(6);
99 Expected<uint32_t> MaybeVBR = ReadVBR(6);
104 if (Expected<uint64_t> Res = ReadVBR64(6))
122 Expected<uint64_t> MaybeCode = readAbbreviatedField(*this, CodeOp);
135 if (Expected<uint64_
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/DirectoryWatcher/windows/
H A DDirectoryWatcher-windows.cpp43 llvm::Expected<std::unique_ptr<DirectoryWatcher>>
48 return llvm::Expected<std::unique_ptr<DirectoryWatcher>>(
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/TextAPI/ELF/
H A DTBEHandler.h36 Expected<std::unique_ptr<ELFStub>> readTBEFromBuffer(StringRef Buf);
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRefactoringActionRuleRequirements.h28 /// 'Expected<T> evaluate(RefactoringRuleContext &) const' member function.
32 /// 'Expected<SourceRange> evaluate(RefactoringRuleContext &Context) const'
37 // Expected<T> evaluate(RefactoringRuleContext &Context) const;
48 Expected<SourceRange> evaluate(RefactoringRuleContext &Context) const {
62 Expected<SelectedASTNode> evaluate(RefactoringRuleContext &Context) const;
76 Expected<CodeRangeASTSelection>
105 Expected<typename OptionType::ValueType>
H A DRefactoringActionRules.h56 Expected<AtomicChanges> Changes = createSourceReplacements(Context);
64 virtual Expected<AtomicChanges>
78 Expected<SymbolOccurrences> Occurrences = findSymbolOccurrences(Context);
86 virtual Expected<SymbolOccurrences>
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/LTO/
H A DCaching.h33 Expected<NativeObjectCache> localCache(StringRef CacheDirectoryPath,
/freebsd-11-stable/contrib/llvm-project/clang/lib/DirectoryWatcher/default/
H A DDirectoryWatcher-not-implemented.cpp14 llvm::Expected<std::unique_ptr<DirectoryWatcher>> clang::DirectoryWatcher::create(

Completed in 240 milliseconds

1234567891011>>