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

References

unittests/ADT/StringRefTest.cpp
  604   for (size_t i = 0; i < array_lengthof(Unsigned); ++i) {
  604   for (size_t i = 0; i < array_lengthof(Unsigned); ++i) {
  605     bool U8Success = StringRef(Unsigned[i].Str).getAsInteger(0, U8);
  606     if (static_cast<uint8_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
  606     if (static_cast<uint8_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
  608       EXPECT_EQ(U8, Unsigned[i].Expected);
  612     bool U16Success = StringRef(Unsigned[i].Str).getAsInteger(0, U16);
  613     if (static_cast<uint16_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
  613     if (static_cast<uint16_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
  615       EXPECT_EQ(U16, Unsigned[i].Expected);
  619     bool U32Success = StringRef(Unsigned[i].Str).getAsInteger(0, U32);
  620     if (static_cast<uint32_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
  620     if (static_cast<uint32_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
  622       EXPECT_EQ(U32, Unsigned[i].Expected);
  626     bool U64Success = StringRef(Unsigned[i].Str).getAsInteger(0, U64);
  627     if (static_cast<uint64_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
  627     if (static_cast<uint64_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
  629       EXPECT_EQ(U64, Unsigned[i].Expected);