Searched refs:MaybeParser (Results 1 – 6 of 6) sorted by relevance
17 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser = in parseGood() local19 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() local35 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() local52 EXPECT_FALSE(errorToBool(MaybeParser.takeError())); in parseExpectError()[all …]
28 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser = in parseGood() local30 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() local161 EXPECT_FALSE(errorToBool(MaybeParser.takeError())); in TEST()162 EXPECT_TRUE(*MaybeParser != nullptr); in TEST()164 remarks::RemarkParser &Parser = **MaybeParser; in TEST()
74 Expected<std::unique_ptr<RemarkParser>> MaybeParser = in link() local79 if (!MaybeParser) in link()80 return MaybeParser.takeError(); in link()82 RemarkParser &Parser = **MaybeParser; in link()
166 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser = in readLocationInfo() local168 if (!MaybeParser) { in readLocationInfo()169 handleAllErrors(MaybeParser.takeError(), [&](const ErrorInfoBase &PE) { in readLocationInfo()175 remarks::RemarkParser &Parser = **MaybeParser; in readLocationInfo()
518 template <typename PA> class MaybeParser {523 constexpr MaybeParser(const MaybeParser &) = default;524 constexpr MaybeParser(PA parser) : parser_{parser} {} in MaybeParser() function538 return MaybeParser<PA>{parser}; in maybe()