Lines Matching refs:checkStr

136 static inline StringRef checkStr(StringRef Str, unsigned ExpectedLen) {  in checkStr()  function
172 EXPECT_EQ(checkStr(Remark.PassName, 6), "inline"); in TEST()
173 EXPECT_EQ(checkStr(Remark.RemarkName, 12), "NoDefinition"); in TEST()
174 EXPECT_EQ(checkStr(Remark.FunctionName, 3), "foo"); in TEST()
177 EXPECT_EQ(checkStr(RL.SourceFilePath, 6), "file.c"); in TEST()
188 EXPECT_EQ(checkStr(Arg.Key, 6), "Callee"); in TEST()
189 EXPECT_EQ(checkStr(Arg.Val, 3), "bar"); in TEST()
193 EXPECT_EQ(checkStr(Arg.Key, 6), "String"); in TEST()
194 EXPECT_EQ(checkStr(Arg.Val, 26), " will not be inlined into "); in TEST()
198 EXPECT_EQ(checkStr(Arg.Key, 6), "Caller"); in TEST()
199 EXPECT_EQ(checkStr(Arg.Val, 3), "foo"); in TEST()
202 EXPECT_EQ(checkStr(RL.SourceFilePath, 6), "file.c"); in TEST()
208 EXPECT_EQ(checkStr(Arg.Key, 6), "String"); in TEST()
209 EXPECT_EQ(checkStr(Arg.Val, 38), in TEST()
225 static inline StringRef checkStr(LLVMRemarkStringRef Str, in checkStr() function
271 EXPECT_EQ(checkStr(LLVMRemarkEntryGetPassName(Remark), 6), "inline"); in TEST()
272 EXPECT_EQ(checkStr(LLVMRemarkEntryGetRemarkName(Remark), 12), "NoDefinition"); in TEST()
273 EXPECT_EQ(checkStr(LLVMRemarkEntryGetFunctionName(Remark), 3), "foo"); in TEST()
275 EXPECT_EQ(checkStr(LLVMRemarkDebugLocGetSourceFilePath(DL), 6), "file.c"); in TEST()
286 EXPECT_EQ(checkStr(LLVMRemarkArgGetKey(Arg), 6), "Callee"); in TEST()
287 EXPECT_EQ(checkStr(LLVMRemarkArgGetValue(Arg), 3), "bar"); in TEST()
291 EXPECT_EQ(checkStr(LLVMRemarkArgGetKey(Arg), 6), "String"); in TEST()
292 EXPECT_EQ(checkStr(LLVMRemarkArgGetValue(Arg), 26), in TEST()
297 EXPECT_EQ(checkStr(LLVMRemarkArgGetKey(Arg), 6), "Caller"); in TEST()
298 EXPECT_EQ(checkStr(LLVMRemarkArgGetValue(Arg), 3), "foo"); in TEST()
300 EXPECT_EQ(checkStr(LLVMRemarkDebugLocGetSourceFilePath(DL), 6), "file.c"); in TEST()
306 EXPECT_EQ(checkStr(LLVMRemarkArgGetKey(Arg), 6), "String"); in TEST()
307 EXPECT_EQ(checkStr(LLVMRemarkArgGetValue(Arg), 38), in TEST()