adlint 2.6.0 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +122 -0
- data/MANIFEST +1 -0
- data/NEWS +23 -4
- data/README +1 -1
- data/Rakefile +1 -1
- data/etc/mesg.d/c_builtin/en_US/messages.yml +8 -8
- data/etc/mesg.d/c_builtin/ja_JP/messages.yml +8 -8
- data/etc/mesg.d/core/en_US/messages.yml +1 -1
- data/etc/mesg.d/core/ja_JP/messages.yml +1 -1
- data/features/code_check/W0599.feature +71 -0
- data/lib/adlint/c/builtin.rb +1 -1
- data/lib/adlint/c/const.rb +60 -60
- data/lib/adlint/c/conv.rb +3 -3
- data/lib/adlint/c/ctrlexpr.rb +278 -357
- data/lib/adlint/c/expr.rb +1232 -1637
- data/lib/adlint/c/format.rb +26 -26
- data/lib/adlint/c/interp.rb +339 -391
- data/lib/adlint/c/mediator.rb +1 -2
- data/lib/adlint/c/object.rb +8 -9
- data/lib/adlint/c/seqp.rb +1 -1
- data/lib/adlint/c/syntax.rb +6 -6
- data/lib/adlint/c/type.rb +8 -8
- data/lib/adlint/cpp/eval.rb +1 -1
- data/lib/adlint/cpp/macro.rb +4 -4
- data/lib/adlint/cpp/util.rb +1 -1
- data/lib/adlint/exam/c_builtin/c_check.rb +93 -95
- data/lib/adlint/exam/c_builtin/ld_check.rb +4 -4
- data/lib/adlint/traits.rb +7 -16
- data/lib/adlint/util.rb +12 -0
- data/lib/adlint/version.rb +2 -2
- data/share/doc/developers_guide_ja.html +3 -3
- data/share/doc/developers_guide_ja.texi +1 -1
- data/share/doc/users_guide_en.html +32 -32
- data/share/doc/users_guide_en.texi +30 -30
- data/share/doc/users_guide_ja.html +32 -32
- data/share/doc/users_guide_ja.texi +30 -30
- metadata +4 -3
data/lib/adlint/c/format.rb
CHANGED
@@ -233,7 +233,7 @@ module C #:nodoc:
|
|
233
233
|
|
234
234
|
class Ordinary < Directive
|
235
235
|
def self.scan(format_str)
|
236
|
-
# NOTE: The ISO C99 standard
|
236
|
+
# NOTE: The ISO C99 standard says;
|
237
237
|
#
|
238
238
|
# 7.19.6.1 The fprintf function
|
239
239
|
#
|
@@ -338,7 +338,7 @@ module C #:nodoc:
|
|
338
338
|
include MemoryPoolMediator
|
339
339
|
|
340
340
|
def self.scan(format_str)
|
341
|
-
# NOTE: The ISO C99 standard
|
341
|
+
# NOTE: The ISO C99 standard says;
|
342
342
|
#
|
343
343
|
# 7.19.6.1 The fprintf function
|
344
344
|
#
|
@@ -466,7 +466,7 @@ module C #:nodoc:
|
|
466
466
|
end
|
467
467
|
|
468
468
|
def precision_value
|
469
|
-
# NOTE: The ISO C99 standard
|
469
|
+
# NOTE: The ISO C99 standard says;
|
470
470
|
#
|
471
471
|
# 7.19.6.1 The fprintf function
|
472
472
|
#
|
@@ -498,7 +498,7 @@ module C #:nodoc:
|
|
498
498
|
end
|
499
499
|
|
500
500
|
def self.flags_re
|
501
|
-
# NOTE: The ISO C99 standard
|
501
|
+
# NOTE: The ISO C99 standard says;
|
502
502
|
#
|
503
503
|
# 7.19.6.1 The fprintf function
|
504
504
|
#
|
@@ -549,7 +549,7 @@ module C #:nodoc:
|
|
549
549
|
private_class_method :precision_re
|
550
550
|
|
551
551
|
def self.length_modifier_re
|
552
|
-
# NOTE: The ISO C99 standard
|
552
|
+
# NOTE: The ISO C99 standard says;
|
553
553
|
#
|
554
554
|
# 7.19.6.1 The fprintf function
|
555
555
|
#
|
@@ -601,7 +601,7 @@ module C #:nodoc:
|
|
601
601
|
private_class_method :length_modifier_re
|
602
602
|
|
603
603
|
def self.cs_char_re
|
604
|
-
# NOTE: The ISO C99 standard
|
604
|
+
# NOTE: The ISO C99 standard says;
|
605
605
|
#
|
606
606
|
# 7.19.6.1 The fprintf function
|
607
607
|
#
|
@@ -878,7 +878,7 @@ module C #:nodoc:
|
|
878
878
|
|
879
879
|
private
|
880
880
|
def default_precision_value
|
881
|
-
# NOTE: The ISO C99 standard
|
881
|
+
# NOTE: The ISO C99 standard says;
|
882
882
|
#
|
883
883
|
# 7.19.6.1 The fprintf function
|
884
884
|
#
|
@@ -904,7 +904,7 @@ module C #:nodoc:
|
|
904
904
|
end
|
905
905
|
|
906
906
|
def argument_types
|
907
|
-
# NOTE: The ISO C99 standard
|
907
|
+
# NOTE: The ISO C99 standard says;
|
908
908
|
#
|
909
909
|
# 7.19.6.1 The fprintf function
|
910
910
|
#
|
@@ -1073,7 +1073,7 @@ module C #:nodoc:
|
|
1073
1073
|
|
1074
1074
|
private
|
1075
1075
|
def default_precision_value
|
1076
|
-
# NOTE: The ISO C99 standard
|
1076
|
+
# NOTE: The ISO C99 standard says;
|
1077
1077
|
#
|
1078
1078
|
# 7.19.6.1 The fprintf function
|
1079
1079
|
#
|
@@ -1130,7 +1130,7 @@ module C #:nodoc:
|
|
1130
1130
|
end
|
1131
1131
|
|
1132
1132
|
def argument_types
|
1133
|
-
# NOTE: The ISO C99 standard
|
1133
|
+
# NOTE: The ISO C99 standard says;
|
1134
1134
|
#
|
1135
1135
|
# 7.19.6.1 The fprintf function
|
1136
1136
|
#
|
@@ -1205,7 +1205,7 @@ module C #:nodoc:
|
|
1205
1205
|
|
1206
1206
|
private
|
1207
1207
|
def default_precision_value
|
1208
|
-
# NOTE: The ISO C99 standard
|
1208
|
+
# NOTE: The ISO C99 standard says;
|
1209
1209
|
#
|
1210
1210
|
# 7.19.6.1 The fprintf function
|
1211
1211
|
#
|
@@ -1280,7 +1280,7 @@ module C #:nodoc:
|
|
1280
1280
|
end
|
1281
1281
|
|
1282
1282
|
def argument_types
|
1283
|
-
# NOTE: The ISO C99 standard
|
1283
|
+
# NOTE: The ISO C99 standard says;
|
1284
1284
|
#
|
1285
1285
|
# 7.19.6.1 The fprintf function
|
1286
1286
|
#
|
@@ -1355,7 +1355,7 @@ module C #:nodoc:
|
|
1355
1355
|
end
|
1356
1356
|
|
1357
1357
|
def argument_types
|
1358
|
-
# NOTE: The ISO C99 standard
|
1358
|
+
# NOTE: The ISO C99 standard says;
|
1359
1359
|
#
|
1360
1360
|
# 7.19.6.1 The fprintf function
|
1361
1361
|
#
|
@@ -1456,7 +1456,7 @@ module C #:nodoc:
|
|
1456
1456
|
end
|
1457
1457
|
|
1458
1458
|
def argument_types
|
1459
|
-
# NOTE: The ISO C99 standard
|
1459
|
+
# NOTE: The ISO C99 standard says;
|
1460
1460
|
#
|
1461
1461
|
# 7.19.6.1 The fprintf function
|
1462
1462
|
#
|
@@ -1917,7 +1917,7 @@ module C #:nodoc:
|
|
1917
1917
|
|
1918
1918
|
class Whitespace < Directive
|
1919
1919
|
def self.scan(format_str)
|
1920
|
-
# NOTE: The ISO C99 standard
|
1920
|
+
# NOTE: The ISO C99 standard says;
|
1921
1921
|
#
|
1922
1922
|
# 7.19.6.2 The fscanf function
|
1923
1923
|
#
|
@@ -2026,7 +2026,7 @@ module C #:nodoc:
|
|
2026
2026
|
|
2027
2027
|
class Ordinary < Directive
|
2028
2028
|
def self.scan(format_str)
|
2029
|
-
# NOTE: The ISO C99 standard
|
2029
|
+
# NOTE: The ISO C99 standard says;
|
2030
2030
|
#
|
2031
2031
|
# 7.19.6.2 The fscanf function
|
2032
2032
|
#
|
@@ -2137,7 +2137,7 @@ module C #:nodoc:
|
|
2137
2137
|
include TypeTableMediator
|
2138
2138
|
|
2139
2139
|
def self.scan(format_str)
|
2140
|
-
# NOTE: The ISO C99 standard
|
2140
|
+
# NOTE: The ISO C99 standard says;
|
2141
2141
|
#
|
2142
2142
|
# 7.19.6.2 The fscanf function
|
2143
2143
|
#
|
@@ -2269,7 +2269,7 @@ module C #:nodoc:
|
|
2269
2269
|
private_class_method :field_width_re
|
2270
2270
|
|
2271
2271
|
def self.length_modifier_re
|
2272
|
-
# NOTE: The ISO C99 standard
|
2272
|
+
# NOTE: The ISO C99 standard says;
|
2273
2273
|
#
|
2274
2274
|
# 7.19.6.2 The fscanf function
|
2275
2275
|
#
|
@@ -2307,7 +2307,7 @@ module C #:nodoc:
|
|
2307
2307
|
private_class_method :length_modifier_re
|
2308
2308
|
|
2309
2309
|
def self.cs_char_re
|
2310
|
-
# NOTE: The ISO C99 standard
|
2310
|
+
# NOTE: The ISO C99 standard says;
|
2311
2311
|
#
|
2312
2312
|
# 7.19.6.2 The fscanf function
|
2313
2313
|
#
|
@@ -2442,7 +2442,7 @@ module C #:nodoc:
|
|
2442
2442
|
private_class_method :cs_char_re
|
2443
2443
|
|
2444
2444
|
def self.scanset_re
|
2445
|
-
# NOTE: The ISO C99 standard
|
2445
|
+
# NOTE: The ISO C99 standard says;
|
2446
2446
|
#
|
2447
2447
|
# 7.19.6.2 The fscanf function
|
2448
2448
|
#
|
@@ -2582,7 +2582,7 @@ module C #:nodoc:
|
|
2582
2582
|
|
2583
2583
|
private
|
2584
2584
|
def argument_types
|
2585
|
-
# NOTE: The ISO C99 standard
|
2585
|
+
# NOTE: The ISO C99 standard says;
|
2586
2586
|
#
|
2587
2587
|
# 7.19.6.2 The fscanf function
|
2588
2588
|
#
|
@@ -2718,7 +2718,7 @@ module C #:nodoc:
|
|
2718
2718
|
|
2719
2719
|
private
|
2720
2720
|
def argument_types
|
2721
|
-
# NOTE: The ISO C99 standard
|
2721
|
+
# NOTE: The ISO C99 standard says;
|
2722
2722
|
#
|
2723
2723
|
# 7.19.6.2 The fscanf function
|
2724
2724
|
#
|
@@ -2829,7 +2829,7 @@ module C #:nodoc:
|
|
2829
2829
|
|
2830
2830
|
private
|
2831
2831
|
def argument_types
|
2832
|
-
# NOTE: The ISO C99 standard
|
2832
|
+
# NOTE: The ISO C99 standard says;
|
2833
2833
|
#
|
2834
2834
|
# 7.19.6.2 The fscanf function
|
2835
2835
|
#
|
@@ -2936,7 +2936,7 @@ module C #:nodoc:
|
|
2936
2936
|
end
|
2937
2937
|
|
2938
2938
|
def valid_assignment_suppressing_character?
|
2939
|
-
# NOTE: The ISO C99 standard
|
2939
|
+
# NOTE: The ISO C99 standard says;
|
2940
2940
|
#
|
2941
2941
|
# 7.19.6.2 The fscanf function
|
2942
2942
|
#
|
@@ -2969,7 +2969,7 @@ module C #:nodoc:
|
|
2969
2969
|
|
2970
2970
|
private
|
2971
2971
|
def argument_types
|
2972
|
-
# NOTE: The ISO C99 standard
|
2972
|
+
# NOTE: The ISO C99 standard says;
|
2973
2973
|
#
|
2974
2974
|
# 7.19.6.2 The fscanf function
|
2975
2975
|
#
|
@@ -3044,7 +3044,7 @@ module C #:nodoc:
|
|
3044
3044
|
end
|
3045
3045
|
|
3046
3046
|
def valid_assignment_suppressing_character?
|
3047
|
-
# NOTE: The ISO C99 standard
|
3047
|
+
# NOTE: The ISO C99 standard says;
|
3048
3048
|
#
|
3049
3049
|
# 7.19.6.2 The fscanf function
|
3050
3050
|
#
|