Home
last modified time | relevance | path

Searched refs:MaybeParser (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/llvm/unittests/Remarks/
DYAMLRemarksParsingTest.cpp17 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser = in parseGood() local
19 EXPECT_FALSE(errorToBool(MaybeParser.takeError())); in parseGood()
20 EXPECT_TRUE(*MaybeParser != nullptr); in parseGood()
22 remarks::RemarkParser &Parser = **MaybeParser; in parseGood()
33 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser = in parseGoodMeta() local
35 EXPECT_FALSE(errorToBool(MaybeParser.takeError())); in parseGoodMeta()
36 EXPECT_TRUE(*MaybeParser != nullptr); in parseGoodMeta()
38 remarks::RemarkParser &Parser = **MaybeParser; in parseGoodMeta()
50 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser = in parseExpectError() local
52 EXPECT_FALSE(errorToBool(MaybeParser.takeError())); in parseExpectError()
[all …]
DBitstreamRemarksParsingTest.cpp28 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser = in parseGood() local
30 EXPECT_FALSE(errorToBool(MaybeParser.takeError())); in parseGood()
31 EXPECT_TRUE(*MaybeParser != nullptr); in parseGood()
34 remarks::RemarkParser &Parser = **MaybeParser; in parseGood()
159 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser = in TEST() local
161 EXPECT_FALSE(errorToBool(MaybeParser.takeError())); in TEST()
162 EXPECT_TRUE(*MaybeParser != nullptr); in TEST()
164 remarks::RemarkParser &Parser = **MaybeParser; in TEST()
/external/llvm-project/llvm/lib/Remarks/
DRemarkLinker.cpp74 Expected<std::unique_ptr<RemarkParser>> MaybeParser = in link() local
79 if (!MaybeParser) in link()
80 return MaybeParser.takeError(); in link()
82 RemarkParser &Parser = **MaybeParser; in link()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Remarks/
DRemarkLinker.cpp74 Expected<std::unique_ptr<RemarkParser>> MaybeParser = in link() local
79 if (!MaybeParser) in link()
80 return MaybeParser.takeError(); in link()
82 RemarkParser &Parser = **MaybeParser; in link()
/external/llvm-project/llvm/tools/llvm-opt-report/
DOptReport.cpp166 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser = in readLocationInfo() local
168 if (!MaybeParser) { in readLocationInfo()
169 handleAllErrors(MaybeParser.takeError(), [&](const ErrorInfoBase &PE) { in readLocationInfo()
175 remarks::RemarkParser &Parser = **MaybeParser; in readLocationInfo()
/external/llvm-project/flang/lib/Parser/
Dbasic-parsers.h518 template <typename PA> class MaybeParser {
523 constexpr MaybeParser(const MaybeParser &) = default;
524 constexpr MaybeParser(PA parser) : parser_{parser} {} in MaybeParser() function
538 return MaybeParser<PA>{parser}; in maybe()