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

References

unittests/ADT/StringRefTest.cpp
  640   for (size_t i = 0; i < array_lengthof(Signed); ++i) {
  641     bool S8Success = StringRef(Signed[i].Str).getAsInteger(0, S8);
  642     if (static_cast<int8_t>(Signed[i].Expected) == Signed[i].Expected) {
  642     if (static_cast<int8_t>(Signed[i].Expected) == Signed[i].Expected) {
  644       EXPECT_EQ(S8, Signed[i].Expected);
  648     bool S16Success = StringRef(Signed[i].Str).getAsInteger(0, S16);
  649     if (static_cast<int16_t>(Signed[i].Expected) == Signed[i].Expected) {
  649     if (static_cast<int16_t>(Signed[i].Expected) == Signed[i].Expected) {
  651       EXPECT_EQ(S16, Signed[i].Expected);
  655     bool S32Success = StringRef(Signed[i].Str).getAsInteger(0, S32);
  656     if (static_cast<int32_t>(Signed[i].Expected) == Signed[i].Expected) {
  656     if (static_cast<int32_t>(Signed[i].Expected) == Signed[i].Expected) {
  658       EXPECT_EQ(S32, Signed[i].Expected);
  662     bool S64Success = StringRef(Signed[i].Str).getAsInteger(0, S64);
  663     if (static_cast<int64_t>(Signed[i].Expected) == Signed[i].Expected) {
  663     if (static_cast<int64_t>(Signed[i].Expected) == Signed[i].Expected) {
  665       EXPECT_EQ(S64, Signed[i].Expected);