Lines Matching refs:checkStr
378 static inline StringRef checkStr(StringRef Str, unsigned ExpectedLen) { in checkStr() function
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()
419 EXPECT_EQ(checkStr(RL.SourceFilePath, 6), "file.c"); in TEST()
430 EXPECT_EQ(checkStr(Arg.Key, 6), "Callee"); in TEST()
431 EXPECT_EQ(checkStr(Arg.Val, 3), "bar"); in TEST()
435 EXPECT_EQ(checkStr(Arg.Key, 6), "String"); in TEST()
436 EXPECT_EQ(checkStr(Arg.Val, 26), " will not be inlined into "); in TEST()
440 EXPECT_EQ(checkStr(Arg.Key, 6), "Caller"); in TEST()
441 EXPECT_EQ(checkStr(Arg.Val, 3), "foo"); in TEST()
444 EXPECT_EQ(checkStr(RL.SourceFilePath, 6), "file.c"); in TEST()
450 EXPECT_EQ(checkStr(Arg.Key, 6), "String"); in TEST()
451 EXPECT_EQ(checkStr(Arg.Val, 38), in TEST()
467 static inline StringRef checkStr(LLVMRemarkStringRef Str, in checkStr() function
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()
499 EXPECT_EQ(checkStr(LLVMRemarkDebugLocGetSourceFilePath(DL), 6), "file.c"); in TEST()
510 EXPECT_EQ(checkStr(LLVMRemarkArgGetKey(Arg), 6), "Callee"); in TEST()
511 EXPECT_EQ(checkStr(LLVMRemarkArgGetValue(Arg), 3), "bar"); in TEST()
515 EXPECT_EQ(checkStr(LLVMRemarkArgGetKey(Arg), 6), "String"); in TEST()
516 EXPECT_EQ(checkStr(LLVMRemarkArgGetValue(Arg), 26), in TEST()
521 EXPECT_EQ(checkStr(LLVMRemarkArgGetKey(Arg), 6), "Caller"); in TEST()
522 EXPECT_EQ(checkStr(LLVMRemarkArgGetValue(Arg), 3), "foo"); in TEST()
524 EXPECT_EQ(checkStr(LLVMRemarkDebugLocGetSourceFilePath(DL), 6), "file.c"); in TEST()
530 EXPECT_EQ(checkStr(LLVMRemarkArgGetKey(Arg), 6), "String"); in TEST()
531 EXPECT_EQ(checkStr(LLVMRemarkArgGetValue(Arg), 38), 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()
591 EXPECT_EQ(checkStr(RL.SourceFilePath, 6), "file.c"); in TEST()
602 EXPECT_EQ(checkStr(Arg.Key, 6), "Callee"); in TEST()
603 EXPECT_EQ(checkStr(Arg.Val, 3), "bar"); in TEST()
607 EXPECT_EQ(checkStr(Arg.Key, 6), "String"); in TEST()
608 EXPECT_EQ(checkStr(Arg.Val, 26), " will not be inlined into "); in TEST()
612 EXPECT_EQ(checkStr(Arg.Key, 6), "Caller"); in TEST()
613 EXPECT_EQ(checkStr(Arg.Val, 3), "foo"); in TEST()
616 EXPECT_EQ(checkStr(RL.SourceFilePath, 6), "file.c"); in TEST()
622 EXPECT_EQ(checkStr(Arg.Key, 6), "String"); in TEST()
623 EXPECT_EQ(checkStr(Arg.Val, 38), in TEST()