Home | History | Annotate | Download | only in Sema

Lines Matching refs:FS

3332                            const analyze_format_string::FormatSpecifier &FS,
3338 const analyze_format_string::FormatSpecifier &FS,
3380 bool CheckNumArgs(const analyze_format_string::FormatSpecifier &FS,
3420 const analyze_format_string::FormatSpecifier &FS,
3425 const LengthModifier &LM = FS.getLengthModifier();
3429 Optional<LengthModifier> FixedLM = FS.getCorrectedLengthModifier();
3454 const analyze_format_string::FormatSpecifier &FS,
3458 const LengthModifier &LM = FS.getLengthModifier();
3462 Optional<LengthModifier> FixedLM = FS.getCorrectedLengthModifier();
3614 const analyze_format_string::FormatSpecifier &FS,
3619 PartialDiagnostic PDiag = FS.usesPositionalArg()
3715 const analyze_printf::PrintfSpecifier &FS,
3719 bool HandlePrintfSpecifier(const analyze_printf::PrintfSpecifier &FS,
3722 bool checkFormatExpr(const analyze_printf::PrintfSpecifier &FS,
3729 void HandleInvalidAmount(const analyze_printf::PrintfSpecifier &FS,
3733 void HandleFlag(const analyze_printf::PrintfSpecifier &FS,
3736 void HandleIgnoredFlag(const analyze_printf::PrintfSpecifier &FS,
3757 const analyze_printf::PrintfSpecifier &FS,
3761 FS.getConversionSpecifier();
3763 return HandleInvalidConversionSpecifier(FS.getArgIndex(),
3819 const analyze_printf::PrintfSpecifier &FS,
3825 FS.getConversionSpecifier();
3841 void CheckPrintfHandler::HandleFlag(const analyze_printf::PrintfSpecifier &FS,
3847 FS.getConversionSpecifier();
3858 const analyze_printf::PrintfSpecifier &FS,
3982 &FS,
3988 const PrintfConversionSpecifier &CS = FS.getConversionSpecifier();
3990 if (FS.consumesDataArgument()) {
3993 usesPositionalArgs = FS.usesPositionalArg();
3995 else if (usesPositionalArgs != FS.usesPositionalArg()) {
4004 if (!HandleAmount(FS.getFieldWidth(), /* field width */ 0,
4009 if (!HandleAmount(FS.getPrecision(), /* precision */ 1,
4021 unsigned argIndex = FS.getArgIndex();
4033 if (!CheckNumArgs(FS, CS, startSpecifier, specifierLen, argIndex + 1))
4069 return HandleInvalidPrintfConversionSpecifier(FS, startSpecifier,
4074 if (!FS.hasValidFieldWidth()) {
4075 HandleInvalidAmount(FS, FS.getFieldWidth(), /* field width */ 0,
4080 if (!FS.hasValidPrecision()) {
4081 HandleInvalidAmount(FS, FS.getPrecision(), /* precision */ 1,
4086 if (!FS.hasValidThousandsGroupingPrefix())
4087 HandleFlag(FS, FS.hasThousandsGrouping(), startSpecifier, specifierLen);
4088 if (!FS.hasValidLeadingZeros())
4089 HandleFlag(FS, FS.hasLeadingZeros(), startSpecifier, specifierLen);
4090 if (!FS.hasValidPlusPrefix())
4091 HandleFlag(FS, FS.hasPlusPrefix(), startSpecifier, specifierLen);
4092 if (!FS.hasValidSpacePrefix())
4093 HandleFlag(FS, FS.hasSpacePrefix(), startSpecifier, specifierLen);
4094 if (!FS.hasValidAlternativeForm())
4095 HandleFlag(FS, FS.hasAlternativeForm(), startSpecifier, specifierLen);
4096 if (!FS.hasValidLeftJustified())
4097 HandleFlag(FS, FS.isLeftJustified(), startSpecifier, specifierLen);
4100 if (FS.hasSpacePrefix() && FS.hasPlusPrefix()) // ' ' ignored by '+'
4101 HandleIgnoredFlag(FS, FS.hasSpacePrefix(), FS.hasPlusPrefix(),
4103 if (FS.hasLeadingZeros() && FS.isLeftJustified()) // '0' ignored by '-'
4104 HandleIgnoredFlag(FS, FS.hasLeadingZeros(), FS.isLeftJustified(),
4108 if (!FS.hasValidLengthModifier(S.getASTContext().getTargetInfo()))
4109 HandleInvalidLengthModifier(FS, CS, startSpecifier, specifierLen,
4111 else if (!FS.hasStandardLengthModifier())
4112 HandleNonStandardLengthModifier(FS, startSpecifier, specifierLen);
4113 else if (!FS.hasStandardLengthConversionCombination())
4114 HandleInvalidLengthModifier(FS, CS, startSpecifier, specifierLen,
4117 if (!FS.hasStandardConversionSpecifier(S.getLangOpts()))
4124 if (!CheckNumArgs(FS, CS, startSpecifier, specifierLen, argIndex))
4131 return checkFormatExpr(FS, startSpecifier, specifierLen, Arg);
4226 CheckPrintfHandler::checkFormatExpr(const analyze_printf::PrintfSpecifier &FS,
4234 const analyze_printf::ArgType &AT = FS.getArgType(S.Context,
4291 FS.getConversionSpecifier().getKind() == ConversionSpecifier::CArg) {
4330 PrintfSpecifier fixedFS = FS;
4475 assert(FirstDataArg + FS.getArgIndex() < CheckedVarArgs.size() &&
4477 CheckedVarArgs[FirstDataArg + FS.getArgIndex()] = true;
4501 bool HandleScanfSpecifier(const analyze_scanf::ScanfSpecifier &FS,
4506 const analyze_scanf::ScanfSpecifier &FS,
4522 const analyze_scanf::ScanfSpecifier &FS,
4527 FS.getConversionSpecifier();
4529 return HandleInvalidConversionSpecifier(FS.getArgIndex(),
4536 const analyze_scanf::ScanfSpecifier &FS,
4543 const ScanfConversionSpecifier &CS = FS.getConversionSpecifier();
4547 if (FS.consumesDataArgument()) {
4550 usesPositionalArgs = FS.usesPositionalArg();
4552 else if (usesPositionalArgs != FS.usesPositionalArg()) {
4560 const OptionalAmount &Amt = FS.getFieldWidth();
4572 if (!FS.consumesDataArgument()) {
4579 unsigned argIndex = FS.getArgIndex();
4588 if (!FS.hasValidLengthModifier(S.getASTContext().getTargetInfo()))
4589 HandleInvalidLengthModifier(FS, CS, startSpecifier, specifierLen,
4591 else if (!FS.hasStandardLengthModifier())
4592 HandleNonStandardLengthModifier(FS, startSpecifier, specifierLen);
4593 else if (!FS.hasStandardLengthConversionCombination())
4594 HandleInvalidLengthModifier(FS, CS, startSpecifier, specifierLen,
4597 if (!FS
4604 if (!CheckNumArgs(FS, CS, startSpecifier, specifierLen, argIndex))
4612 const analyze_format_string::ArgType &AT = FS.getArgType(S.Context);
4624 ScanfSpecifier fixedFS = FS;
9349 if (const ForStmt *FS = dyn_cast<ForStmt>(S)) {
9350 StmtLoc = FS->getRParenLoc();
9351 Body = FS->getBody();