reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/Remarks/RemarksAPITest.cpp
   87   R.RemarkType = remarks::Type::Missed;
   88   R.PassName = "pass";
   89   R.RemarkName = "name";
   90   R.FunctionName = "func";
   91   R.Loc = remarks::RemarkLocation{"path", 3, 4};
   92   R.Args.emplace_back();
   93   R.Args.back().Key = "keydebug";
   94   R.Args.back().Val = "valuedebug";
   95   R.Args.back().Loc = remarks::RemarkLocation{"argpath", 6, 7};
   98   remarks::Remark R2 = R.clone();
  102   EXPECT_NE(R.PassName.data(), R2.PassName.data());
  103   EXPECT_NE(R.RemarkName.data(), R2.RemarkName.data());
  104   EXPECT_NE(R.FunctionName.data(), R2.FunctionName.data());
  105   EXPECT_NE(R.Loc->SourceFilePath.data(), R2.Loc->SourceFilePath.data());
  106   EXPECT_NE(R.Args.back().Key.data(), R2.Args.back().Key.data());
  107   EXPECT_NE(R.Args.back().Val.data(), R2.Args.back().Val.data());
  108   EXPECT_NE(R.Args.back().Loc->SourceFilePath.data(),
  112   EXPECT_EQ(StrTab.add(R.PassName).second.data(), R2.PassName.data());
  113   EXPECT_EQ(StrTab.add(R.RemarkName).second.data(), R2.RemarkName.data());
  114   EXPECT_EQ(StrTab.add(R.FunctionName).second.data(), R2.FunctionName.data());
  115   EXPECT_EQ(StrTab.add(R.Loc->SourceFilePath).second.data(),
  117   EXPECT_EQ(StrTab.add(R.Args.back().Key).second.data(),
  119   EXPECT_EQ(StrTab.add(R.Args.back().Val).second.data(),
  121   EXPECT_EQ(StrTab.add(R.Args.back().Loc->SourceFilePath).second.data(),