Lines Matching refs:ConversionSpecifier
23 using clang::analyze_format_string::ConversionSpecifier;
229 ConversionSpecifier::Kind k = ConversionSpecifier::InvalidSpecifier; in ParsePrintfSpecifier()
234 case '%': k = ConversionSpecifier::PercentArg; break; in ParsePrintfSpecifier()
235 case 'A': k = ConversionSpecifier::AArg; break; in ParsePrintfSpecifier()
236 case 'E': k = ConversionSpecifier::EArg; break; in ParsePrintfSpecifier()
237 case 'F': k = ConversionSpecifier::FArg; break; in ParsePrintfSpecifier()
238 case 'G': k = ConversionSpecifier::GArg; break; in ParsePrintfSpecifier()
239 case 'X': k = ConversionSpecifier::XArg; break; in ParsePrintfSpecifier()
240 case 'a': k = ConversionSpecifier::aArg; break; in ParsePrintfSpecifier()
241 case 'c': k = ConversionSpecifier::cArg; break; in ParsePrintfSpecifier()
242 case 'd': k = ConversionSpecifier::dArg; break; in ParsePrintfSpecifier()
243 case 'e': k = ConversionSpecifier::eArg; break; in ParsePrintfSpecifier()
244 case 'f': k = ConversionSpecifier::fArg; break; in ParsePrintfSpecifier()
245 case 'g': k = ConversionSpecifier::gArg; break; in ParsePrintfSpecifier()
246 case 'i': k = ConversionSpecifier::iArg; break; in ParsePrintfSpecifier()
247 case 'n': k = ConversionSpecifier::nArg; break; in ParsePrintfSpecifier()
248 case 'o': k = ConversionSpecifier::oArg; break; in ParsePrintfSpecifier()
249 case 'p': k = ConversionSpecifier::pArg; break; in ParsePrintfSpecifier()
250 case 's': k = ConversionSpecifier::sArg; break; in ParsePrintfSpecifier()
251 case 'u': k = ConversionSpecifier::uArg; break; in ParsePrintfSpecifier()
252 case 'x': k = ConversionSpecifier::xArg; break; in ParsePrintfSpecifier()
254 case 'C': k = ConversionSpecifier::CArg; break; in ParsePrintfSpecifier()
255 case 'S': k = ConversionSpecifier::SArg; break; in ParsePrintfSpecifier()
257 case '@': k = ConversionSpecifier::ObjCObjArg; break; in ParsePrintfSpecifier()
259 case 'm': k = ConversionSpecifier::PrintErrno; break; in ParsePrintfSpecifier()
263 k = ConversionSpecifier::FreeBSDbArg; // int followed by char * in ParsePrintfSpecifier()
267 k = ConversionSpecifier::FreeBSDrArg; // int in ParsePrintfSpecifier()
271 k = ConversionSpecifier::FreeBSDyArg; // int in ParsePrintfSpecifier()
276 k = ConversionSpecifier::FreeBSDDArg; // void * followed by char * in ParsePrintfSpecifier()
278 k = ConversionSpecifier::DArg; in ParsePrintfSpecifier()
282 k = ConversionSpecifier::OArg; in ParsePrintfSpecifier()
286 k = ConversionSpecifier::UArg; in ParsePrintfSpecifier()
291 k = ConversionSpecifier::ZArg; in ParsePrintfSpecifier()
296 if (k != ConversionSpecifier::ObjCObjArg && in ParsePrintfSpecifier()
297 k != ConversionSpecifier::InvalidSpecifier && in ParsePrintfSpecifier()
310 if (k == ConversionSpecifier::FreeBSDbArg || in ParsePrintfSpecifier()
311 k == ConversionSpecifier::FreeBSDDArg) in ParsePrintfSpecifier()
314 if (k == ConversionSpecifier::InvalidSpecifier) { in ParsePrintfSpecifier()
380 if (FS.getConversionSpecifier().getKind() == ConversionSpecifier::Kind::sArg) in ParseFormatStringHasSArg()
397 if (CS.getKind() == ConversionSpecifier::cArg) in getArgType()
486 if (CS.getKind() == ConversionSpecifier::nArg) { in getArgType()
518 case ConversionSpecifier::sArg: in getArgType()
528 case ConversionSpecifier::SArg: in getArgType()
536 case ConversionSpecifier::CArg: in getArgType()
543 case ConversionSpecifier::pArg: in getArgType()
545 case ConversionSpecifier::ObjCObjArg: in getArgType()
558 if (CS.getKind() == ConversionSpecifier::nArg) in fixType()
569 CS.setKind(ConversionSpecifier::ObjCObjArg); in fixType()
585 CS.setKind(ConversionSpecifier::sArg); in fixType()
677 case ConversionSpecifier::uArg: in fixType()
678 case ConversionSpecifier::UArg: in fixType()
680 CS.setKind(clang::analyze_format_string::ConversionSpecifier::dArg); in fixType()
682 case ConversionSpecifier::dArg: in fixType()
683 case ConversionSpecifier::DArg: in fixType()
684 case ConversionSpecifier::iArg: in fixType()
686 CS.setKind(clang::analyze_format_string::ConversionSpecifier::uArg); in fixType()
701 CS.setKind(ConversionSpecifier::cArg); in fixType()
710 CS.setKind(ConversionSpecifier::fArg); in fixType()
713 CS.setKind(ConversionSpecifier::dArg); in fixType()
717 CS.setKind(ConversionSpecifier::uArg); in fixType()
760 case ConversionSpecifier::dArg: in hasValidPlusPrefix()
761 case ConversionSpecifier::DArg: in hasValidPlusPrefix()
762 case ConversionSpecifier::iArg: in hasValidPlusPrefix()
763 case ConversionSpecifier::fArg: in hasValidPlusPrefix()
764 case ConversionSpecifier::FArg: in hasValidPlusPrefix()
765 case ConversionSpecifier::eArg: in hasValidPlusPrefix()
766 case ConversionSpecifier::EArg: in hasValidPlusPrefix()
767 case ConversionSpecifier::gArg: in hasValidPlusPrefix()
768 case ConversionSpecifier::GArg: in hasValidPlusPrefix()
769 case ConversionSpecifier::aArg: in hasValidPlusPrefix()
770 case ConversionSpecifier::AArg: in hasValidPlusPrefix()
771 case ConversionSpecifier::FreeBSDrArg: in hasValidPlusPrefix()
772 case ConversionSpecifier::FreeBSDyArg: in hasValidPlusPrefix()
786 case ConversionSpecifier::oArg: in hasValidAlternativeForm()
787 case ConversionSpecifier::OArg: in hasValidAlternativeForm()
788 case ConversionSpecifier::xArg: in hasValidAlternativeForm()
789 case ConversionSpecifier::XArg: in hasValidAlternativeForm()
790 case ConversionSpecifier::aArg: in hasValidAlternativeForm()
791 case ConversionSpecifier::AArg: in hasValidAlternativeForm()
792 case ConversionSpecifier::eArg: in hasValidAlternativeForm()
793 case ConversionSpecifier::EArg: in hasValidAlternativeForm()
794 case ConversionSpecifier::fArg: in hasValidAlternativeForm()
795 case ConversionSpecifier::FArg: in hasValidAlternativeForm()
796 case ConversionSpecifier::gArg: in hasValidAlternativeForm()
797 case ConversionSpecifier::GArg: in hasValidAlternativeForm()
798 case ConversionSpecifier::FreeBSDrArg: in hasValidAlternativeForm()
799 case ConversionSpecifier::FreeBSDyArg: in hasValidAlternativeForm()
813 case ConversionSpecifier::dArg: in hasValidLeadingZeros()
814 case ConversionSpecifier::DArg: in hasValidLeadingZeros()
815 case ConversionSpecifier::iArg: in hasValidLeadingZeros()
816 case ConversionSpecifier::oArg: in hasValidLeadingZeros()
817 case ConversionSpecifier::OArg: in hasValidLeadingZeros()
818 case ConversionSpecifier::uArg: in hasValidLeadingZeros()
819 case ConversionSpecifier::UArg: in hasValidLeadingZeros()
820 case ConversionSpecifier::xArg: in hasValidLeadingZeros()
821 case ConversionSpecifier::XArg: in hasValidLeadingZeros()
822 case ConversionSpecifier::aArg: in hasValidLeadingZeros()
823 case ConversionSpecifier::AArg: in hasValidLeadingZeros()
824 case ConversionSpecifier::eArg: in hasValidLeadingZeros()
825 case ConversionSpecifier::EArg: in hasValidLeadingZeros()
826 case ConversionSpecifier::fArg: in hasValidLeadingZeros()
827 case ConversionSpecifier::FArg: in hasValidLeadingZeros()
828 case ConversionSpecifier::gArg: in hasValidLeadingZeros()
829 case ConversionSpecifier::GArg: in hasValidLeadingZeros()
830 case ConversionSpecifier::FreeBSDrArg: in hasValidLeadingZeros()
831 case ConversionSpecifier::FreeBSDyArg: in hasValidLeadingZeros()
845 case ConversionSpecifier::dArg: in hasValidSpacePrefix()
846 case ConversionSpecifier::DArg: in hasValidSpacePrefix()
847 case ConversionSpecifier::iArg: in hasValidSpacePrefix()
848 case ConversionSpecifier::fArg: in hasValidSpacePrefix()
849 case ConversionSpecifier::FArg: in hasValidSpacePrefix()
850 case ConversionSpecifier::eArg: in hasValidSpacePrefix()
851 case ConversionSpecifier::EArg: in hasValidSpacePrefix()
852 case ConversionSpecifier::gArg: in hasValidSpacePrefix()
853 case ConversionSpecifier::GArg: in hasValidSpacePrefix()
854 case ConversionSpecifier::aArg: in hasValidSpacePrefix()
855 case ConversionSpecifier::AArg: in hasValidSpacePrefix()
856 case ConversionSpecifier::FreeBSDrArg: in hasValidSpacePrefix()
857 case ConversionSpecifier::FreeBSDyArg: in hasValidSpacePrefix()
871 case ConversionSpecifier::nArg: in hasValidLeftJustified()
884 case ConversionSpecifier::dArg: in hasValidThousandsGroupingPrefix()
885 case ConversionSpecifier::DArg: in hasValidThousandsGroupingPrefix()
886 case ConversionSpecifier::iArg: in hasValidThousandsGroupingPrefix()
887 case ConversionSpecifier::uArg: in hasValidThousandsGroupingPrefix()
888 case ConversionSpecifier::UArg: in hasValidThousandsGroupingPrefix()
889 case ConversionSpecifier::fArg: in hasValidThousandsGroupingPrefix()
890 case ConversionSpecifier::FArg: in hasValidThousandsGroupingPrefix()
891 case ConversionSpecifier::gArg: in hasValidThousandsGroupingPrefix()
892 case ConversionSpecifier::GArg: in hasValidThousandsGroupingPrefix()
905 case ConversionSpecifier::dArg: in hasValidPrecision()
906 case ConversionSpecifier::DArg: in hasValidPrecision()
907 case ConversionSpecifier::iArg: in hasValidPrecision()
908 case ConversionSpecifier::oArg: in hasValidPrecision()
909 case ConversionSpecifier::OArg: in hasValidPrecision()
910 case ConversionSpecifier::uArg: in hasValidPrecision()
911 case ConversionSpecifier::UArg: in hasValidPrecision()
912 case ConversionSpecifier::xArg: in hasValidPrecision()
913 case ConversionSpecifier::XArg: in hasValidPrecision()
914 case ConversionSpecifier::aArg: in hasValidPrecision()
915 case ConversionSpecifier::AArg: in hasValidPrecision()
916 case ConversionSpecifier::eArg: in hasValidPrecision()
917 case ConversionSpecifier::EArg: in hasValidPrecision()
918 case ConversionSpecifier::fArg: in hasValidPrecision()
919 case ConversionSpecifier::FArg: in hasValidPrecision()
920 case ConversionSpecifier::gArg: in hasValidPrecision()
921 case ConversionSpecifier::GArg: in hasValidPrecision()
922 case ConversionSpecifier::sArg: in hasValidPrecision()
923 case ConversionSpecifier::FreeBSDrArg: in hasValidPrecision()
924 case ConversionSpecifier::FreeBSDyArg: in hasValidPrecision()
937 case ConversionSpecifier::nArg: in hasValidFieldWidth()