Home
last modified time | relevance | path

Searched refs:OptionalAmount (Results 1 – 13 of 13) 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/llvm-project/clang/lib/AST/
DFormatString.cpp23 using clang::analyze_format_string::OptionalAmount;
36 OptionalAmount
53 return OptionalAmount(OptionalAmount::Constant, accumulator, Beg, I - Beg, in ParseAmount()
59 return OptionalAmount(); in ParseAmount()
62 OptionalAmount
68 return OptionalAmount(OptionalAmount::Arg, argIndex++, Beg, 0, false); in ParseNonPositionAmount()
74 OptionalAmount
82 const OptionalAmount &Amt = ParseAmount(I, E); in ParsePositionAmount()
84 if (Amt.getHowSpecified() == OptionalAmount::NotSpecified) { in ParsePositionAmount()
86 return OptionalAmount(false); in ParsePositionAmount()
[all …]
DOSLog.cpp85 case clang::analyze_format_string::OptionalAmount::NotSpecified: // "%s" in HandlePrintfSpecifier()
87 case clang::analyze_format_string::OptionalAmount::Constant: // "%.16s" in HandlePrintfSpecifier()
90 case clang::analyze_format_string::OptionalAmount::Arg: // "%.*s" in HandlePrintfSpecifier()
93 case clang::analyze_format_string::OptionalAmount::Invalid: in HandlePrintfSpecifier()
101 case clang::analyze_format_string::OptionalAmount::NotSpecified: // "%P" in HandlePrintfSpecifier()
103 case clang::analyze_format_string::OptionalAmount::Constant: // "%.16P" in HandlePrintfSpecifier()
106 case clang::analyze_format_string::OptionalAmount::Arg: // "%.*P" in HandlePrintfSpecifier()
109 case clang::analyze_format_string::OptionalAmount::Invalid: in HandlePrintfSpecifier()
DFormatStringParsing.h40 OptionalAmount ParseAmount(const char *&Beg, const char *E);
41 OptionalAmount ParseNonPositionAmount(const char *&Beg, const char *E,
44 OptionalAmount ParsePositionAmount(FormatStringHandler &H,
DScanfFormatString.cpp21 using clang::analyze_format_string::OptionalAmount;
132 const OptionalAmount &Amt = clang::analyze_format_string::ParseAmount(I, E); in ParseScanfSpecifier()
133 if (Amt.getHowSpecified() != OptionalAmount::NotSpecified) { in ParseScanfSpecifier()
134 assert(Amt.getHowSpecified() == OptionalAmount::Constant); in ParseScanfSpecifier()
448 FieldWidth = OptionalAmount(OptionalAmount::Constant, in fixType()
DPrintfFormatString.cpp23 using clang::analyze_format_string::OptionalAmount;
44 const OptionalAmount Amt = ParsePositionAmount(H, Start, Beg, E, in ParsePrecision()
703 Precision.setHowSpecified(OptionalAmount::NotSpecified); in fixType()
736 VectorNumElts = OptionalAmount(VT->getNumElements()); in fixType()
877 Precision.setHowSpecified(OptionalAmount::NotSpecified); in fixType()
1079 if (Precision.getHowSpecified() == OptionalAmount::NotSpecified) in hasValidPrecision()
1112 if (FieldWidth.getHowSpecified() == OptionalAmount::NotSpecified) in hasValidFieldWidth()
/external/llvm-project/clang/include/clang/AST/
DFormatString.h325 class OptionalAmount {
329 OptionalAmount(HowSpecified howSpecified, in OptionalAmount() function
337 OptionalAmount(bool valid = true)
341 explicit OptionalAmount(unsigned Amount) in OptionalAmount() function
400 OptionalAmount FieldWidth;
402 OptionalAmount VectorNumElts;
436 const OptionalAmount &getFieldWidth() const { in getFieldWidth()
440 void setVectorNumElts(const OptionalAmount &Amt) { in setVectorNumElts()
444 const OptionalAmount &getVectorNumElts() const { in getVectorNumElts()
448 void setFieldWidth(const OptionalAmount &Amt) { in setFieldWidth()
[all …]
/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/llvm-project/clang/lib/Sema/
DSemaChecking.cpp534 const analyze_format_string::OptionalAmount &FW = FS.getFieldWidth(); in computeFieldWidth()
536 if (FW.getHowSpecified() == analyze_format_string::OptionalAmount::Constant) in computeFieldWidth()
542 const analyze_format_string::OptionalAmount &FW = FS.getPrecision(); in computePrecision()
547 case analyze_format_string::OptionalAmount::NotSpecified: in computePrecision()
577 case analyze_format_string::OptionalAmount::Constant: in computePrecision()
7985 bool HandleAmount(const analyze_format_string::OptionalAmount &Amt, unsigned k,
7988 const analyze_printf::OptionalAmount &Amt,
8033 const analyze_format_string::OptionalAmount &Amt, in HandleAmount()
8082 const analyze_printf::OptionalAmount &Amt, in HandleInvalidAmount()
8090 Amt.getHowSpecified() == analyze_printf::OptionalAmount::Constant in HandleInvalidAmount()
[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()