class AdLint::Cc1::ScanfFormat::Conversion_percent
Public Class Methods
new(fmt, trailing_args, env, as_char, field_width, len_mod, cs_char, scanset)
click to toggle source
Calls superclass method
AdLint::Cc1::ScanfFormat::ConversionSpecifier::new
# File lib/adlint/cc1/format.rb, line 3009 def initialize(fmt, trailing_args, env, as_char, field_width, len_mod, cs_char, scanset) super(fmt, trailing_args, env, false, as_char, field_width, len_mod, cs_char, scanset) end
suitable_conversion_specifier_character()
click to toggle source
# File lib/adlint/cc1/format.rb, line 3005 def self.suitable_conversion_specifier_character "%" end
Public Instance Methods
valid_assignment_suppressing_character?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 3015 def valid_assignment_suppressing_character? # NOTE: The ISO C99 standard says; # # 7.19.6.2 The fscanf function # # 12 The conversion specifiers and their meanings are: # # % Matches a single % character; no conversion or assignment # occurs. The complete conversion specification shall be # %%. assignment_suppressing_character.empty? end
valid_conversion_specifier_character?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 3032 def valid_conversion_specifier_character? true end
valid_field_width?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 3028 def valid_field_width? field_width.empty? end
valid_scanset?()
click to toggle source
# File lib/adlint/cc1/format.rb, line 3036 def valid_scanset? true end
Private Instance Methods
argument_types()
click to toggle source
# File lib/adlint/cc1/format.rb, line 3041 def argument_types nil end
suitable_length_modifiers()
click to toggle source
# File lib/adlint/cc1/format.rb, line 3045 def suitable_length_modifiers [] end