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

References

tools/lldb/unittests/Core/MangledTest.cpp
  171   EXPECT_EQ(1, Count("main", eFunctionNameTypeFull));
  172   EXPECT_EQ(1, Count("main", eFunctionNameTypeBase));
  173   EXPECT_EQ(0, Count("main", eFunctionNameTypeMethod));
  176   EXPECT_EQ(1, Count("_Z3foov", eFunctionNameTypeFull));
  177   EXPECT_EQ(1, Count("_Z3foov", eFunctionNameTypeBase));
  178   EXPECT_EQ(1, Count("foo", eFunctionNameTypeBase));
  179   EXPECT_EQ(0, Count("foo", eFunctionNameTypeMethod));
  182   EXPECT_EQ(1, Count("puts@GLIBC_2.5", eFunctionNameTypeFull));
  183   EXPECT_EQ(1, Count("puts@GLIBC_2.6", eFunctionNameTypeFull));
  184   EXPECT_EQ(2, Count("puts", eFunctionNameTypeFull));
  185   EXPECT_EQ(2, Count("puts", eFunctionNameTypeBase));
  186   EXPECT_EQ(0, Count("puts", eFunctionNameTypeMethod));
  189   EXPECT_EQ(1, Count("_Z5annotv@VERSION3", eFunctionNameTypeFull));
  190   EXPECT_EQ(1, Count("_Z5annotv", eFunctionNameTypeFull));
  191   EXPECT_EQ(1, Count("_Z5annotv", eFunctionNameTypeBase));
  192   EXPECT_EQ(0, Count("annot", eFunctionNameTypeBase));
  193   EXPECT_EQ(0, Count("annot", eFunctionNameTypeMethod));
  196   EXPECT_EQ(1, Count("_ZN1AC2Ev", eFunctionNameTypeFull));
  197   EXPECT_EQ(1, Count("_ZN1AC2Ev", eFunctionNameTypeBase));
  198   EXPECT_EQ(1, Count("A", eFunctionNameTypeMethod));
  199   EXPECT_EQ(0, Count("A", eFunctionNameTypeBase));
  202   EXPECT_EQ(1, Count("_ZN1AD2Ev", eFunctionNameTypeFull));
  203   EXPECT_EQ(1, Count("_ZN1AD2Ev", eFunctionNameTypeBase));
  204   EXPECT_EQ(1, Count("~A", eFunctionNameTypeMethod));
  205   EXPECT_EQ(0, Count("~A", eFunctionNameTypeBase));
  208   EXPECT_EQ(1, Count("_ZN1A3barEv", eFunctionNameTypeFull));
  209   EXPECT_EQ(1, Count("_ZN1A3barEv", eFunctionNameTypeBase));
  210   EXPECT_EQ(1, Count("bar", eFunctionNameTypeMethod));
  211   EXPECT_EQ(0, Count("bar", eFunctionNameTypeBase));
  214   EXPECT_EQ(1, Count("_ZGVZN4llvm4dbgsEvE7thestrm", eFunctionNameTypeFull));
  215   EXPECT_EQ(1, Count("_ZGVZN4llvm4dbgsEvE7thestrm", eFunctionNameTypeBase));
  216   EXPECT_EQ(0, Count("dbgs", eFunctionNameTypeMethod));
  217   EXPECT_EQ(0, Count("dbgs", eFunctionNameTypeBase));
  218   EXPECT_EQ(1, Count("_ZZN4llvm4dbgsEvE7thestrm", eFunctionNameTypeFull));
  219   EXPECT_EQ(1, Count("_ZZN4llvm4dbgsEvE7thestrm", eFunctionNameTypeBase));
  220   EXPECT_EQ(0, Count("dbgs", eFunctionNameTypeMethod));
  221   EXPECT_EQ(0, Count("dbgs", eFunctionNameTypeBase));
  222   EXPECT_EQ(1, Count("_ZTVN5clang4DeclE", eFunctionNameTypeFull));
  223   EXPECT_EQ(1, Count("_ZTVN5clang4DeclE", eFunctionNameTypeBase));
  224   EXPECT_EQ(0, Count("Decl", eFunctionNameTypeMethod));
  225   EXPECT_EQ(0, Count("Decl", eFunctionNameTypeBase));
  228   EXPECT_EQ(1, Count("-[ObjCfoo]", eFunctionNameTypeFull));
  229   EXPECT_EQ(1, Count("-[ObjCfoo]", eFunctionNameTypeBase));
  230   EXPECT_EQ(0, Count("ObjCfoo", eFunctionNameTypeMethod));
  233   EXPECT_EQ(1, Count("+[B ObjCbar(WithCategory)]", eFunctionNameTypeFull));
  234   EXPECT_EQ(1, Count("+[B ObjCbar(WithCategory)]", eFunctionNameTypeBase));
  235   EXPECT_EQ(0, Count("ObjCbar", eFunctionNameTypeMethod));
  238   EXPECT_EQ(1, Count("_Z12undemangableEvx42", eFunctionNameTypeFull));
  239   EXPECT_EQ(1, Count("_Z12undemangableEvx42", eFunctionNameTypeBase));
  240   EXPECT_EQ(0, Count("_Z12undemangableEvx42", eFunctionNameTypeMethod));
  241   EXPECT_EQ(0, Count("undemangable", eFunctionNameTypeBase));
  242   EXPECT_EQ(0, Count("undemangable", eFunctionNameTypeMethod));