Home
last modified time | relevance | path

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

/external/clang/lib/Analysis/
DFormatString.cpp24 using clang::analyze_format_string::OptionalAmount;
37 OptionalAmount
54 return OptionalAmount(OptionalAmount::Constant, accumulator, Beg, I - Beg, in ParseAmount()
60 return OptionalAmount(); in ParseAmount()
63 OptionalAmount
69 return OptionalAmount(OptionalAmount::Arg, argIndex++, Beg, 0, false); in ParseNonPositionAmount()
75 OptionalAmount
83 const OptionalAmount &Amt = ParseAmount(I, E); in ParsePositionAmount()
85 if (Amt.getHowSpecified() == OptionalAmount::NotSpecified) { in ParsePositionAmount()
87 return OptionalAmount(false); in ParsePositionAmount()
[all …]
DFormatStringParsing.h28 OptionalAmount ParseAmount(const char *&Beg, const char *E);
29 OptionalAmount ParseNonPositionAmount(const char *&Beg, const char *E,
32 OptionalAmount ParsePositionAmount(FormatStringHandler &H,
DScanfFormatString.cpp22 using clang::analyze_format_string::OptionalAmount;
133 const OptionalAmount &Amt = clang::analyze_format_string::ParseAmount(I, E); in ParseScanfSpecifier()
134 if (Amt.getHowSpecified() != OptionalAmount::NotSpecified) { in ParseScanfSpecifier()
135 assert(Amt.getHowSpecified() == OptionalAmount::Constant); in ParseScanfSpecifier()
439 FieldWidth = OptionalAmount(OptionalAmount::Constant, in fixType()
DPrintfFormatString.cpp22 using clang::analyze_format_string::OptionalAmount;
43 const OptionalAmount Amt = ParsePositionAmount(H, Start, Beg, E, in ParsePrecision()
577 Precision.setHowSpecified(OptionalAmount::NotSpecified); in fixType()
703 Precision.setHowSpecified(OptionalAmount::NotSpecified); in fixType()
900 if (Precision.getHowSpecified() == OptionalAmount::NotSpecified) in hasValidPrecision()
932 if (FieldWidth.getHowSpecified() == OptionalAmount::NotSpecified) in hasValidFieldWidth()
/external/clang/include/clang/Analysis/Analyses/
DFormatString.h273 class OptionalAmount {
277 OptionalAmount(HowSpecified howSpecified, in OptionalAmount() function
285 OptionalAmount(bool valid = true)
344 OptionalAmount FieldWidth;
377 const OptionalAmount &getFieldWidth() const { in getFieldWidth()
381 void setFieldWidth(const OptionalAmount &Amt) { in setFieldWidth()
429 using analyze_format_string::OptionalAmount;
440 OptionalAmount Precision;
483 void setPrecision(const OptionalAmount &Amt) { in setPrecision()
488 const OptionalAmount &getPrecision() const { in getPrecision()
[all …]
/external/clang/lib/Sema/
DSemaChecking.cpp4613 bool HandleAmount(const analyze_format_string::OptionalAmount &Amt, unsigned k,
4616 const analyze_printf::OptionalAmount &Amt,
4656 const analyze_format_string::OptionalAmount &Amt, in HandleAmount()
4705 const analyze_printf::OptionalAmount &Amt, in HandleInvalidAmount()
4713 Amt.getHowSpecified() == analyze_printf::OptionalAmount::Constant in HandleInvalidAmount()
5443 const OptionalAmount &Amt = FS.getFieldWidth(); in HandleScanfSpecifier()
5444 if (Amt.getHowSpecified() == OptionalAmount::Constant) { in HandleScanfSpecifier()