FormatString.cpp (212904) | FormatString.cpp (213694) |
---|---|
1// FormatString.cpp - Common stuff for handling printf/scanf formats -*- C++ -*- 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 409 unchanged lines hidden (view full) --- 418 switch (CS.getKind()) { 419 case ConversionSpecifier::dArg: 420 case ConversionSpecifier::iArg: 421 case ConversionSpecifier::oArg: 422 case ConversionSpecifier::uArg: 423 case ConversionSpecifier::xArg: 424 case ConversionSpecifier::XArg: 425 case ConversionSpecifier::nArg: | 1// FormatString.cpp - Common stuff for handling printf/scanf formats -*- C++ -*- 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 409 unchanged lines hidden (view full) --- 418 switch (CS.getKind()) { 419 case ConversionSpecifier::dArg: 420 case ConversionSpecifier::iArg: 421 case ConversionSpecifier::oArg: 422 case ConversionSpecifier::uArg: 423 case ConversionSpecifier::xArg: 424 case ConversionSpecifier::XArg: 425 case ConversionSpecifier::nArg: |
426 case ConversionSpecifier::rArg: |
|
426 return true; 427 default: 428 return false; 429 } 430 431 // Handle 'l' flag 432 case LengthModifier::AsLong: 433 switch (CS.getKind()) { --- 9 unchanged lines hidden (view full) --- 443 case ConversionSpecifier::FArg: 444 case ConversionSpecifier::eArg: 445 case ConversionSpecifier::EArg: 446 case ConversionSpecifier::gArg: 447 case ConversionSpecifier::GArg: 448 case ConversionSpecifier::nArg: 449 case ConversionSpecifier::cArg: 450 case ConversionSpecifier::sArg: | 427 return true; 428 default: 429 return false; 430 } 431 432 // Handle 'l' flag 433 case LengthModifier::AsLong: 434 switch (CS.getKind()) { --- 9 unchanged lines hidden (view full) --- 444 case ConversionSpecifier::FArg: 445 case ConversionSpecifier::eArg: 446 case ConversionSpecifier::EArg: 447 case ConversionSpecifier::gArg: 448 case ConversionSpecifier::GArg: 449 case ConversionSpecifier::nArg: 450 case ConversionSpecifier::cArg: 451 case ConversionSpecifier::sArg: |
452 case ConversionSpecifier::rArg: |
|
451 return true; 452 default: 453 return false; 454 } 455 456 case LengthModifier::AsLongDouble: 457 switch (CS.getKind()) { 458 case ConversionSpecifier::aArg: --- 16 unchanged lines hidden --- | 453 return true; 454 default: 455 return false; 456 } 457 458 case LengthModifier::AsLongDouble: 459 switch (CS.getKind()) { 460 case ConversionSpecifier::aArg: --- 16 unchanged lines hidden --- |