Home
last modified time | relevance | path

Searched refs:LengthModifier (Results 1 – 11 of 11) sorted by relevance

/external/llvm-project/clang/lib/AST/
DScanfFormatString.cpp20 using clang::analyze_format_string::LengthModifier;
237 case LengthModifier::None: in getArgType()
239 case LengthModifier::AsChar: in getArgType()
241 case LengthModifier::AsShort: in getArgType()
243 case LengthModifier::AsLong: in getArgType()
245 case LengthModifier::AsLongLong: in getArgType()
246 case LengthModifier::AsQuad: in getArgType()
248 case LengthModifier::AsInt64: in getArgType()
250 case LengthModifier::AsIntMax: in getArgType()
252 case LengthModifier::AsSizeT: in getArgType()
[all …]
DFormatString.cpp22 using clang::analyze_format_string::LengthModifier;
216 LengthModifier::Kind lmKind = LengthModifier::None; in ParseLengthModifier()
225 lmKind = LengthModifier::AsChar; in ParseLengthModifier()
228 lmKind = LengthModifier::AsShortLong; in ParseLengthModifier()
230 lmKind = LengthModifier::AsShort; in ParseLengthModifier()
237 lmKind = LengthModifier::AsLongLong; in ParseLengthModifier()
239 lmKind = LengthModifier::AsLong; in ParseLengthModifier()
242 case 'j': lmKind = LengthModifier::AsIntMax; ++I; break; in ParseLengthModifier()
243 case 'z': lmKind = LengthModifier::AsSizeT; ++I; break; in ParseLengthModifier()
244 case 't': lmKind = LengthModifier::AsPtrDiff; ++I; break; in ParseLengthModifier()
[all …]
DPrintfFormatString.cpp22 using clang::analyze_format_string::LengthModifier;
492 case LengthModifier::None: in getScalarArgType()
494 case LengthModifier::AsLong: in getScalarArgType()
495 case LengthModifier::AsWide: in getScalarArgType()
497 case LengthModifier::AsShort: in getScalarArgType()
507 case LengthModifier::AsLongDouble: in getScalarArgType()
510 case LengthModifier::None: in getScalarArgType()
511 case LengthModifier::AsShortLong: in getScalarArgType()
513 case LengthModifier::AsInt32: in getScalarArgType()
515 case LengthModifier::AsChar: in getScalarArgType()
[all …]
/external/clang/lib/Analysis/
DScanfFormatString.cpp21 using clang::analyze_format_string::LengthModifier;
238 case LengthModifier::None: in getArgType()
240 case LengthModifier::AsChar: in getArgType()
242 case LengthModifier::AsShort: in getArgType()
244 case LengthModifier::AsLong: in getArgType()
246 case LengthModifier::AsLongLong: in getArgType()
247 case LengthModifier::AsQuad: in getArgType()
249 case LengthModifier::AsInt64: in getArgType()
251 case LengthModifier::AsIntMax: in getArgType()
253 case LengthModifier::AsSizeT: in getArgType()
[all …]
DFormatString.cpp23 using clang::analyze_format_string::LengthModifier;
187 LengthModifier::Kind lmKind = LengthModifier::None; in ParseLengthModifier()
196 lmKind = LengthModifier::AsChar; in ParseLengthModifier()
198 lmKind = LengthModifier::AsShort; in ParseLengthModifier()
205 lmKind = LengthModifier::AsLongLong; in ParseLengthModifier()
207 lmKind = LengthModifier::AsLong; in ParseLengthModifier()
210 case 'j': lmKind = LengthModifier::AsIntMax; ++I; break; in ParseLengthModifier()
211 case 'z': lmKind = LengthModifier::AsSizeT; ++I; break; in ParseLengthModifier()
212 case 't': lmKind = LengthModifier::AsPtrDiff; ++I; break; in ParseLengthModifier()
213 case 'L': lmKind = LengthModifier::AsLongDouble; ++I; break; in ParseLengthModifier()
[all …]
DPrintfFormatString.cpp21 using clang::analyze_format_string::LengthModifier;
399 case LengthModifier::None: in getArgType()
401 case LengthModifier::AsLong: in getArgType()
402 case LengthModifier::AsWide: in getArgType()
404 case LengthModifier::AsShort: in getArgType()
413 case LengthModifier::AsLongDouble: in getArgType()
416 case LengthModifier::None: in getArgType()
418 case LengthModifier::AsInt32: in getArgType()
420 case LengthModifier::AsChar: return ArgType::AnyCharTy; in getArgType()
421 case LengthModifier::AsShort: return Ctx.ShortTy; in getArgType()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DStrToNumCheck.cpp81 case analyze_scanf::LengthModifier::AsLongLong: in ClassifyFormatString()
84 case analyze_scanf::LengthModifier::AsIntMax: in ClassifyFormatString()
93 case analyze_scanf::LengthModifier::AsLongLong: in ClassifyFormatString()
96 case analyze_scanf::LengthModifier::AsIntMax: in ClassifyFormatString()
105 case analyze_scanf::LengthModifier::AsLongDouble: in ClassifyFormatString()
108 case analyze_scanf::LengthModifier::AsLong: in ClassifyFormatString()
/external/clang/include/clang/Analysis/Analyses/
DFormatString.h65 class LengthModifier {
87 LengthModifier() in LengthModifier() function
89 LengthModifier(const char *pos, Kind k) in LengthModifier() function
343 LengthModifier LM;
355 void setLengthModifier(LengthModifier lm) { in setLengthModifier()
373 const LengthModifier &getLengthModifier() const { in getLengthModifier()
391 Optional<LengthModifier> getCorrectedLengthModifier() const;
399 static bool namedTypeToLengthModifier(QualType QT, LengthModifier &LM);
428 using analyze_format_string::LengthModifier;
555 using analyze_format_string::LengthModifier;
/external/llvm-project/clang/include/clang/AST/
DFormatString.h64 class LengthModifier {
87 LengthModifier() in LengthModifier() function
89 LengthModifier(const char *pos, Kind k) in LengthModifier() function
399 LengthModifier LM;
414 void setLengthModifier(LengthModifier lm) { in setLengthModifier()
432 const LengthModifier &getLengthModifier() const { in getLengthModifier()
459 Optional<LengthModifier> getCorrectedLengthModifier() const;
467 static bool namedTypeToLengthModifier(QualType QT, LengthModifier &LM);
496 using analyze_format_string::LengthModifier;
642 using analyze_format_string::LengthModifier;
/external/clang/lib/Sema/
DSemaChecking.cpp4262 const LengthModifier &LM = FS.getLengthModifier(); in HandleInvalidLengthModifier()
4266 Optional<LengthModifier> FixedLM = FS.getCorrectedLengthModifier(); in HandleInvalidLengthModifier()
4295 const LengthModifier &LM = FS.getLengthModifier(); in HandleNonStandardLengthModifier()
4299 Optional<LengthModifier> FixedLM = FS.getCorrectedLengthModifier(); in HandleNonStandardLengthModifier()
/external/llvm-project/clang/lib/Sema/
DSemaChecking.cpp7627 const LengthModifier &LM = FS.getLengthModifier(); in HandleInvalidLengthModifier()
7631 Optional<LengthModifier> FixedLM = FS.getCorrectedLengthModifier(); in HandleInvalidLengthModifier()
7660 const LengthModifier &LM = FS.getLengthModifier(); in HandleNonStandardLengthModifier()
7664 Optional<LengthModifier> FixedLM = FS.getCorrectedLengthModifier(); in HandleNonStandardLengthModifier()