Lines Matching refs:ConversionKind
38 enum class ConversionKind { enum
51 ConversionKind ClassifyConversionFunc(const FunctionDecl *FD) { in ClassifyConversionFunc()
52 return llvm::StringSwitch<ConversionKind>(FD->getName()) in ClassifyConversionFunc()
53 .Cases("atoi", "atol", ConversionKind::ToInt) in ClassifyConversionFunc()
54 .Case("atoll", ConversionKind::ToLongInt) in ClassifyConversionFunc()
55 .Case("atof", ConversionKind::ToDouble) in ClassifyConversionFunc()
56 .Default(ConversionKind::None); in ClassifyConversionFunc()
59 ConversionKind ClassifyFormatString(StringRef Fmt, const LangOptions &LO, in ClassifyFormatString()
66 ConversionKind CK; in ClassifyFormatString()
82 CK = ConversionKind::ToLongInt; in ClassifyFormatString()
85 CK = ConversionKind::ToIntMax; in ClassifyFormatString()
88 CK = ConversionKind::ToInt; in ClassifyFormatString()
94 CK = ConversionKind::ToLongUInt; in ClassifyFormatString()
97 CK = ConversionKind::ToUIntMax; in ClassifyFormatString()
100 CK = ConversionKind::ToUInt; in ClassifyFormatString()
106 CK = ConversionKind::ToLongDouble; in ClassifyFormatString()
109 CK = ConversionKind::ToDouble; in ClassifyFormatString()
112 CK = ConversionKind::ToFloat; in ClassifyFormatString()
118 return CK == ConversionKind::None; in ClassifyFormatString()
122 Handler() : CK(ConversionKind::None) {} in ClassifyFormatString()
124 ConversionKind get() const { return CK; } in ClassifyFormatString()
133 StringRef ClassifyConversionType(ConversionKind K) { in ClassifyConversionType()
135 case ConversionKind::None: in ClassifyConversionType()
137 case ConversionKind::ToInt: in ClassifyConversionType()
138 case ConversionKind::ToLongInt: in ClassifyConversionType()
139 case ConversionKind::ToIntMax: in ClassifyConversionType()
141 case ConversionKind::ToUInt: in ClassifyConversionType()
142 case ConversionKind::ToLongUInt: in ClassifyConversionType()
143 case ConversionKind::ToUIntMax: in ClassifyConversionType()
145 case ConversionKind::ToFloat: in ClassifyConversionType()
146 case ConversionKind::ToDouble: in ClassifyConversionType()
147 case ConversionKind::ToLongDouble: in ClassifyConversionType()
153 StringRef ClassifyReplacement(ConversionKind K) { in ClassifyReplacement()
155 case ConversionKind::None: in ClassifyReplacement()
157 case ConversionKind::ToInt: in ClassifyReplacement()
159 case ConversionKind::ToUInt: in ClassifyReplacement()
161 case ConversionKind::ToIntMax: in ClassifyReplacement()
163 case ConversionKind::ToLongInt: in ClassifyReplacement()
165 case ConversionKind::ToLongUInt: in ClassifyReplacement()
167 case ConversionKind::ToUIntMax: in ClassifyReplacement()
169 case ConversionKind::ToFloat: in ClassifyReplacement()
171 case ConversionKind::ToDouble: in ClassifyReplacement()
173 case ConversionKind::ToLongDouble: in ClassifyReplacement()
183 ConversionKind Conversion; in check()
218 if (Conversion != ConversionKind::None) in check()