Home
last modified time | relevance | path

Searched refs:ConversionSpecifier (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DPrintfFormatString.cpp24 using clang::analyze_format_string::ConversionSpecifier;
301 ConversionSpecifier::Kind k = ConversionSpecifier::InvalidSpecifier; in ParsePrintfSpecifier()
306 case '%': k = ConversionSpecifier::PercentArg; break; in ParsePrintfSpecifier()
307 case 'A': k = ConversionSpecifier::AArg; break; in ParsePrintfSpecifier()
308 case 'E': k = ConversionSpecifier::EArg; break; in ParsePrintfSpecifier()
309 case 'F': k = ConversionSpecifier::FArg; break; in ParsePrintfSpecifier()
310 case 'G': k = ConversionSpecifier::GArg; break; in ParsePrintfSpecifier()
311 case 'X': k = ConversionSpecifier::XArg; break; in ParsePrintfSpecifier()
312 case 'a': k = ConversionSpecifier::aArg; break; in ParsePrintfSpecifier()
313 case 'c': k = ConversionSpecifier::cArg; break; in ParsePrintfSpecifier()
[all …]
H A DFormatString.cpp25 using clang::analyze_format_string::ConversionSpecifier;
728 const char *ConversionSpecifier::toString() const { in toString()
791 std::optional<ConversionSpecifier>
792 ConversionSpecifier::getStandardSpecifier() const { in getStandardSpecifier()
793 ConversionSpecifier::Kind NewKind; in getStandardSpecifier()
809 ConversionSpecifier FixedCS(*this); in getStandardSpecifier()
856 case ConversionSpecifier::cArg: in hasValidLengthModifier()
857 case ConversionSpecifier::CArg: in hasValidLengthModifier()
858 case ConversionSpecifier::sArg: in hasValidLengthModifier()
859 case ConversionSpecifier::SArg: in hasValidLengthModifier()
[all …]
H A DScanfFormatString.cpp22 using clang::analyze_format_string::ConversionSpecifier;
163 case '%': k = ConversionSpecifier::PercentArg; break; in ParseScanfSpecifier()
164 case 'b': k = ConversionSpecifier::bArg; break; in ParseScanfSpecifier()
165 case 'A': k = ConversionSpecifier::AArg; break; in ParseScanfSpecifier()
166 case 'E': k = ConversionSpecifier::EArg; break; in ParseScanfSpecifier()
167 case 'F': k = ConversionSpecifier::FArg; break; in ParseScanfSpecifier()
168 case 'G': k = ConversionSpecifier::GArg; break; in ParseScanfSpecifier()
169 case 'X': k = ConversionSpecifier::XArg; break; in ParseScanfSpecifier()
170 case 'a': k = ConversionSpecifier::aArg; break; in ParseScanfSpecifier()
171 case 'd': k = ConversionSpecifier::dArg; break; in ParseScanfSpecifier()
[all …]
H A DOSLog.cpp36 getKind(analyze_format_string::ConversionSpecifier::Kind K) { in getKind()
38 case clang::analyze_format_string::ConversionSpecifier::sArg: // "%s" in getKind()
40 case clang::analyze_format_string::ConversionSpecifier::SArg: // "%S" in getKind()
42 case clang::analyze_format_string::ConversionSpecifier::PArg: { // "%P" in getKind()
44 case clang::analyze_format_string::ConversionSpecifier::ObjCObjArg: // "%@" in getKind()
46 case clang::analyze_format_string::ConversionSpecifier::PrintErrno: // "%m" in getKind()
64 clang::analyze_format_string::ConversionSpecifier::PrintErrno) in HandlePrintfSpecifier()
82 case clang::analyze_format_string::ConversionSpecifier::sArg: // "%s" in HandlePrintfSpecifier()
83 case clang::analyze_format_string::ConversionSpecifier::SArg: { // "%S" in HandlePrintfSpecifier()
99 case clang::analyze_format_string::ConversionSpecifier::PArg: { // "%P" in HandlePrintfSpecifier()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DFormatString.h122 class ConversionSpecifier {
205 ConversionSpecifier(bool isPrintf = true)
209 ConversionSpecifier(bool isPrintf, const char *pos, Kind k) in ConversionSpecifier() function
256 std::optional<ConversionSpecifier> getStandardSpecifier() const;
425 ConversionSpecifier CS;
502 public analyze_format_string::ConversionSpecifier {
505 : ConversionSpecifier(true, nullptr, InvalidSpecifier) {} in PrintfConversionSpecifier()
508 : ConversionSpecifier(true, pos, k) {} in PrintfConversionSpecifier()
514 static bool classof(const analyze_format_string::ConversionSpecifier *CS) { in classof()
652 public analyze_format_string::ConversionSpecifier {
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp887 case analyze_format_string::ConversionSpecifier::sArg: in HandleScanfSpecifier()
888 case analyze_format_string::ConversionSpecifier::ScanListArg: in HandleScanfSpecifier()
891 case analyze_format_string::ConversionSpecifier::cArg: in HandleScanfSpecifier()
938 case analyze_format_string::ConversionSpecifier::cArg: in HandlePrintfSpecifier()
939 case analyze_format_string::ConversionSpecifier::CArg: in HandlePrintfSpecifier()
943 case analyze_format_string::ConversionSpecifier::dArg: in HandlePrintfSpecifier()
944 case analyze_format_string::ConversionSpecifier::DArg: in HandlePrintfSpecifier()
945 case analyze_format_string::ConversionSpecifier::iArg: in HandlePrintfSpecifier()
946 case analyze_format_string::ConversionSpecifier::oArg: in HandlePrintfSpecifier()
947 case analyze_format_string::ConversionSpecifier::OArg: in HandlePrintfSpecifier()
[all …]