Lines Matching full:remark

10 #include "llvm/Remarks/Remark.h"
23 Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next(); in parseGood() local
24 EXPECT_FALSE(errorToBool(Remark.takeError())); // Check for parsing errors. in parseGood()
25 EXPECT_TRUE(*Remark != nullptr); // At least one remark. in parseGood()
26 Remark = Parser.next(); in parseGood()
27 Error E = Remark.takeError(); in parseGood()
39 Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next(); in parseGoodMeta() local
40 EXPECT_FALSE(errorToBool(Remark.takeError())); // Check for parsing errors. in parseGoodMeta()
41 EXPECT_TRUE(*Remark != nullptr); // At least one remark. in parseGoodMeta()
42 Remark = Parser.next(); in parseGoodMeta()
43 Error E = Remark.takeError(); in parseGoodMeta()
56 Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next(); in parseExpectError() local
57 EXPECT_FALSE(Remark); // Check for parsing errors. in parseExpectError()
61 handleAllErrors(Remark.takeError(), in parseExpectError()
157 // Mandatory common part of a remark.
184 "expected a remark tag.")); in TEST()
407 Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next(); in TEST()
410 EXPECT_TRUE(*MaybeRemark != nullptr); // At least one remark. in TEST()
412 const remarks::Remark &Remark = **MaybeRemark; in TEST() local
413 EXPECT_EQ(Remark.RemarkType, remarks::Type::Missed); in TEST()
414 EXPECT_EQ(checkStr(Remark.PassName, 6), "inline"); in TEST()
415 EXPECT_EQ(checkStr(Remark.RemarkName, 12), "NoDefinition"); in TEST()
416 EXPECT_EQ(checkStr(Remark.FunctionName, 3), "foo"); in TEST()
417 EXPECT_TRUE(Remark.Loc); in TEST()
418 const remarks::RemarkLocation &RL = *Remark.Loc; in TEST()
422 EXPECT_TRUE(Remark.Hotness); in TEST()
423 EXPECT_EQ(*Remark.Hotness, 4U); in TEST()
424 EXPECT_EQ(Remark.Args.size(), 4U); in TEST()
427 for (const remarks::Argument &Arg : Remark.Args) { in TEST()
492 LLVMRemarkEntryRef Remark = LLVMRemarkParserGetNext(Parser); in TEST() local
493 EXPECT_FALSE(Remark == nullptr); in TEST()
494 EXPECT_EQ(LLVMRemarkEntryGetType(Remark), LLVMRemarkTypeMissed); in TEST()
495 EXPECT_EQ(checkStr(LLVMRemarkEntryGetPassName(Remark), 6), "inline"); in TEST()
496 EXPECT_EQ(checkStr(LLVMRemarkEntryGetRemarkName(Remark), 12), "NoDefinition"); in TEST()
497 EXPECT_EQ(checkStr(LLVMRemarkEntryGetFunctionName(Remark), 3), "foo"); in TEST()
498 LLVMRemarkDebugLocRef DL = LLVMRemarkEntryGetDebugLoc(Remark); in TEST()
502 EXPECT_EQ(LLVMRemarkEntryGetHotness(Remark), 0U); in TEST()
503 EXPECT_EQ(LLVMRemarkEntryGetNumArgs(Remark), 4U); in TEST()
506 LLVMRemarkArgRef Arg = LLVMRemarkEntryGetFirstArg(Remark); in TEST()
539 } while ((Arg = LLVMRemarkEntryGetNextArg(Arg, Remark))); in TEST()
541 LLVMRemarkEntryDispose(Remark); in TEST()
579 Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next(); in TEST()
582 EXPECT_TRUE(*MaybeRemark != nullptr); // At least one remark. in TEST()
584 const remarks::Remark &Remark = **MaybeRemark; in TEST() local
585 EXPECT_EQ(Remark.RemarkType, remarks::Type::Missed); in TEST()
586 EXPECT_EQ(checkStr(Remark.PassName, 6), "inline"); in TEST()
587 EXPECT_EQ(checkStr(Remark.RemarkName, 12), "NoDefinition"); in TEST()
588 EXPECT_EQ(checkStr(Remark.FunctionName, 3), "foo"); in TEST()
589 EXPECT_TRUE(Remark.Loc); in TEST()
590 const remarks::RemarkLocation &RL = *Remark.Loc; in TEST()
594 EXPECT_TRUE(Remark.Hotness); in TEST()
595 EXPECT_EQ(*Remark.Hotness, 4U); in TEST()
596 EXPECT_EQ(Remark.Args.size(), 4U); in TEST()
599 for (const remarks::Argument &Arg : Remark.Args) { in TEST()
655 Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next(); in TEST()
706 "Mismatching remark version. Got 9, expected 0.", in TEST()