adlint 3.0.10 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +67 -0
- data/MANIFEST +2 -0
- data/NEWS +10 -3
- data/etc/mesg.d/c_builtin/en_US/messages.yml +29 -1
- data/etc/mesg.d/c_builtin/ja_JP/messages.yml +29 -1
- 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/W0003.feature +5 -0
- data/features/code_check/W0023.feature +32 -0
- data/features/code_check/W0024.feature +22 -0
- data/features/code_check/W0093.feature +71 -0
- data/features/code_check/W0097.feature +4 -0
- data/features/code_check/W0100.feature +10 -0
- data/features/code_check/W0119.feature +8 -0
- data/features/code_check/W0133.feature +8 -0
- data/features/code_check/W0134.feature +8 -0
- data/features/code_check/W0136.feature +8 -0
- data/features/code_check/W0138.feature +8 -0
- data/features/code_check/W0140.feature +8 -0
- data/features/code_check/W0142.feature +8 -0
- data/features/code_check/W0143.feature +8 -0
- data/features/code_check/W0144.feature +8 -0
- data/features/code_check/W0145.feature +8 -0
- data/features/code_check/W0146.feature +8 -0
- data/features/code_check/W0147.feature +8 -0
- data/features/code_check/W0148.feature +8 -0
- data/features/code_check/W0149.feature +8 -0
- data/features/code_check/W0150.feature +8 -0
- data/features/code_check/W0151.feature +8 -0
- data/features/code_check/W0152.feature +8 -0
- data/features/code_check/W0153.feature +8 -0
- data/features/code_check/W0154.feature +8 -0
- data/features/code_check/W0155.feature +8 -0
- data/features/code_check/W0156.feature +8 -0
- data/features/code_check/W0157.feature +8 -0
- data/features/code_check/W0158.feature +8 -0
- data/features/code_check/W0159.feature +8 -0
- data/features/code_check/W0160.feature +8 -0
- data/features/code_check/W0161.feature +8 -0
- data/features/code_check/W0162.feature +8 -0
- data/features/code_check/W0163.feature +8 -0
- data/features/code_check/W0164.feature +8 -0
- data/features/code_check/W0165.feature +8 -0
- data/features/code_check/W0166.feature +8 -0
- data/features/code_check/W0167.feature +8 -0
- data/features/code_check/W0168.feature +8 -0
- data/features/code_check/W0169.feature +8 -0
- data/features/code_check/W0170.feature +8 -0
- data/features/code_check/W0171.feature +8 -0
- data/features/code_check/W0172.feature +8 -0
- data/features/code_check/W0173.feature +8 -0
- data/features/code_check/W0174.feature +8 -0
- data/features/code_check/W0175.feature +8 -0
- data/features/code_check/W0176.feature +8 -0
- data/features/code_check/W0177.feature +8 -0
- data/features/code_check/W0178.feature +8 -0
- data/features/code_check/W0179.feature +8 -0
- data/features/code_check/W0180.feature +8 -0
- data/features/code_check/W0181.feature +8 -0
- data/features/code_check/W0250.feature +8 -0
- data/features/code_check/W0422.feature +194 -0
- data/features/code_check/W0459.feature +16 -0
- data/features/code_check/W0460.feature +342 -0
- data/features/code_check/W0461.feature +5 -0
- data/features/code_check/W0497.feature +12 -0
- data/features/code_check/W0499.feature +6 -0
- data/features/code_check/W0502.feature +6 -0
- data/features/code_check/W0570.feature +47 -0
- data/features/code_check/W0573.feature +8 -0
- data/features/code_check/W0582.feature +4 -0
- data/features/code_check/W0583.feature +4 -0
- data/features/code_check/W0584.feature +10 -0
- data/features/code_check/W0599.feature +10 -0
- data/features/code_check/W0644.feature +2 -0
- data/features/code_check/W0649.feature +14 -0
- data/features/code_check/W0650.feature +12 -0
- data/features/code_check/W0685.feature +10 -0
- data/features/code_check/W0686.feature +8 -0
- data/features/code_check/W0711.feature +2 -0
- data/features/code_check/W0712.feature +2 -0
- data/features/code_check/W0713.feature +2 -0
- data/features/code_check/W0714.feature +2 -0
- data/features/code_check/W0715.feature +2 -0
- data/features/code_check/W0718.feature +2 -0
- data/features/code_check/W0719.feature +8 -0
- data/features/code_check/W0732.feature +18 -0
- data/features/code_check/W0733.feature +18 -0
- data/features/code_check/W0734.feature +24 -0
- data/features/code_check/W0735.feature +24 -0
- data/features/code_check/W0747.feature +8 -0
- data/features/code_check/W0749.feature +8 -0
- data/features/code_check/W0750.feature +8 -0
- data/features/code_check/W0753.feature +8 -0
- data/features/code_check/W0754.feature +8 -0
- data/features/code_check/W0759.feature +8 -0
- data/features/code_check/W0760.feature +8 -0
- data/features/code_check/W0761.feature +8 -0
- data/features/code_check/W0762.feature +8 -0
- data/features/code_check/W0794.feature +6 -0
- data/features/code_check/W1050.feature +8 -0
- data/features/code_check/W1066.feature +8 -0
- data/features/code_check/W1067.feature +8 -0
- data/features/code_check/W1068.feature +8 -0
- data/features/code_check/W1071.feature +4 -0
- data/features/code_check/W9003.feature +2 -0
- data/lib/adlint/cc1.rb +1 -0
- data/lib/adlint/cc1/branch.rb +34 -13
- data/lib/adlint/cc1/conv.rb +3 -3
- data/lib/adlint/cc1/ctrlexpr.rb +12 -7
- data/lib/adlint/cc1/environ.rb +12 -2
- data/lib/adlint/cc1/expr.rb +10 -8
- data/lib/adlint/cc1/interp.rb +56 -49
- data/lib/adlint/cc1/mediator.rb +9 -5
- data/lib/adlint/cc1/object.rb +37 -34
- data/lib/adlint/cc1/trace.rb +287 -0
- data/lib/adlint/cc1/type.rb +15 -15
- data/lib/adlint/cc1/value.rb +823 -427
- data/lib/adlint/cpp/eval.rb +5 -2
- data/lib/adlint/cpp/source.rb +21 -22
- data/lib/adlint/exam/c_builtin/cc1_check.rb +1636 -1067
- data/lib/adlint/exam/c_builtin/cc1_check_shima.rb +28 -22
- data/lib/adlint/exam/c_builtin/cc1_code.rb +4 -4
- data/lib/adlint/exam/c_builtin/cc1_metric.rb +14 -14
- data/lib/adlint/location.rb +5 -7
- data/lib/adlint/metric.rb +2 -2
- data/lib/adlint/prelude.rb +6 -2
- data/lib/adlint/report.rb +2 -2
- data/lib/adlint/version.rb +3 -3
- data/share/doc/developers_guide_ja.html +10 -4
- data/share/doc/developers_guide_ja.texi +8 -2
- data/share/doc/users_guide_en.html +679 -72
- data/share/doc/users_guide_en.texi +557 -12
- data/share/doc/users_guide_ja.html +678 -74
- data/share/doc/users_guide_ja.texi +554 -13
- data/spec/adlint/cc1/ctrlexpr_spec.rb +20 -11
- data/spec/adlint/cc1/domain_spec.rb +9 -0
- metadata +4 -2
|
@@ -240,12 +240,12 @@ module CBuiltin #:nodoc:
|
|
|
240
240
|
@cur_fun = nil
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
def check(
|
|
243
|
+
def check(ret_stmt)
|
|
244
244
|
return unless @cur_fun.explicitly_typed?
|
|
245
245
|
|
|
246
|
-
if
|
|
247
|
-
if !
|
|
248
|
-
W(
|
|
246
|
+
if ret_type = @cur_fun.type.return_type
|
|
247
|
+
if !ret_type.void? && ret_stmt.expression.nil?
|
|
248
|
+
W(ret_stmt.location, @cur_fun.identifier.value)
|
|
249
249
|
end
|
|
250
250
|
end
|
|
251
251
|
end
|
|
@@ -259,11 +259,11 @@ module CBuiltin #:nodoc:
|
|
|
259
259
|
mark_as_unique
|
|
260
260
|
|
|
261
261
|
private
|
|
262
|
-
def check(
|
|
262
|
+
def check(ret_stmt)
|
|
263
263
|
return unless @cur_fun.implicitly_typed?
|
|
264
264
|
|
|
265
|
-
if
|
|
266
|
-
W(
|
|
265
|
+
if ret_stmt.expression.nil?
|
|
266
|
+
W(ret_stmt.location, @cur_fun.identifier.value)
|
|
267
267
|
end
|
|
268
268
|
end
|
|
269
269
|
end
|
|
@@ -294,9 +294,9 @@ module CBuiltin #:nodoc:
|
|
|
294
294
|
@cur_fun = nil
|
|
295
295
|
end
|
|
296
296
|
|
|
297
|
-
def check_explicit_return(
|
|
297
|
+
def check_explicit_return(ret_stmt, *)
|
|
298
298
|
if @cur_fun
|
|
299
|
-
if @cur_fun.implicitly_typed? &&
|
|
299
|
+
if @cur_fun.implicitly_typed? && ret_stmt.expression.nil?
|
|
300
300
|
W(@cur_fun.location, @cur_fun.identifier.value)
|
|
301
301
|
end
|
|
302
302
|
end
|
|
@@ -469,11 +469,11 @@ module CBuiltin #:nodoc:
|
|
|
469
469
|
mark_as_unique
|
|
470
470
|
|
|
471
471
|
private
|
|
472
|
-
def check(
|
|
473
|
-
if
|
|
474
|
-
if
|
|
475
|
-
if
|
|
476
|
-
W(
|
|
472
|
+
def check(ret_stmt)
|
|
473
|
+
if ret_stmt.expression
|
|
474
|
+
if ret_type = @cur_fun.type.return_type
|
|
475
|
+
if ret_type.void? && (ret_type.const? || ret_type.volatile?)
|
|
476
|
+
W(ret_stmt.location, @cur_fun.identifier.value)
|
|
477
477
|
end
|
|
478
478
|
end
|
|
479
479
|
end
|
|
@@ -771,8 +771,8 @@ module CBuiltin #:nodoc:
|
|
|
771
771
|
|
|
772
772
|
private
|
|
773
773
|
def check(dcl_or_def)
|
|
774
|
-
if
|
|
775
|
-
if
|
|
774
|
+
if ret_type = dcl_or_def.type.return_type
|
|
775
|
+
if ret_type.const? || ret_type.volatile?
|
|
776
776
|
W(dcl_or_def.location)
|
|
777
777
|
end
|
|
778
778
|
end
|
|
@@ -782,6 +782,8 @@ module CBuiltin #:nodoc:
|
|
|
782
782
|
class W1066 < PassiveCodeCheck
|
|
783
783
|
def_registrant_phase Cc1::Prepare2Phase
|
|
784
784
|
|
|
785
|
+
include Cc1::InterpreterMediator
|
|
786
|
+
|
|
785
787
|
# NOTE: All messages of cc1-phase code check should be unique till function
|
|
786
788
|
# step-in analysis is supported.
|
|
787
789
|
mark_as_unique
|
|
@@ -827,11 +829,15 @@ module CBuiltin #:nodoc:
|
|
|
827
829
|
end
|
|
828
830
|
|
|
829
831
|
def from_type
|
|
830
|
-
|
|
832
|
+
float_t
|
|
831
833
|
end
|
|
832
834
|
|
|
833
835
|
def to_type
|
|
834
|
-
|
|
836
|
+
double_t
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
def interpreter
|
|
840
|
+
@interp
|
|
835
841
|
end
|
|
836
842
|
end
|
|
837
843
|
|
|
@@ -844,11 +850,11 @@ module CBuiltin #:nodoc:
|
|
|
844
850
|
|
|
845
851
|
private
|
|
846
852
|
def from_type
|
|
847
|
-
|
|
853
|
+
float_t
|
|
848
854
|
end
|
|
849
855
|
|
|
850
856
|
def to_type
|
|
851
|
-
|
|
857
|
+
long_double_t
|
|
852
858
|
end
|
|
853
859
|
end
|
|
854
860
|
|
|
@@ -861,11 +867,11 @@ module CBuiltin #:nodoc:
|
|
|
861
867
|
|
|
862
868
|
private
|
|
863
869
|
def from_type
|
|
864
|
-
|
|
870
|
+
double_t
|
|
865
871
|
end
|
|
866
872
|
|
|
867
873
|
def to_type
|
|
868
|
-
|
|
874
|
+
long_double_t
|
|
869
875
|
end
|
|
870
876
|
end
|
|
871
877
|
|
|
@@ -309,10 +309,10 @@ module CBuiltin #:nodoc:
|
|
|
309
309
|
|
|
310
310
|
def initialize(phase_ctxt)
|
|
311
311
|
super
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
312
|
+
interp = phase_ctxt[:cc1_interpreter]
|
|
313
|
+
interp.on_function_started += T(:update_caller)
|
|
314
|
+
interp.on_function_ended += T(:clear_caller)
|
|
315
|
+
interp.on_function_call_expr_evaled += T(:extract_function_call)
|
|
316
316
|
@caller = nil
|
|
317
317
|
end
|
|
318
318
|
|
|
@@ -473,9 +473,9 @@ module CBuiltin #:nodoc:
|
|
|
473
473
|
traversal.enter_continue_statement += T(:enter_statement)
|
|
474
474
|
traversal.enter_break_statement += T(:enter_statement)
|
|
475
475
|
traversal.enter_return_statement += T(:count_return)
|
|
476
|
-
@cur_fun
|
|
477
|
-
@
|
|
478
|
-
@
|
|
476
|
+
@cur_fun = nil
|
|
477
|
+
@ret_cnt = 0
|
|
478
|
+
@lst_stmt = nil
|
|
479
479
|
end
|
|
480
480
|
|
|
481
481
|
private
|
|
@@ -485,39 +485,39 @@ module CBuiltin #:nodoc:
|
|
|
485
485
|
def enter_function(fun_def)
|
|
486
486
|
if @fpath == fun_def.location.fpath
|
|
487
487
|
@cur_fun = fun_def
|
|
488
|
-
@
|
|
489
|
-
@
|
|
488
|
+
@ret_cnt = 0
|
|
489
|
+
@lst_stmt = nil
|
|
490
490
|
end
|
|
491
491
|
end
|
|
492
492
|
|
|
493
493
|
def leave_function(*)
|
|
494
494
|
if @cur_fun
|
|
495
495
|
if @cur_fun.type.return_type.void? &&
|
|
496
|
-
!(@
|
|
496
|
+
!(@lst_stmt.kind_of?(Cc1::ReturnStatement))
|
|
497
497
|
FN_RETN(FunctionId.new(@cur_fun.identifier.value,
|
|
498
498
|
@cur_fun.signature.to_s),
|
|
499
|
-
@cur_fun.location, @
|
|
499
|
+
@cur_fun.location, @ret_cnt + 1)
|
|
500
500
|
else
|
|
501
501
|
FN_RETN(FunctionId.new(@cur_fun.identifier.value,
|
|
502
502
|
@cur_fun.signature.to_s),
|
|
503
|
-
@cur_fun.location, @
|
|
503
|
+
@cur_fun.location, @ret_cnt)
|
|
504
504
|
end
|
|
505
|
-
@cur_fun
|
|
506
|
-
@
|
|
507
|
-
@
|
|
505
|
+
@cur_fun = nil
|
|
506
|
+
@ret_cnt = 0
|
|
507
|
+
@lst_stmt = nil
|
|
508
508
|
end
|
|
509
509
|
end
|
|
510
510
|
|
|
511
511
|
def enter_statement(node)
|
|
512
512
|
if @cur_fun
|
|
513
|
-
@
|
|
513
|
+
@lst_stmt = node if node.executed?
|
|
514
514
|
end
|
|
515
515
|
end
|
|
516
516
|
|
|
517
517
|
def count_return(node)
|
|
518
518
|
if @cur_fun
|
|
519
|
-
@
|
|
520
|
-
@
|
|
519
|
+
@ret_cnt += 1
|
|
520
|
+
@lst_stmt = node
|
|
521
521
|
end
|
|
522
522
|
end
|
|
523
523
|
end
|
data/lib/adlint/location.rb
CHANGED
|
@@ -34,6 +34,8 @@ module AdLint #:nodoc:
|
|
|
34
34
|
# == DESCRIPTION
|
|
35
35
|
# Location identifier of tokens.
|
|
36
36
|
class Location
|
|
37
|
+
include Comparable
|
|
38
|
+
|
|
37
39
|
# === Constructs a location identifier.
|
|
38
40
|
#
|
|
39
41
|
# Param:: _fpath_ (Pathname) Path name of the file contains the token.
|
|
@@ -76,8 +78,8 @@ module AdLint #:nodoc:
|
|
|
76
78
|
# the performance.
|
|
77
79
|
memoize :in_analysis_target?, force_nullary: true
|
|
78
80
|
|
|
79
|
-
def
|
|
80
|
-
self.to_a
|
|
81
|
+
def <=>(rhs)
|
|
82
|
+
self.to_a <=> rhs.to_a
|
|
81
83
|
end
|
|
82
84
|
|
|
83
85
|
def eql?(rhs)
|
|
@@ -103,11 +105,7 @@ module AdLint #:nodoc:
|
|
|
103
105
|
# === RETURN VALUE
|
|
104
106
|
# String -- String representation of this location identifier.
|
|
105
107
|
def to_s
|
|
106
|
-
|
|
107
|
-
str += "#{@fpath}:" if @fpath
|
|
108
|
-
str += "#{@line_no}:" if @line_no
|
|
109
|
-
str += "#{@column_no}" if @column_no
|
|
110
|
-
str
|
|
108
|
+
"#{@fpath}:#{@line_no}:#{@column_no}"
|
|
111
109
|
end
|
|
112
110
|
|
|
113
111
|
# === DESCRIPTION
|
data/lib/adlint/metric.rb
CHANGED
|
@@ -133,8 +133,8 @@ module AdLint #:nodoc:
|
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
class FN_RETN_Metric < FunctionMetric
|
|
136
|
-
def initialize(fun_id, loc,
|
|
137
|
-
super("FN_RETN", fun_id, loc,
|
|
136
|
+
def initialize(fun_id, loc, ret_cnt)
|
|
137
|
+
super("FN_RETN", fun_id, loc, ret_cnt)
|
|
138
138
|
end
|
|
139
139
|
end
|
|
140
140
|
|
data/lib/adlint/prelude.rb
CHANGED
|
@@ -102,9 +102,13 @@ class Integer
|
|
|
102
102
|
|
|
103
103
|
def logical_right_shift(rhs)
|
|
104
104
|
return self if rhs < 0
|
|
105
|
-
bits = to_s(2)
|
|
105
|
+
bits = to_s(2)
|
|
106
106
|
shift_width = [rhs, SHIFT_MAX_BITS].min
|
|
107
|
-
bits.length < shift_width
|
|
107
|
+
if bits.length < shift_width
|
|
108
|
+
0
|
|
109
|
+
else
|
|
110
|
+
("0" * shift_width + bits[0..-(shift_width + 1)]).to_i(2)
|
|
111
|
+
end
|
|
108
112
|
end
|
|
109
113
|
|
|
110
114
|
def arithmetic_right_shift(rhs)
|
data/lib/adlint/report.rb
CHANGED
|
@@ -502,8 +502,8 @@ module AdLint #:nodoc:
|
|
|
502
502
|
end
|
|
503
503
|
alias :FN_GOTO :write_FN_GOTO
|
|
504
504
|
|
|
505
|
-
def write_FN_RETN(fun_id, loc,
|
|
506
|
-
write_code_metric(FN_RETN_Metric.new(fun_id, loc,
|
|
505
|
+
def write_FN_RETN(fun_id, loc, ret_cnt)
|
|
506
|
+
write_code_metric(FN_RETN_Metric.new(fun_id, loc, ret_cnt))
|
|
507
507
|
end
|
|
508
508
|
alias :FN_RETN :write_FN_RETN
|
|
509
509
|
|
data/lib/adlint/version.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<html lang="ja">
|
|
2
2
|
<head>
|
|
3
|
-
<title>AdLint 3.0
|
|
3
|
+
<title>AdLint 3.2.0 開発者ガイド</title>
|
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
5
|
-
<meta name="description" content="AdLint 3.0
|
|
5
|
+
<meta name="description" content="AdLint 3.2.0 開発者ガイド">
|
|
6
6
|
<meta name="generator" content="makeinfo 4.13">
|
|
7
7
|
<link title="Top" rel="top" href="#Top">
|
|
8
8
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
|
@@ -44,7 +44,7 @@ td { border: 1px solid black; }
|
|
|
44
44
|
--></style>
|
|
45
45
|
</head>
|
|
46
46
|
<body>
|
|
47
|
-
<h1 class="settitle">AdLint 3.0
|
|
47
|
+
<h1 class="settitle">AdLint 3.2.0 開発者ガイド</h1>
|
|
48
48
|
<div class="contents">
|
|
49
49
|
<h2>Table of Contents</h2>
|
|
50
50
|
<ul>
|
|
@@ -223,7 +223,7 @@ context -> ctxt
|
|
|
223
223
|
exception -> ex
|
|
224
224
|
template -> tmpl
|
|
225
225
|
format -> fmt
|
|
226
|
-
return ->
|
|
226
|
+
return -> ret
|
|
227
227
|
current -> cur
|
|
228
228
|
replacement -> repl
|
|
229
229
|
index -> idx
|
|
@@ -285,6 +285,12 @@ temporary -> tmp
|
|
|
285
285
|
referrer-function -> ref_fun
|
|
286
286
|
sample -> smpl
|
|
287
287
|
representative -> repr
|
|
288
|
+
descendant -> desc
|
|
289
|
+
transition -> trans
|
|
290
|
+
contributor -> contrib
|
|
291
|
+
positive -> pos
|
|
292
|
+
negative -> neg
|
|
293
|
+
evidence -> evid
|
|
288
294
|
</pre>
|
|
289
295
|
|
|
290
296
|
<div class="node">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@setfilename developers_guide_ja.info
|
|
3
3
|
@documentlanguage ja
|
|
4
4
|
@documentencoding utf-8
|
|
5
|
-
@settitle AdLint 3.0
|
|
5
|
+
@settitle AdLint 3.2.0 開発者ガイド
|
|
6
6
|
|
|
7
7
|
@copying
|
|
8
8
|
Copyright (C) 2010-2013, OGIS-RI Co.,Ltd.
|
|
@@ -152,7 +152,7 @@ context -> ctxt
|
|
|
152
152
|
exception -> ex
|
|
153
153
|
template -> tmpl
|
|
154
154
|
format -> fmt
|
|
155
|
-
return ->
|
|
155
|
+
return -> ret
|
|
156
156
|
current -> cur
|
|
157
157
|
replacement -> repl
|
|
158
158
|
index -> idx
|
|
@@ -214,6 +214,12 @@ temporary -> tmp
|
|
|
214
214
|
referrer-function -> ref_fun
|
|
215
215
|
sample -> smpl
|
|
216
216
|
representative -> repr
|
|
217
|
+
descendant -> desc
|
|
218
|
+
transition -> trans
|
|
219
|
+
contributor -> contrib
|
|
220
|
+
positive -> pos
|
|
221
|
+
negative -> neg
|
|
222
|
+
evidence -> evid
|
|
217
223
|
@end verbatim
|
|
218
224
|
|
|
219
225
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<html lang="en">
|
|
2
2
|
<head>
|
|
3
|
-
<title>AdLint 3.0
|
|
3
|
+
<title>AdLint 3.2.0 User's Guide</title>
|
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
5
|
-
<meta name="description" content="AdLint 3.0
|
|
5
|
+
<meta name="description" content="AdLint 3.2.0 User's Guide">
|
|
6
6
|
<meta name="generator" content="makeinfo 4.13">
|
|
7
7
|
<link title="Top" rel="top" href="#Top">
|
|
8
8
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
|
@@ -44,7 +44,7 @@ td { border: 1px solid black; }
|
|
|
44
44
|
--></style>
|
|
45
45
|
</head>
|
|
46
46
|
<body>
|
|
47
|
-
<h1 class="settitle">AdLint 3.0
|
|
47
|
+
<h1 class="settitle">AdLint 3.2.0 User's Guide</h1>
|
|
48
48
|
<div class="node">
|
|
49
49
|
<a name="Top"></a>
|
|
50
50
|
<p><hr>
|
|
@@ -3083,6 +3083,13 @@ Up: <a rel="up" accesskey="u" href="#Top">Top</a>
|
|
|
3083
3083
|
<li><a href="#W9002">W9002</a>: There is no line feed character at the end of file.
|
|
3084
3084
|
<li><a href="#W9003">W9003</a>: An object typed `%s' is implicitly converted into an object of type `%s'.
|
|
3085
3085
|
<li><a href="#C0001">C0001</a>: A warning is detected as a pair of this identifier `%s'.
|
|
3086
|
+
<li><a href="#C1000">C1000</a>: Warning above is detected in the following context.
|
|
3087
|
+
<li><a href="#C1001">C1001</a>: This controlling-expression is evaluated to be true.
|
|
3088
|
+
<li><a href="#C1002">C1002</a>: This controlling-expression is evaluated to be false.
|
|
3089
|
+
<li><a href="#C1003">C1003</a>: The problematic variable is defined here without initializer.
|
|
3090
|
+
<li><a href="#C1004">C1004</a>: NULL value is assigned to the the problematic variable.
|
|
3091
|
+
<li><a href="#C1005">C1005</a>: A value possibly be NULL is assigned to the problematic variable.
|
|
3092
|
+
<li><a href="#C1006">C1006</a>: New value is assigned to the problematic variable.
|
|
3086
3093
|
</ul>
|
|
3087
3094
|
|
|
3088
3095
|
<div class="node">
|
|
@@ -6168,7 +6175,12 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
6168
6175
|
|
|
6169
6176
|
<h4 class="subsection">6.80.4 Related message</h4>
|
|
6170
6177
|
|
|
6171
|
-
<
|
|
6178
|
+
<ul>
|
|
6179
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
6180
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
6181
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
6182
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
6183
|
+
</ul>
|
|
6172
6184
|
|
|
6173
6185
|
<h4 class="subsection">6.80.5 Since</h4>
|
|
6174
6186
|
|
|
@@ -6204,7 +6216,12 @@ int b = 10 / A; /* W0096 */
|
|
|
6204
6216
|
|
|
6205
6217
|
<h4 class="subsection">6.81.4 Related message</h4>
|
|
6206
6218
|
|
|
6207
|
-
<
|
|
6219
|
+
<ul>
|
|
6220
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
6221
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
6222
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
6223
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
6224
|
+
</ul>
|
|
6208
6225
|
|
|
6209
6226
|
<h4 class="subsection">6.81.5 Since</h4>
|
|
6210
6227
|
|
|
@@ -6249,7 +6266,12 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
6249
6266
|
|
|
6250
6267
|
<h4 class="subsection">6.82.4 Related message</h4>
|
|
6251
6268
|
|
|
6252
|
-
<
|
|
6269
|
+
<ul>
|
|
6270
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
6271
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
6272
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
6273
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
6274
|
+
</ul>
|
|
6253
6275
|
|
|
6254
6276
|
<h4 class="subsection">6.82.5 Since</h4>
|
|
6255
6277
|
|
|
@@ -6753,6 +6775,10 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
6753
6775
|
|
|
6754
6776
|
<ul>
|
|
6755
6777
|
<li><a href="#W0116">W0116</a> Unsigned left shift operator `<<' can be drop high-order bit.
|
|
6778
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
6779
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
6780
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
6781
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
6756
6782
|
</ul>
|
|
6757
6783
|
|
|
6758
6784
|
<h4 class="subsection">6.95.5 Since</h4>
|
|
@@ -6794,6 +6820,10 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
6794
6820
|
|
|
6795
6821
|
<ul>
|
|
6796
6822
|
<li><a href="#W0115">W0115</a> Unsigned left shift operator `<<' drop the high-order bit.
|
|
6823
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
6824
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
6825
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
6826
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
6797
6827
|
</ul>
|
|
6798
6828
|
|
|
6799
6829
|
<h4 class="subsection">6.96.5 Since</h4>
|
|
@@ -25231,7 +25261,13 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
25231
25261
|
|
|
25232
25262
|
<h4 class="subsection">6.394.4 Related message</h4>
|
|
25233
25263
|
|
|
25234
|
-
<
|
|
25264
|
+
<ul>
|
|
25265
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
25266
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
25267
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
25268
|
+
<li><a href="#C1004">C1004</a> NULL value is assigned to the the problematic variable.
|
|
25269
|
+
<li><a href="#C1005">C1005</a> A value possibly be NULL is assigned to the problematic variable.
|
|
25270
|
+
</ul>
|
|
25235
25271
|
|
|
25236
25272
|
<h4 class="subsection">6.394.5 Since</h4>
|
|
25237
25273
|
|
|
@@ -25274,7 +25310,13 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
25274
25310
|
|
|
25275
25311
|
<h4 class="subsection">6.395.4 Related message</h4>
|
|
25276
25312
|
|
|
25277
|
-
<
|
|
25313
|
+
<ul>
|
|
25314
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
25315
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
25316
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
25317
|
+
<li><a href="#C1004">C1004</a> NULL value is assigned to the the problematic variable.
|
|
25318
|
+
<li><a href="#C1005">C1005</a> A value possibly be NULL is assigned to the problematic variable.
|
|
25319
|
+
</ul>
|
|
25278
25320
|
|
|
25279
25321
|
<h4 class="subsection">6.395.5 Since</h4>
|
|
25280
25322
|
|
|
@@ -25316,7 +25358,13 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
25316
25358
|
|
|
25317
25359
|
<h4 class="subsection">6.396.4 Related message</h4>
|
|
25318
25360
|
|
|
25319
|
-
<
|
|
25361
|
+
<ul>
|
|
25362
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
25363
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
25364
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
25365
|
+
<li><a href="#C1004">C1004</a> NULL value is assigned to the the problematic variable.
|
|
25366
|
+
<li><a href="#C1005">C1005</a> A value possibly be NULL is assigned to the problematic variable.
|
|
25367
|
+
</ul>
|
|
25320
25368
|
|
|
25321
25369
|
<h4 class="subsection">6.396.5 Since</h4>
|
|
25322
25370
|
|
|
@@ -25359,7 +25407,13 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
25359
25407
|
|
|
25360
25408
|
<h4 class="subsection">6.397.4 Related message</h4>
|
|
25361
25409
|
|
|
25362
|
-
<
|
|
25410
|
+
<ul>
|
|
25411
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
25412
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
25413
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
25414
|
+
<li><a href="#C1004">C1004</a> NULL value is assigned to the the problematic variable.
|
|
25415
|
+
<li><a href="#C1005">C1005</a> A value possibly be NULL is assigned to the problematic variable.
|
|
25416
|
+
</ul>
|
|
25363
25417
|
|
|
25364
25418
|
<h4 class="subsection">6.397.5 Since</h4>
|
|
25365
25419
|
|
|
@@ -25942,6 +25996,10 @@ if(a > 0) { /* W0459 */
|
|
|
25942
25996
|
<li><a href="#W0460">W0460</a> A value of variable `%s' wouldn't set when this expression is evaluated.
|
|
25943
25997
|
<li><a href="#W0461">W0461</a> A pointer which points the undetermined variable is used for the actual argument of the function. This program is danger.
|
|
25944
25998
|
<li><a href="#W0462">W0462</a> A pointer which the value will probably not set is used for the actual argument of the function.
|
|
25999
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
26000
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
26001
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
26002
|
+
<li><a href="#C1003">C1003</a> The problematic variable is defined here without initializer.
|
|
25945
26003
|
</ul>
|
|
25946
26004
|
|
|
25947
26005
|
<h4 class="subsection">6.412.5 Since</h4>
|
|
@@ -25990,6 +26048,10 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
25990
26048
|
<li><a href="#W0459">W0459</a> A value of variable `%s' doesn't set when this expression is evaluated. This program is danger.
|
|
25991
26049
|
<li><a href="#W0461">W0461</a> A pointer which points the undetermined variable is used for the actual argument of the function. This program is danger.
|
|
25992
26050
|
<li><a href="#W0462">W0462</a> A pointer which the value will probably not set is used for the actual argument of the function.
|
|
26051
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
26052
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
26053
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
26054
|
+
<li><a href="#C1003">C1003</a> The problematic variable is defined here without initializer.
|
|
25993
26055
|
</ul>
|
|
25994
26056
|
|
|
25995
26057
|
<h4 class="subsection">6.413.5 Since</h4>
|
|
@@ -26034,6 +26096,10 @@ void func2(int a)
|
|
|
26034
26096
|
<li><a href="#W0459">W0459</a> A value of variable `%s' doesn't set when this expression is evaluated. This program is danger.
|
|
26035
26097
|
<li><a href="#W0460">W0460</a> A value of variable `%s' wouldn't set when this expression is evaluated.
|
|
26036
26098
|
<li><a href="#W0462">W0462</a> A pointer which the value will probably not set is used for the actual argument of the function.
|
|
26099
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
26100
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
26101
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
26102
|
+
<li><a href="#C1003">C1003</a> The problematic variable is defined here without initializer.
|
|
26037
26103
|
</ul>
|
|
26038
26104
|
|
|
26039
26105
|
<h4 class="subsection">6.414.5 Since</h4>
|
|
@@ -26083,6 +26149,10 @@ int func2(int a)
|
|
|
26083
26149
|
<li><a href="#W0459">W0459</a> A value of variable `%s' doesn't set when this expression is evaluated. This program is danger.
|
|
26084
26150
|
<li><a href="#W0460">W0460</a> A value of variable `%s' wouldn't set when this expression is evaluated.
|
|
26085
26151
|
<li><a href="#W0461">W0461</a> A pointer which points the undetermined variable is used for the actual argument of the function. This program is danger.
|
|
26152
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
26153
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
26154
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
26155
|
+
<li><a href="#C1003">C1003</a> The problematic variable is defined here without initializer.
|
|
26086
26156
|
</ul>
|
|
26087
26157
|
|
|
26088
26158
|
<h4 class="subsection">6.415.5 Since</h4>
|
|
@@ -28355,6 +28425,10 @@ int b = -5 << 1; /* W0568 */
|
|
|
28355
28425
|
<ul>
|
|
28356
28426
|
<li><a href="#W0569">W0569</a> The result of left shift operation against the signed expression value is undefined.
|
|
28357
28427
|
<li><a href="#W0570">W0570</a> This signed left shift operation may make undefined value.
|
|
28428
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
28429
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
28430
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
28431
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
28358
28432
|
</ul>
|
|
28359
28433
|
|
|
28360
28434
|
<h4 class="subsection">6.470.5 Since</h4>
|
|
@@ -28403,6 +28477,10 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
28403
28477
|
<ul>
|
|
28404
28478
|
<li><a href="#W0568">W0568</a> The result of left shift operation against the signed constant expression value is undefined.
|
|
28405
28479
|
<li><a href="#W0570">W0570</a> This signed left shift operation may make undefined value.
|
|
28480
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
28481
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
28482
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
28483
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
28406
28484
|
</ul>
|
|
28407
28485
|
|
|
28408
28486
|
<h4 class="subsection">6.471.5 Since</h4>
|
|
@@ -28451,6 +28529,10 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
28451
28529
|
<ul>
|
|
28452
28530
|
<li><a href="#W0568">W0568</a> The result of left shift operation against the signed constant expression value is undefined.
|
|
28453
28531
|
<li><a href="#W0569">W0569</a> The result of left shift operation against the signed expression value is undefined.
|
|
28532
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
28533
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
28534
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
28535
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
28454
28536
|
</ul>
|
|
28455
28537
|
|
|
28456
28538
|
<h4 class="subsection">6.472.5 Since</h4>
|
|
@@ -29592,6 +29674,10 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
29592
29674
|
|
|
29593
29675
|
<ul>
|
|
29594
29676
|
<li><a href="#W0608">W0608</a> An integer expression which the value might be minus converted to unsigned type.
|
|
29677
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
29678
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
29679
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
29680
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
29595
29681
|
</ul>
|
|
29596
29682
|
|
|
29597
29683
|
<h4 class="subsection">6.498.5 Since</h4>
|
|
@@ -29635,6 +29721,10 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
29635
29721
|
|
|
29636
29722
|
<ul>
|
|
29637
29723
|
<li><a href="#W0607">W0607</a> An integer expression which the value which the value is minus converted to unsigned type.
|
|
29724
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
29725
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
29726
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
29727
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
29638
29728
|
</ul>
|
|
29639
29729
|
|
|
29640
29730
|
<h4 class="subsection">6.499.5 Since</h4>
|
|
@@ -33946,7 +34036,12 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
33946
34036
|
|
|
33947
34037
|
<h4 class="subsection">6.581.4 Related message</h4>
|
|
33948
34038
|
|
|
33949
|
-
<
|
|
34039
|
+
<ul>
|
|
34040
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
34041
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
34042
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
34043
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
34044
|
+
</ul>
|
|
33950
34045
|
|
|
33951
34046
|
<h4 class="subsection">6.581.5 Since</h4>
|
|
33952
34047
|
|
|
@@ -33986,7 +34081,12 @@ int foo(void)
|
|
|
33986
34081
|
|
|
33987
34082
|
<h4 class="subsection">6.582.4 Related message</h4>
|
|
33988
34083
|
|
|
33989
|
-
<
|
|
34084
|
+
<ul>
|
|
34085
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
34086
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
34087
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
34088
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
34089
|
+
</ul>
|
|
33990
34090
|
|
|
33991
34091
|
<h4 class="subsection">6.582.5 Since</h4>
|
|
33992
34092
|
|
|
@@ -34429,7 +34529,12 @@ signed char sc4 = (signed char) -129.5; /* W0720 */
|
|
|
34429
34529
|
|
|
34430
34530
|
<h4 class="subsection">6.593.4 Related message</h4>
|
|
34431
34531
|
|
|
34432
|
-
<
|
|
34532
|
+
<ul>
|
|
34533
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
34534
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
34535
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
34536
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
34537
|
+
</ul>
|
|
34433
34538
|
|
|
34434
34539
|
<h4 class="subsection">6.593.5 Since</h4>
|
|
34435
34540
|
|
|
@@ -35448,7 +35553,12 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
35448
35553
|
|
|
35449
35554
|
<h4 class="subsection">6.617.4 Related message</h4>
|
|
35450
35555
|
|
|
35451
|
-
<
|
|
35556
|
+
<ul>
|
|
35557
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
35558
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
35559
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
35560
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
35561
|
+
</ul>
|
|
35452
35562
|
|
|
35453
35563
|
<h4 class="subsection">6.617.5 Since</h4>
|
|
35454
35564
|
|
|
@@ -39752,6 +39862,10 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
39752
39862
|
<li><a href="#W1050">W1050</a> The result of conversion to signed integer type in integer expression is not express by a signed type.
|
|
39753
39863
|
<li><a href="#W1051">W1051</a> The result of unsigned arithmetic expression typed `%s' is going around 0 by overflow.
|
|
39754
39864
|
<li><a href="#W1052">W1052</a> The result of unsigned arithmetic expression typed `%s' can be going around by overflow.
|
|
39865
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
39866
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
39867
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
39868
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
39755
39869
|
</ul>
|
|
39756
39870
|
|
|
39757
39871
|
<h4 class="subsection">6.713.5 Since</h4>
|
|
@@ -39805,6 +39919,10 @@ Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
|
39805
39919
|
<li><a href="#W1049">W1049</a> The result of conversion to signed integer type in integer expression might not be expressed by a signed type.
|
|
39806
39920
|
<li><a href="#W1051">W1051</a> The result of unsigned arithmetic expression typed `%s' is going around 0 by overflow.
|
|
39807
39921
|
<li><a href="#W1052">W1052</a> The result of unsigned arithmetic expression typed `%s' can be going around by overflow.
|
|
39922
|
+
<li><a href="#C1000">C1000</a> Warning above is detected in the following context.
|
|
39923
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
39924
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
39925
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
39808
39926
|
</ul>
|
|
39809
39927
|
|
|
39810
39928
|
<h4 class="subsection">6.714.5 Since</h4>
|
|
@@ -41237,6 +41355,7 @@ static void bar(void)
|
|
|
41237
41355
|
<div class="node">
|
|
41238
41356
|
<a name="C0001"></a>
|
|
41239
41357
|
<p><hr>
|
|
41358
|
+
Next: <a rel="next" accesskey="n" href="#C1000">C1000</a>,
|
|
41240
41359
|
Previous: <a rel="previous" accesskey="p" href="#W9003">W9003</a>,
|
|
41241
41360
|
Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
41242
41361
|
|
|
@@ -41271,6 +41390,487 @@ int very_long_long_long_long_long_long_long_identifier_2 = 1; /* W0052 */
|
|
|
41271
41390
|
|
|
41272
41391
|
<p>1.0.0
|
|
41273
41392
|
|
|
41393
|
+
<div class="node">
|
|
41394
|
+
<a name="C1000"></a>
|
|
41395
|
+
<p><hr>
|
|
41396
|
+
Next: <a rel="next" accesskey="n" href="#C1001">C1001</a>,
|
|
41397
|
+
Previous: <a rel="previous" accesskey="p" href="#C0001">C0001</a>,
|
|
41398
|
+
Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
41399
|
+
|
|
41400
|
+
</div>
|
|
41401
|
+
|
|
41402
|
+
<h3 class="section">6.746 C1000</h3>
|
|
41403
|
+
|
|
41404
|
+
<p><a name="index-C1000-793"></a>
|
|
41405
|
+
|
|
41406
|
+
<h4 class="subsection">6.746.1 Message body</h4>
|
|
41407
|
+
|
|
41408
|
+
<p>Warning above is detected in the following context.
|
|
41409
|
+
|
|
41410
|
+
<h4 class="subsection">6.746.2 Content</h4>
|
|
41411
|
+
|
|
41412
|
+
<p>This message indicates that the above <a href="#W0093">W0093</a>, <a href="#W0096">W0096</a>,
|
|
41413
|
+
<a href="#W0097">W0097</a>, <a href="#W0115">W0115</a>, <a href="#W0116">W0116</a>, <a href="#W0421">W0421</a>,
|
|
41414
|
+
<a href="#W0422">W0422</a>, <a href="#W0423">W0423</a>, <a href="#W0424">W0424</a>, <a href="#W0459">W0459</a>,
|
|
41415
|
+
<a href="#W0460">W0460</a>, <a href="#W0461">W0461</a>, <a href="#W0462">W0462</a>, <a href="#W0568">W0568</a>,
|
|
41416
|
+
<a href="#W0569">W0569</a>, <a href="#W0570">W0570</a>, <a href="#W0607">W0607</a>, <a href="#W0608">W0608</a>,
|
|
41417
|
+
<a href="#W0705">W0705</a>, <a href="#W0707">W0707</a>, <a href="#W0720">W0720</a>, <a href="#W0745">W0745</a>,
|
|
41418
|
+
<a href="#W1049">W1049</a> and <a href="#W1050">W1050</a> warnings are detected in the context
|
|
41419
|
+
described by the following messages.
|
|
41420
|
+
|
|
41421
|
+
<h4 class="subsection">6.746.3 Sample code</h4>
|
|
41422
|
+
|
|
41423
|
+
<pre class="verbatim"> 1: int foo(int i)
|
|
41424
|
+
2: {
|
|
41425
|
+
3: int j; /* C1003 */
|
|
41426
|
+
4:
|
|
41427
|
+
5: if (i < 0) { /* C1001 */
|
|
41428
|
+
6: if (i < -10) { /* C1002 */
|
|
41429
|
+
7: j = 2;
|
|
41430
|
+
8: }
|
|
41431
|
+
9: else if (i < -5) { /* C1002 */
|
|
41432
|
+
10: j = 3;
|
|
41433
|
+
11: }
|
|
41434
|
+
12: }
|
|
41435
|
+
13: else {
|
|
41436
|
+
14: j = 1;
|
|
41437
|
+
15: }
|
|
41438
|
+
16:
|
|
41439
|
+
17: return j; /* W0460 */
|
|
41440
|
+
18: }
|
|
41441
|
+
|
|
41442
|
+
a.c:17:12:warning:c_builtin:W0460:UNC:X99:A value of variable `j' wouldn't set when this expression is evaluated.
|
|
41443
|
+
:::context:c_builtin:C1000:INF:X99:Warning above is detected in the following context.
|
|
41444
|
+
a.c:3:9:context:c_builtin:C1003:INF:X99:The problematic variable is defined here without initializer.
|
|
41445
|
+
a.c:5:11:context:c_builtin:C1001:INF:X99:This controlling-expression is evaluated to be true.
|
|
41446
|
+
a.c:6:15:context:c_builtin:C1002:INF:X99:This controlling-expression is evaluated to be false.
|
|
41447
|
+
a.c:9:20:context:c_builtin:C1002:INF:X99:This controlling-expression is evaluated to be false.
|
|
41448
|
+
</pre>
|
|
41449
|
+
|
|
41450
|
+
<h4 class="subsection">6.746.4 Related message</h4>
|
|
41451
|
+
|
|
41452
|
+
<ul>
|
|
41453
|
+
<li><a href="#C1001">C1001</a> This controlling-expression is evaluated to be true.
|
|
41454
|
+
<li><a href="#C1002">C1002</a> This controlling-expression is evaluated to be false.
|
|
41455
|
+
<li><a href="#C1003">C1003</a> The problematic variable is defined here without initializer.
|
|
41456
|
+
<li><a href="#C1004">C1004</a> NULL value is assigned to the the problematic variable.
|
|
41457
|
+
<li><a href="#C1005">C1005</a> A value possibly be NULL is assigned to the problematic variable.
|
|
41458
|
+
<li><a href="#C1006">C1006</a> New value is assigned to the problematic variable.
|
|
41459
|
+
</ul>
|
|
41460
|
+
|
|
41461
|
+
<h4 class="subsection">6.746.5 Since</h4>
|
|
41462
|
+
|
|
41463
|
+
<p>3.2.0
|
|
41464
|
+
|
|
41465
|
+
<div class="node">
|
|
41466
|
+
<a name="C1001"></a>
|
|
41467
|
+
<p><hr>
|
|
41468
|
+
Next: <a rel="next" accesskey="n" href="#C1002">C1002</a>,
|
|
41469
|
+
Previous: <a rel="previous" accesskey="p" href="#C1000">C1000</a>,
|
|
41470
|
+
Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
41471
|
+
|
|
41472
|
+
</div>
|
|
41473
|
+
|
|
41474
|
+
<h3 class="section">6.747 C1001</h3>
|
|
41475
|
+
|
|
41476
|
+
<p><a name="index-C1001-794"></a>
|
|
41477
|
+
|
|
41478
|
+
<h4 class="subsection">6.747.1 Message body</h4>
|
|
41479
|
+
|
|
41480
|
+
<p>This controlling-expression is evaluated to be true.
|
|
41481
|
+
|
|
41482
|
+
<h4 class="subsection">6.747.2 Content</h4>
|
|
41483
|
+
|
|
41484
|
+
<p>This message indicates that the controlling-expression was evaluated as true in
|
|
41485
|
+
the context of detecting <a href="#W0093">W0093</a>, <a href="#W0096">W0096</a>,
|
|
41486
|
+
<a href="#W0097">W0097</a>, <a href="#W0115">W0115</a>, <a href="#W0116">W0116</a>, <a href="#W0421">W0421</a>,
|
|
41487
|
+
<a href="#W0422">W0422</a>, <a href="#W0423">W0423</a>, <a href="#W0424">W0424</a>, <a href="#W0459">W0459</a>,
|
|
41488
|
+
<a href="#W0460">W0460</a>, <a href="#W0461">W0461</a>, <a href="#W0462">W0462</a>, <a href="#W0568">W0568</a>,
|
|
41489
|
+
<a href="#W0569">W0569</a>, <a href="#W0570">W0570</a>, <a href="#W0607">W0607</a>, <a href="#W0608">W0608</a>,
|
|
41490
|
+
<a href="#W0705">W0705</a>, <a href="#W0707">W0707</a>, <a href="#W0720">W0720</a>, <a href="#W0745">W0745</a>,
|
|
41491
|
+
<a href="#W1049">W1049</a> and <a href="#W1050">W1050</a> warnings.
|
|
41492
|
+
|
|
41493
|
+
<h4 class="subsection">6.747.3 Sample code</h4>
|
|
41494
|
+
|
|
41495
|
+
<pre class="verbatim">int foo(int i)
|
|
41496
|
+
{
|
|
41497
|
+
int j; /* C1003 */
|
|
41498
|
+
|
|
41499
|
+
if (i < 0) { /* C1001 */
|
|
41500
|
+
if (i < -10) { /* C1002 */
|
|
41501
|
+
j = 2;
|
|
41502
|
+
}
|
|
41503
|
+
else if (i < -5) { /* C1002 */
|
|
41504
|
+
j = 3;
|
|
41505
|
+
}
|
|
41506
|
+
}
|
|
41507
|
+
else {
|
|
41508
|
+
j = 1;
|
|
41509
|
+
}
|
|
41510
|
+
|
|
41511
|
+
return j; /* W0460 */
|
|
41512
|
+
}
|
|
41513
|
+
</pre>
|
|
41514
|
+
|
|
41515
|
+
<h4 class="subsection">6.747.4 Related message</h4>
|
|
41516
|
+
|
|
41517
|
+
<ul>
|
|
41518
|
+
<li><a href="#W0093">W0093</a> This expression may cause division-by-zero.
|
|
41519
|
+
<li><a href="#W0096">W0096</a> It divided by a constant expression which definitely zero.
|
|
41520
|
+
<li><a href="#W0097">W0097</a> This expression must cause division-by-zero.
|
|
41521
|
+
<li><a href="#W0115">W0115</a> Unsigned left shift operator `<<' drop the high-order bit.
|
|
41522
|
+
<li><a href="#W0116">W0116</a> Unsigned left shift operator `<<' can be drop high-order bit.
|
|
41523
|
+
<li><a href="#W0421">W0421</a> Value of the dereferencing pointer must be NULL.
|
|
41524
|
+
<li><a href="#W0422">W0422</a> Value of the dereferencing pointer may be NULL.
|
|
41525
|
+
<li><a href="#W0423">W0423</a> Arithmetic operation is being made to the pointer which its value will be NULL.
|
|
41526
|
+
<li><a href="#W0424">W0424</a> Arithmetic operation is being made to the pointer which its value might be NULL.
|
|
41527
|
+
<li><a href="#W0459">W0459</a> A value of variable `%s' doesn't set when this expression is evaluated. This program is danger.
|
|
41528
|
+
<li><a href="#W0460">W0460</a> A value of variable `%s' wouldn't set when this expression is evaluated.
|
|
41529
|
+
<li><a href="#W0461">W0461</a> A pointer which points the undetermined variable is used for the actual argument of the function. This program is danger.
|
|
41530
|
+
<li><a href="#W0462">W0462</a> A pointer which the value will probably not set is used for the actual argument of the function.
|
|
41531
|
+
<li><a href="#W0568">W0568</a> The result of left shift operation against the signed constant expression value is undefined.
|
|
41532
|
+
<li><a href="#W0569">W0569</a> The result of left shift operation against the signed expression value is undefined.
|
|
41533
|
+
<li><a href="#W0570">W0570</a> This signed left shift operation may make undefined value.
|
|
41534
|
+
<li><a href="#W0607">W0607</a> An integer expression which the value which the value is minus converted to unsigned type.
|
|
41535
|
+
<li><a href="#W0608">W0608</a> An integer expression which the value might be minus converted to unsigned type.
|
|
41536
|
+
<li><a href="#W0705">W0705</a> This non-constant array subscript may cause out-of-range access.
|
|
41537
|
+
<li><a href="#W0707">W0707</a> This constant array subscript must cause out-of-range access.
|
|
41538
|
+
<li><a href="#W0720">W0720</a> The value with floating-point type doesn't fit in the range of converted type.
|
|
41539
|
+
<li><a href="#W0745">W0745</a> This non-constant array subscript may cause out-of-range access.
|
|
41540
|
+
<li><a href="#W1049">W1049</a> The result of conversion to signed integer type in integer expression might not be expressed by a signed type.
|
|
41541
|
+
<li><a href="#W1050">W1050</a> The result of conversion to signed integer type in integer expression is not express by a signed type.
|
|
41542
|
+
</ul>
|
|
41543
|
+
|
|
41544
|
+
<h4 class="subsection">6.747.5 Since</h4>
|
|
41545
|
+
|
|
41546
|
+
<p>3.2.0
|
|
41547
|
+
|
|
41548
|
+
<div class="node">
|
|
41549
|
+
<a name="C1002"></a>
|
|
41550
|
+
<p><hr>
|
|
41551
|
+
Next: <a rel="next" accesskey="n" href="#C1003">C1003</a>,
|
|
41552
|
+
Previous: <a rel="previous" accesskey="p" href="#C1001">C1001</a>,
|
|
41553
|
+
Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
41554
|
+
|
|
41555
|
+
</div>
|
|
41556
|
+
|
|
41557
|
+
<h3 class="section">6.748 C1002</h3>
|
|
41558
|
+
|
|
41559
|
+
<p><a name="index-C1002-795"></a>
|
|
41560
|
+
|
|
41561
|
+
<h4 class="subsection">6.748.1 Message body</h4>
|
|
41562
|
+
|
|
41563
|
+
<p>This controlling-expression is evaluated to be false.
|
|
41564
|
+
|
|
41565
|
+
<h4 class="subsection">6.748.2 Content</h4>
|
|
41566
|
+
|
|
41567
|
+
<p>This message indicates that the controlling-expression was evaluated as false
|
|
41568
|
+
in the context of detecting <a href="#W0093">W0093</a>, <a href="#W0096">W0096</a>,
|
|
41569
|
+
<a href="#W0097">W0097</a>, <a href="#W0115">W0115</a>, <a href="#W0116">W0116</a>, <a href="#W0421">W0421</a>,
|
|
41570
|
+
<a href="#W0422">W0422</a>, <a href="#W0423">W0423</a>, <a href="#W0424">W0424</a>, <a href="#W0459">W0459</a>,
|
|
41571
|
+
<a href="#W0460">W0460</a>, <a href="#W0461">W0461</a>, <a href="#W0462">W0462</a>, <a href="#W0568">W0568</a>,
|
|
41572
|
+
<a href="#W0569">W0569</a>, <a href="#W0570">W0570</a>, <a href="#W0607">W0607</a>, <a href="#W0608">W0608</a>,
|
|
41573
|
+
<a href="#W0705">W0705</a>, <a href="#W0707">W0707</a>, <a href="#W0720">W0720</a>, <a href="#W0745">W0745</a>,
|
|
41574
|
+
<a href="#W1049">W1049</a> and <a href="#W1050">W1050</a> warnings.
|
|
41575
|
+
|
|
41576
|
+
<h4 class="subsection">6.748.3 Sample code</h4>
|
|
41577
|
+
|
|
41578
|
+
<pre class="verbatim">int foo(int i)
|
|
41579
|
+
{
|
|
41580
|
+
int j; /* C1003 */
|
|
41581
|
+
|
|
41582
|
+
if (i < 0) { /* C1001 */
|
|
41583
|
+
if (i < -10) { /* C1002 */
|
|
41584
|
+
j = 2;
|
|
41585
|
+
}
|
|
41586
|
+
else if (i < -5) { /* C1002 */
|
|
41587
|
+
j = 3;
|
|
41588
|
+
}
|
|
41589
|
+
}
|
|
41590
|
+
else {
|
|
41591
|
+
j = 1;
|
|
41592
|
+
}
|
|
41593
|
+
|
|
41594
|
+
return j; /* W0460 */
|
|
41595
|
+
}
|
|
41596
|
+
</pre>
|
|
41597
|
+
|
|
41598
|
+
<h4 class="subsection">6.748.4 Related message</h4>
|
|
41599
|
+
|
|
41600
|
+
<ul>
|
|
41601
|
+
<li><a href="#W0093">W0093</a> This expression may cause division-by-zero.
|
|
41602
|
+
<li><a href="#W0096">W0096</a> It divided by a constant expression which definitely zero.
|
|
41603
|
+
<li><a href="#W0097">W0097</a> This expression must cause division-by-zero.
|
|
41604
|
+
<li><a href="#W0115">W0115</a> Unsigned left shift operator `<<' drop the high-order bit.
|
|
41605
|
+
<li><a href="#W0116">W0116</a> Unsigned left shift operator `<<' can be drop high-order bit.
|
|
41606
|
+
<li><a href="#W0421">W0421</a> Value of the dereferencing pointer must be NULL.
|
|
41607
|
+
<li><a href="#W0422">W0422</a> Value of the dereferencing pointer may be NULL.
|
|
41608
|
+
<li><a href="#W0423">W0423</a> Arithmetic operation is being made to the pointer which its value will be NULL.
|
|
41609
|
+
<li><a href="#W0424">W0424</a> Arithmetic operation is being made to the pointer which its value might be NULL.
|
|
41610
|
+
<li><a href="#W0459">W0459</a> A value of variable `%s' doesn't set when this expression is evaluated. This program is danger.
|
|
41611
|
+
<li><a href="#W0460">W0460</a> A value of variable `%s' wouldn't set when this expression is evaluated.
|
|
41612
|
+
<li><a href="#W0461">W0461</a> A pointer which points the undetermined variable is used for the actual argument of the function. This program is danger.
|
|
41613
|
+
<li><a href="#W0462">W0462</a> A pointer which the value will probably not set is used for the actual argument of the function.
|
|
41614
|
+
<li><a href="#W0568">W0568</a> The result of left shift operation against the signed constant expression value is undefined.
|
|
41615
|
+
<li><a href="#W0569">W0569</a> The result of left shift operation against the signed expression value is undefined.
|
|
41616
|
+
<li><a href="#W0570">W0570</a> This signed left shift operation may make undefined value.
|
|
41617
|
+
<li><a href="#W0607">W0607</a> An integer expression which the value which the value is minus converted to unsigned type.
|
|
41618
|
+
<li><a href="#W0608">W0608</a> An integer expression which the value might be minus converted to unsigned type.
|
|
41619
|
+
<li><a href="#W0705">W0705</a> This non-constant array subscript may cause out-of-range access.
|
|
41620
|
+
<li><a href="#W0707">W0707</a> This constant array subscript must cause out-of-range access.
|
|
41621
|
+
<li><a href="#W0720">W0720</a> The value with floating-point type doesn't fit in the range of converted type.
|
|
41622
|
+
<li><a href="#W0745">W0745</a> This non-constant array subscript may cause out-of-range access.
|
|
41623
|
+
<li><a href="#W1049">W1049</a> The result of conversion to signed integer type in integer expression might not be expressed by a signed type.
|
|
41624
|
+
<li><a href="#W1050">W1050</a> The result of conversion to signed integer type in integer expression is not express by a signed type.
|
|
41625
|
+
</ul>
|
|
41626
|
+
|
|
41627
|
+
<h4 class="subsection">6.748.5 Since</h4>
|
|
41628
|
+
|
|
41629
|
+
<p>3.2.0
|
|
41630
|
+
|
|
41631
|
+
<div class="node">
|
|
41632
|
+
<a name="C1003"></a>
|
|
41633
|
+
<p><hr>
|
|
41634
|
+
Next: <a rel="next" accesskey="n" href="#C1004">C1004</a>,
|
|
41635
|
+
Previous: <a rel="previous" accesskey="p" href="#C1002">C1002</a>,
|
|
41636
|
+
Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
41637
|
+
|
|
41638
|
+
</div>
|
|
41639
|
+
|
|
41640
|
+
<h3 class="section">6.749 C1003</h3>
|
|
41641
|
+
|
|
41642
|
+
<p><a name="index-C1003-796"></a>
|
|
41643
|
+
|
|
41644
|
+
<h4 class="subsection">6.749.1 Message body</h4>
|
|
41645
|
+
|
|
41646
|
+
<p>The problematic variable is defined here without initializer.
|
|
41647
|
+
|
|
41648
|
+
<h4 class="subsection">6.749.2 Content</h4>
|
|
41649
|
+
|
|
41650
|
+
<p>This message indicates where the problematic variable is defined in the context
|
|
41651
|
+
of detecting <a href="#W0459">W0459</a>, <a href="#W0460">W0460</a>, <a href="#W0461">W0461</a> and
|
|
41652
|
+
<a href="#W0462">W0462</a> warnings.
|
|
41653
|
+
|
|
41654
|
+
<h4 class="subsection">6.749.3 Sample code</h4>
|
|
41655
|
+
|
|
41656
|
+
<pre class="verbatim">int foo(int i)
|
|
41657
|
+
{
|
|
41658
|
+
int j; /* C1003 */
|
|
41659
|
+
|
|
41660
|
+
if (i < 0) { /* C1001 */
|
|
41661
|
+
if (i < -10) { /* C1002 */
|
|
41662
|
+
j = 2;
|
|
41663
|
+
}
|
|
41664
|
+
else if (i < -5) { /* C1002 */
|
|
41665
|
+
j = 3;
|
|
41666
|
+
}
|
|
41667
|
+
}
|
|
41668
|
+
else {
|
|
41669
|
+
j = 1;
|
|
41670
|
+
}
|
|
41671
|
+
|
|
41672
|
+
return j; /* W0460 */
|
|
41673
|
+
}
|
|
41674
|
+
</pre>
|
|
41675
|
+
|
|
41676
|
+
<h4 class="subsection">6.749.4 Related message</h4>
|
|
41677
|
+
|
|
41678
|
+
<ul>
|
|
41679
|
+
<li><a href="#W0459">W0459</a> A value of variable `%s' doesn't set when this expression is evaluated. This program is danger.
|
|
41680
|
+
<li><a href="#W0460">W0460</a> A value of variable `%s' wouldn't set when this expression is evaluated.
|
|
41681
|
+
<li><a href="#W0461">W0461</a> A pointer which points the undetermined variable is used for the actual argument of the function. This program is danger.
|
|
41682
|
+
<li><a href="#W0462">W0462</a> A pointer which the value will probably not set is used for the actual argument of the function.
|
|
41683
|
+
</ul>
|
|
41684
|
+
|
|
41685
|
+
<h4 class="subsection">6.749.5 Since</h4>
|
|
41686
|
+
|
|
41687
|
+
<p>3.2.0
|
|
41688
|
+
|
|
41689
|
+
<div class="node">
|
|
41690
|
+
<a name="C1004"></a>
|
|
41691
|
+
<p><hr>
|
|
41692
|
+
Next: <a rel="next" accesskey="n" href="#C1005">C1005</a>,
|
|
41693
|
+
Previous: <a rel="previous" accesskey="p" href="#C1003">C1003</a>,
|
|
41694
|
+
Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
41695
|
+
|
|
41696
|
+
</div>
|
|
41697
|
+
|
|
41698
|
+
<h3 class="section">6.750 C1004</h3>
|
|
41699
|
+
|
|
41700
|
+
<p><a name="index-C1004-797"></a>
|
|
41701
|
+
|
|
41702
|
+
<h4 class="subsection">6.750.1 Message body</h4>
|
|
41703
|
+
|
|
41704
|
+
<p>NULL value is assigned to the the problematic variable.
|
|
41705
|
+
|
|
41706
|
+
<h4 class="subsection">6.750.2 Content</h4>
|
|
41707
|
+
|
|
41708
|
+
<p>This message indicates where the NULL value was assigned to the problematic
|
|
41709
|
+
variable in the context of detecting <a href="#W0421">W0421</a>, <a href="#W0422">W0422</a>,
|
|
41710
|
+
<a href="#W0423">W0423</a> and <a href="#W0424">W0424</a> warnings.
|
|
41711
|
+
|
|
41712
|
+
<h4 class="subsection">6.750.3 Sample code</h4>
|
|
41713
|
+
|
|
41714
|
+
<pre class="verbatim">extern int *bar(void);
|
|
41715
|
+
extern int *baz(void);
|
|
41716
|
+
|
|
41717
|
+
void foo(int i)
|
|
41718
|
+
{
|
|
41719
|
+
int *p = NULL; /* C1004 */
|
|
41720
|
+
|
|
41721
|
+
if (i < 0) { /* C1002 */
|
|
41722
|
+
p = bar();
|
|
41723
|
+
if (!p) {
|
|
41724
|
+
return;
|
|
41725
|
+
}
|
|
41726
|
+
}
|
|
41727
|
+
else {
|
|
41728
|
+
p = baz(); /* C1005 */
|
|
41729
|
+
}
|
|
41730
|
+
|
|
41731
|
+
*p += 2; /* W0422 */
|
|
41732
|
+
}
|
|
41733
|
+
</pre>
|
|
41734
|
+
|
|
41735
|
+
<h4 class="subsection">6.750.4 Related message</h4>
|
|
41736
|
+
|
|
41737
|
+
<ul>
|
|
41738
|
+
<li><a href="#W0421">W0421</a> Value of the dereferencing pointer must be NULL.
|
|
41739
|
+
<li><a href="#W0422">W0422</a> Value of the dereferencing pointer may be NULL.
|
|
41740
|
+
<li><a href="#W0423">W0423</a> Arithmetic operation is being made to the pointer which its value will be NULL.
|
|
41741
|
+
<li><a href="#W0424">W0424</a> Arithmetic operation is being made to the pointer which its value might be NULL.
|
|
41742
|
+
</ul>
|
|
41743
|
+
|
|
41744
|
+
<h4 class="subsection">6.750.5 Since</h4>
|
|
41745
|
+
|
|
41746
|
+
<p>3.2.0
|
|
41747
|
+
|
|
41748
|
+
<div class="node">
|
|
41749
|
+
<a name="C1005"></a>
|
|
41750
|
+
<p><hr>
|
|
41751
|
+
Next: <a rel="next" accesskey="n" href="#C1006">C1006</a>,
|
|
41752
|
+
Previous: <a rel="previous" accesskey="p" href="#C1004">C1004</a>,
|
|
41753
|
+
Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
41754
|
+
|
|
41755
|
+
</div>
|
|
41756
|
+
|
|
41757
|
+
<h3 class="section">6.751 C1005</h3>
|
|
41758
|
+
|
|
41759
|
+
<p><a name="index-C1005-798"></a>
|
|
41760
|
+
|
|
41761
|
+
<h4 class="subsection">6.751.1 Message body</h4>
|
|
41762
|
+
|
|
41763
|
+
<p>A value possibly be NULL is assigned to the problematic variable.
|
|
41764
|
+
|
|
41765
|
+
<h4 class="subsection">6.751.2 Content</h4>
|
|
41766
|
+
|
|
41767
|
+
<p>This message indicates where the value possibly be NULL was assigned to the
|
|
41768
|
+
problematic variable in the context of detecting <a href="#W0421">W0421</a>,
|
|
41769
|
+
<a href="#W0422">W0422</a>, <a href="#W0423">W0423</a> and <a href="#W0424">W0424</a> warnings.
|
|
41770
|
+
|
|
41771
|
+
<h4 class="subsection">6.751.3 Sample code</h4>
|
|
41772
|
+
|
|
41773
|
+
<pre class="verbatim">extern int *bar(void);
|
|
41774
|
+
extern int *baz(void);
|
|
41775
|
+
|
|
41776
|
+
void foo(int i)
|
|
41777
|
+
{
|
|
41778
|
+
int *p = NULL; /* C1004 */
|
|
41779
|
+
|
|
41780
|
+
if (i < 0) { /* C1002 */
|
|
41781
|
+
p = bar();
|
|
41782
|
+
if (!p) {
|
|
41783
|
+
return;
|
|
41784
|
+
}
|
|
41785
|
+
}
|
|
41786
|
+
else {
|
|
41787
|
+
p = baz(); /* C1005 */
|
|
41788
|
+
}
|
|
41789
|
+
|
|
41790
|
+
*p += 2; /* W0422 */
|
|
41791
|
+
}
|
|
41792
|
+
</pre>
|
|
41793
|
+
|
|
41794
|
+
<h4 class="subsection">6.751.4 Related message</h4>
|
|
41795
|
+
|
|
41796
|
+
<ul>
|
|
41797
|
+
<li><a href="#W0421">W0421</a> Value of the dereferencing pointer must be NULL.
|
|
41798
|
+
<li><a href="#W0422">W0422</a> Value of the dereferencing pointer may be NULL.
|
|
41799
|
+
<li><a href="#W0423">W0423</a> Arithmetic operation is being made to the pointer which its value will be NULL.
|
|
41800
|
+
<li><a href="#W0424">W0424</a> Arithmetic operation is being made to the pointer which its value might be NULL.
|
|
41801
|
+
</ul>
|
|
41802
|
+
|
|
41803
|
+
<h4 class="subsection">6.751.5 Since</h4>
|
|
41804
|
+
|
|
41805
|
+
<p>3.2.0
|
|
41806
|
+
|
|
41807
|
+
<div class="node">
|
|
41808
|
+
<a name="C1006"></a>
|
|
41809
|
+
<p><hr>
|
|
41810
|
+
Previous: <a rel="previous" accesskey="p" href="#C1005">C1005</a>,
|
|
41811
|
+
Up: <a rel="up" accesskey="u" href="#Messages">Messages</a>
|
|
41812
|
+
|
|
41813
|
+
</div>
|
|
41814
|
+
|
|
41815
|
+
<h3 class="section">6.752 C1006</h3>
|
|
41816
|
+
|
|
41817
|
+
<p><a name="index-C1006-799"></a>
|
|
41818
|
+
|
|
41819
|
+
<h4 class="subsection">6.752.1 Message body</h4>
|
|
41820
|
+
|
|
41821
|
+
<p>New value is assigned to the problematic variable.
|
|
41822
|
+
|
|
41823
|
+
<h4 class="subsection">6.752.2 Content</h4>
|
|
41824
|
+
|
|
41825
|
+
<p>This message indicates where a value was assigned to the problematic variable
|
|
41826
|
+
in the context of detecting <a href="#W0093">W0093</a>, <a href="#W0096">W0096</a>,
|
|
41827
|
+
<a href="#W0097">W0097</a>, <a href="#W0115">W0115</a>, <a href="#W0116">W0116</a>, <a href="#W0568">W0568</a>,
|
|
41828
|
+
<a href="#W0569">W0569</a>, <a href="#W0570">W0570</a>, <a href="#W0607">W0607</a>, <a href="#W0608">W0608</a>,
|
|
41829
|
+
<a href="#W0705">W0705</a>, <a href="#W0707">W0707</a>, <a href="#W0720">W0720</a>, <a href="#W0745">W0745</a>,
|
|
41830
|
+
<a href="#W1049">W1049</a> and <a href="#W1050">W1050</a> warnings.
|
|
41831
|
+
|
|
41832
|
+
<h4 class="subsection">6.752.3 Sample code</h4>
|
|
41833
|
+
|
|
41834
|
+
<pre class="verbatim">int foo(int i)
|
|
41835
|
+
{
|
|
41836
|
+
int j = 0; /* C1006 */
|
|
41837
|
+
|
|
41838
|
+
if (i < 0) { /* C1002 */
|
|
41839
|
+
j = -i;
|
|
41840
|
+
}
|
|
41841
|
+
else if (i > 0) { /* C1002 */
|
|
41842
|
+
j = i;
|
|
41843
|
+
}
|
|
41844
|
+
|
|
41845
|
+
return 5 / j; /* W0093 */
|
|
41846
|
+
}
|
|
41847
|
+
</pre>
|
|
41848
|
+
|
|
41849
|
+
<h4 class="subsection">6.752.4 Related message</h4>
|
|
41850
|
+
|
|
41851
|
+
<ul>
|
|
41852
|
+
<li><a href="#W0093">W0093</a> This expression may cause division-by-zero.
|
|
41853
|
+
<li><a href="#W0096">W0096</a> It divided by a constant expression which definitely zero.
|
|
41854
|
+
<li><a href="#W0097">W0097</a> This expression must cause division-by-zero.
|
|
41855
|
+
<li><a href="#W0115">W0115</a> Unsigned left shift operator `<<' drop the high-order bit.
|
|
41856
|
+
<li><a href="#W0116">W0116</a> Unsigned left shift operator `<<' can be drop high-order bit.
|
|
41857
|
+
<li><a href="#W0568">W0568</a> The result of left shift operation against the signed constant expression value is undefined.
|
|
41858
|
+
<li><a href="#W0569">W0569</a> The result of left shift operation against the signed expression value is undefined.
|
|
41859
|
+
<li><a href="#W0570">W0570</a> This signed left shift operation may make undefined value.
|
|
41860
|
+
<li><a href="#W0607">W0607</a> An integer expression which the value which the value is minus converted to unsigned type.
|
|
41861
|
+
<li><a href="#W0608">W0608</a> An integer expression which the value might be minus converted to unsigned type.
|
|
41862
|
+
<li><a href="#W0705">W0705</a> This non-constant array subscript may cause out-of-range access.
|
|
41863
|
+
<li><a href="#W0707">W0707</a> This constant array subscript must cause out-of-range access.
|
|
41864
|
+
<li><a href="#W0720">W0720</a> The value with floating-point type doesn't fit in the range of converted type.
|
|
41865
|
+
<li><a href="#W0745">W0745</a> This non-constant array subscript may cause out-of-range access.
|
|
41866
|
+
<li><a href="#W1049">W1049</a> The result of conversion to signed integer type in integer expression might not be expressed by a signed type.
|
|
41867
|
+
<li><a href="#W1050">W1050</a> The result of conversion to signed integer type in integer expression is not express by a signed type.
|
|
41868
|
+
</ul>
|
|
41869
|
+
|
|
41870
|
+
<h4 class="subsection">6.752.5 Since</h4>
|
|
41871
|
+
|
|
41872
|
+
<p>3.2.0
|
|
41873
|
+
|
|
41274
41874
|
<div class="node">
|
|
41275
41875
|
<a name="Metrics"></a>
|
|
41276
41876
|
<p><hr>
|
|
@@ -41311,7 +41911,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41311
41911
|
|
|
41312
41912
|
<h3 class="section">7.1 FL_STMT</h3>
|
|
41313
41913
|
|
|
41314
|
-
<p><a name="index-FL_005fSTMT-
|
|
41914
|
+
<p><a name="index-FL_005fSTMT-800"></a>
|
|
41315
41915
|
|
|
41316
41916
|
<h4 class="subsection">7.1.1 Metric name</h4>
|
|
41317
41917
|
|
|
@@ -41382,7 +41982,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41382
41982
|
|
|
41383
41983
|
<h3 class="section">7.2 FL_FUNC</h3>
|
|
41384
41984
|
|
|
41385
|
-
<p><a name="index-FL_005fFUNC-
|
|
41985
|
+
<p><a name="index-FL_005fFUNC-801"></a>
|
|
41386
41986
|
|
|
41387
41987
|
<h4 class="subsection">7.2.1 Metric name</h4>
|
|
41388
41988
|
|
|
@@ -41427,7 +42027,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41427
42027
|
|
|
41428
42028
|
<h3 class="section">7.3 FN_STMT</h3>
|
|
41429
42029
|
|
|
41430
|
-
<p><a name="index-FN_005fSTMT-
|
|
42030
|
+
<p><a name="index-FN_005fSTMT-802"></a>
|
|
41431
42031
|
|
|
41432
42032
|
<h4 class="subsection">7.3.1 Metric name</h4>
|
|
41433
42033
|
|
|
@@ -41499,7 +42099,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41499
42099
|
|
|
41500
42100
|
<h3 class="section">7.4 FN_UNRC</h3>
|
|
41501
42101
|
|
|
41502
|
-
<p><a name="index-FN_005fUNRC-
|
|
42102
|
+
<p><a name="index-FN_005fUNRC-803"></a>
|
|
41503
42103
|
|
|
41504
42104
|
<h4 class="subsection">7.4.1 Metric name</h4>
|
|
41505
42105
|
|
|
@@ -41578,7 +42178,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41578
42178
|
|
|
41579
42179
|
<h3 class="section">7.5 FN_LINE</h3>
|
|
41580
42180
|
|
|
41581
|
-
<p><a name="index-FN_005fLINE-
|
|
42181
|
+
<p><a name="index-FN_005fLINE-804"></a>
|
|
41582
42182
|
|
|
41583
42183
|
<h4 class="subsection">7.5.1 Metric name</h4>
|
|
41584
42184
|
|
|
@@ -41637,7 +42237,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41637
42237
|
|
|
41638
42238
|
<h3 class="section">7.6 FN_PARA</h3>
|
|
41639
42239
|
|
|
41640
|
-
<p><a name="index-FN_005fPARA-
|
|
42240
|
+
<p><a name="index-FN_005fPARA-805"></a>
|
|
41641
42241
|
|
|
41642
42242
|
<h4 class="subsection">7.6.1 Metric name</h4>
|
|
41643
42243
|
|
|
@@ -41683,7 +42283,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41683
42283
|
|
|
41684
42284
|
<h3 class="section">7.7 FN_UNUV</h3>
|
|
41685
42285
|
|
|
41686
|
-
<p><a name="index-FN_005fUNUV-
|
|
42286
|
+
<p><a name="index-FN_005fUNUV-806"></a>
|
|
41687
42287
|
|
|
41688
42288
|
<h4 class="subsection">7.7.1 Metric name</h4>
|
|
41689
42289
|
|
|
@@ -41733,7 +42333,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41733
42333
|
|
|
41734
42334
|
<h3 class="section">7.8 FN_CSUB</h3>
|
|
41735
42335
|
|
|
41736
|
-
<p><a name="index-FN_005fCSUB-
|
|
42336
|
+
<p><a name="index-FN_005fCSUB-807"></a>
|
|
41737
42337
|
|
|
41738
42338
|
<h4 class="subsection">7.8.1 Metric name</h4>
|
|
41739
42339
|
|
|
@@ -41826,7 +42426,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41826
42426
|
|
|
41827
42427
|
<h3 class="section">7.10 FN_GOTO</h3>
|
|
41828
42428
|
|
|
41829
|
-
<p><a name="index-FN_005fGOTO-
|
|
42429
|
+
<p><a name="index-FN_005fGOTO-808"></a>
|
|
41830
42430
|
|
|
41831
42431
|
<h4 class="subsection">7.10.1 Metric name</h4>
|
|
41832
42432
|
|
|
@@ -41877,7 +42477,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41877
42477
|
|
|
41878
42478
|
<h3 class="section">7.11 FN_RETN</h3>
|
|
41879
42479
|
|
|
41880
|
-
<p><a name="index-FN_005fRETN-
|
|
42480
|
+
<p><a name="index-FN_005fRETN-809"></a>
|
|
41881
42481
|
|
|
41882
42482
|
<h4 class="subsection">7.11.1 Metric name</h4>
|
|
41883
42483
|
|
|
@@ -41950,7 +42550,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
41950
42550
|
|
|
41951
42551
|
<h3 class="section">7.12 FN_UELS</h3>
|
|
41952
42552
|
|
|
41953
|
-
<p><a name="index-FN_005fUELS-
|
|
42553
|
+
<p><a name="index-FN_005fUELS-810"></a>
|
|
41954
42554
|
|
|
41955
42555
|
<h4 class="subsection">7.12.1 Metric name</h4>
|
|
41956
42556
|
|
|
@@ -42010,7 +42610,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
42010
42610
|
|
|
42011
42611
|
<h3 class="section">7.13 FN_NEST</h3>
|
|
42012
42612
|
|
|
42013
|
-
<p><a name="index-FN_005fNEST-
|
|
42613
|
+
<p><a name="index-FN_005fNEST-811"></a>
|
|
42014
42614
|
|
|
42015
42615
|
<h4 class="subsection">7.13.1 Metric name</h4>
|
|
42016
42616
|
|
|
@@ -42081,7 +42681,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
42081
42681
|
|
|
42082
42682
|
<h3 class="section">7.14 FN_PATH</h3>
|
|
42083
42683
|
|
|
42084
|
-
<p><a name="index-FN_005fPATH-
|
|
42684
|
+
<p><a name="index-FN_005fPATH-812"></a>
|
|
42085
42685
|
|
|
42086
42686
|
<h4 class="subsection">7.14.1 Metric name</h4>
|
|
42087
42687
|
|
|
@@ -42238,7 +42838,7 @@ Up: <a rel="up" accesskey="u" href="#Metrics">Metrics</a>
|
|
|
42238
42838
|
|
|
42239
42839
|
<h3 class="section">7.15 FN_CYCM</h3>
|
|
42240
42840
|
|
|
42241
|
-
<p><a name="index-FN_005fCYCM-
|
|
42841
|
+
<p><a name="index-FN_005fCYCM-813"></a>
|
|
42242
42842
|
|
|
42243
42843
|
<h4 class="subsection">7.15.1 Metric name</h4>
|
|
42244
42844
|
|
|
@@ -42379,7 +42979,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42379
42979
|
|
|
42380
42980
|
<h3 class="section">8.1 VER</h3>
|
|
42381
42981
|
|
|
42382
|
-
<p><a name="index-VER-
|
|
42982
|
+
<p><a name="index-VER-814"></a>
|
|
42383
42983
|
|
|
42384
42984
|
<h4 class="subsection">8.1.1 Code structure information name</h4>
|
|
42385
42985
|
|
|
@@ -42409,7 +43009,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42409
43009
|
|
|
42410
43010
|
<h3 class="section">8.2 DCL(T)</h3>
|
|
42411
43011
|
|
|
42412
|
-
<p><a name="index-DCL_0028T_0029-
|
|
43012
|
+
<p><a name="index-DCL_0028T_0029-815"></a>
|
|
42413
43013
|
|
|
42414
43014
|
<h4 class="subsection">8.2.1 Code structure information name</h4>
|
|
42415
43015
|
|
|
@@ -42439,7 +43039,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42439
43039
|
|
|
42440
43040
|
<h3 class="section">8.3 DCL(V)</h3>
|
|
42441
43041
|
|
|
42442
|
-
<p><a name="index-DCL_0028V_0029-
|
|
43042
|
+
<p><a name="index-DCL_0028V_0029-816"></a>
|
|
42443
43043
|
|
|
42444
43044
|
<h4 class="subsection">8.3.1 Code structure information name</h4>
|
|
42445
43045
|
|
|
@@ -42469,7 +43069,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42469
43069
|
|
|
42470
43070
|
<h3 class="section">8.4 DCL(F)</h3>
|
|
42471
43071
|
|
|
42472
|
-
<p><a name="index-DCL_0028F_0029-
|
|
43072
|
+
<p><a name="index-DCL_0028F_0029-817"></a>
|
|
42473
43073
|
|
|
42474
43074
|
<h4 class="subsection">8.4.1 Code structure information name</h4>
|
|
42475
43075
|
|
|
@@ -42499,7 +43099,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42499
43099
|
|
|
42500
43100
|
<h3 class="section">8.5 DEF(V)</h3>
|
|
42501
43101
|
|
|
42502
|
-
<p><a name="index-DEF_0028V_0029-
|
|
43102
|
+
<p><a name="index-DEF_0028V_0029-818"></a>
|
|
42503
43103
|
|
|
42504
43104
|
<h4 class="subsection">8.5.1 Code structure information name</h4>
|
|
42505
43105
|
|
|
@@ -42529,7 +43129,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42529
43129
|
|
|
42530
43130
|
<h3 class="section">8.6 DEF(F)</h3>
|
|
42531
43131
|
|
|
42532
|
-
<p><a name="index-DEF_0028F_0029-
|
|
43132
|
+
<p><a name="index-DEF_0028F_0029-819"></a>
|
|
42533
43133
|
|
|
42534
43134
|
<h4 class="subsection">8.6.1 Code structure information name</h4>
|
|
42535
43135
|
|
|
@@ -42559,7 +43159,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42559
43159
|
|
|
42560
43160
|
<h3 class="section">8.7 DEF(M)</h3>
|
|
42561
43161
|
|
|
42562
|
-
<p><a name="index-DEF_0028M_0029-
|
|
43162
|
+
<p><a name="index-DEF_0028M_0029-820"></a>
|
|
42563
43163
|
|
|
42564
43164
|
<h4 class="subsection">8.7.1 Code structure information name</h4>
|
|
42565
43165
|
|
|
@@ -42589,7 +43189,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42589
43189
|
|
|
42590
43190
|
<h3 class="section">8.8 DEF(L)</h3>
|
|
42591
43191
|
|
|
42592
|
-
<p><a name="index-DEF_0028L_0029-
|
|
43192
|
+
<p><a name="index-DEF_0028L_0029-821"></a>
|
|
42593
43193
|
|
|
42594
43194
|
<h4 class="subsection">8.8.1 Code structure information name</h4>
|
|
42595
43195
|
|
|
@@ -42618,7 +43218,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42618
43218
|
|
|
42619
43219
|
<h3 class="section">8.9 INI</h3>
|
|
42620
43220
|
|
|
42621
|
-
<p><a name="index-INI-
|
|
43221
|
+
<p><a name="index-INI-822"></a>
|
|
42622
43222
|
|
|
42623
43223
|
<h4 class="subsection">8.9.1 Code structure information name</h4>
|
|
42624
43224
|
|
|
@@ -42647,7 +43247,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42647
43247
|
|
|
42648
43248
|
<h3 class="section">8.10 ASN</h3>
|
|
42649
43249
|
|
|
42650
|
-
<p><a name="index-ASN-
|
|
43250
|
+
<p><a name="index-ASN-823"></a>
|
|
42651
43251
|
|
|
42652
43252
|
<h4 class="subsection">8.10.1 Code structure information name</h4>
|
|
42653
43253
|
|
|
@@ -42677,7 +43277,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42677
43277
|
|
|
42678
43278
|
<h3 class="section">8.11 DEP(I)</h3>
|
|
42679
43279
|
|
|
42680
|
-
<p><a name="index-DEP_0028I_0029-
|
|
43280
|
+
<p><a name="index-DEP_0028I_0029-824"></a>
|
|
42681
43281
|
|
|
42682
43282
|
<h4 class="subsection">8.11.1 Code structure information name</h4>
|
|
42683
43283
|
|
|
@@ -42707,7 +43307,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42707
43307
|
|
|
42708
43308
|
<h3 class="section">8.12 DEP(C)</h3>
|
|
42709
43309
|
|
|
42710
|
-
<p><a name="index-DEP_0028C_0029-
|
|
43310
|
+
<p><a name="index-DEP_0028C_0029-825"></a>
|
|
42711
43311
|
|
|
42712
43312
|
<h4 class="subsection">8.12.1 Code structure information name</h4>
|
|
42713
43313
|
|
|
@@ -42737,7 +43337,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42737
43337
|
|
|
42738
43338
|
<h3 class="section">8.13 DEP(X)</h3>
|
|
42739
43339
|
|
|
42740
|
-
<p><a name="index-DEP_0028X_0029-
|
|
43340
|
+
<p><a name="index-DEP_0028X_0029-826"></a>
|
|
42741
43341
|
|
|
42742
43342
|
<h4 class="subsection">8.13.1 Code structure information name</h4>
|
|
42743
43343
|
|
|
@@ -42766,7 +43366,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42766
43366
|
|
|
42767
43367
|
<h3 class="section">8.14 LIT</h3>
|
|
42768
43368
|
|
|
42769
|
-
<p><a name="index-LIT-
|
|
43369
|
+
<p><a name="index-LIT-827"></a>
|
|
42770
43370
|
|
|
42771
43371
|
<h4 class="subsection">8.14.1 Code structure information name</h4>
|
|
42772
43372
|
|
|
@@ -42794,7 +43394,7 @@ Up: <a rel="up" accesskey="u" href="#CodeStructures">CodeStructures</a>
|
|
|
42794
43394
|
|
|
42795
43395
|
<h3 class="section">8.15 PRE</h3>
|
|
42796
43396
|
|
|
42797
|
-
<p><a name="index-PRE-
|
|
43397
|
+
<p><a name="index-PRE-828"></a>
|
|
42798
43398
|
|
|
42799
43399
|
<h4 class="subsection">8.15.1 Code structure information name</h4>
|
|
42800
43400
|
|
|
@@ -43333,8 +43933,15 @@ Up: <a rel="up" accesskey="u" href="#Top">Top</a>
|
|
|
43333
43933
|
<h2 class="unnumbered">Index</h2>
|
|
43334
43934
|
|
|
43335
43935
|
<ul class="index-cp" compact>
|
|
43336
|
-
<li><a href="#index-ASN-
|
|
43936
|
+
<li><a href="#index-ASN-823">ASN</a>: <a href="#ASN">ASN</a></li>
|
|
43337
43937
|
<li><a href="#index-C0001-792">C0001</a>: <a href="#C0001">C0001</a></li>
|
|
43938
|
+
<li><a href="#index-C1000-793">C1000</a>: <a href="#C1000">C1000</a></li>
|
|
43939
|
+
<li><a href="#index-C1001-794">C1001</a>: <a href="#C1001">C1001</a></li>
|
|
43940
|
+
<li><a href="#index-C1002-795">C1002</a>: <a href="#C1002">C1002</a></li>
|
|
43941
|
+
<li><a href="#index-C1003-796">C1003</a>: <a href="#C1003">C1003</a></li>
|
|
43942
|
+
<li><a href="#index-C1004-797">C1004</a>: <a href="#C1004">C1004</a></li>
|
|
43943
|
+
<li><a href="#index-C1005-798">C1005</a>: <a href="#C1005">C1005</a></li>
|
|
43944
|
+
<li><a href="#index-C1006-799">C1006</a>: <a href="#C1006">C1006</a></li>
|
|
43338
43945
|
<li><a href="#index-compiler_005ftraits-15">compiler_traits</a>: <a href="#Compiler-Traits">Compiler Traits</a></li>
|
|
43339
43946
|
<li><a href="#index-compiler_005ftraits_003aarbitrary_005fsubstitutions-42">compiler_traits:arbitrary_substitutions</a>: <a href="#Compiler-Traits">Compiler Traits</a></li>
|
|
43340
43947
|
<li><a href="#index-compiler_005ftraits_003aarithmetic_003alogical_005fright_005fshift-39">compiler_traits:arithmetic:logical_right_shift</a>: <a href="#Compiler-Traits">Compiler Traits</a></li>
|
|
@@ -43363,16 +43970,16 @@ Up: <a rel="up" accesskey="u" href="#Top">Top</a>
|
|
|
43363
43970
|
<li><a href="#index-compiler_005ftraits_003astandard_005ftypes_003along_005fsize-24">compiler_traits:standard_types:long_size</a>: <a href="#Compiler-Traits">Compiler Traits</a></li>
|
|
43364
43971
|
<li><a href="#index-compiler_005ftraits_003astandard_005ftypes_003ashort_005falignment-21">compiler_traits:standard_types:short_alignment</a>: <a href="#Compiler-Traits">Compiler Traits</a></li>
|
|
43365
43972
|
<li><a href="#index-compiler_005ftraits_003astandard_005ftypes_003ashort_005fsize-20">compiler_traits:standard_types:short_size</a>: <a href="#Compiler-Traits">Compiler Traits</a></li>
|
|
43366
|
-
<li><a href="#index-DCL_0028F_0029-
|
|
43367
|
-
<li><a href="#index-DCL_0028T_0029-
|
|
43368
|
-
<li><a href="#index-DCL_0028V_0029-
|
|
43369
|
-
<li><a href="#index-DEF_0028F_0029-
|
|
43370
|
-
<li><a href="#index-DEF_0028L_0029-
|
|
43371
|
-
<li><a href="#index-DEF_0028M_0029-
|
|
43372
|
-
<li><a href="#index-DEF_0028V_0029-
|
|
43373
|
-
<li><a href="#index-DEP_0028C_0029-
|
|
43374
|
-
<li><a href="#index-DEP_0028I_0029-
|
|
43375
|
-
<li><a href="#index-DEP_0028X_0029-
|
|
43973
|
+
<li><a href="#index-DCL_0028F_0029-817">DCL(F)</a>: <a href="#DCL_0028F_0029">DCL(F)</a></li>
|
|
43974
|
+
<li><a href="#index-DCL_0028T_0029-815">DCL(T)</a>: <a href="#DCL_0028T_0029">DCL(T)</a></li>
|
|
43975
|
+
<li><a href="#index-DCL_0028V_0029-816">DCL(V)</a>: <a href="#DCL_0028V_0029">DCL(V)</a></li>
|
|
43976
|
+
<li><a href="#index-DEF_0028F_0029-819">DEF(F)</a>: <a href="#DEF_0028F_0029">DEF(F)</a></li>
|
|
43977
|
+
<li><a href="#index-DEF_0028L_0029-821">DEF(L)</a>: <a href="#DEF_0028L_0029">DEF(L)</a></li>
|
|
43978
|
+
<li><a href="#index-DEF_0028M_0029-820">DEF(M)</a>: <a href="#DEF_0028M_0029">DEF(M)</a></li>
|
|
43979
|
+
<li><a href="#index-DEF_0028V_0029-818">DEF(V)</a>: <a href="#DEF_0028V_0029">DEF(V)</a></li>
|
|
43980
|
+
<li><a href="#index-DEP_0028C_0029-825">DEP(C)</a>: <a href="#DEP_0028C_0029">DEP(C)</a></li>
|
|
43981
|
+
<li><a href="#index-DEP_0028I_0029-824">DEP(I)</a>: <a href="#DEP_0028I_0029">DEP(I)</a></li>
|
|
43982
|
+
<li><a href="#index-DEP_0028X_0029-826">DEP(X)</a>: <a href="#DEP_0028X_0029">DEP(X)</a></li>
|
|
43376
43983
|
<li><a href="#index-E0004-58">E0004</a>: <a href="#E0004">E0004</a></li>
|
|
43377
43984
|
<li><a href="#index-E0007-59">E0007</a>: <a href="#E0007">E0007</a></li>
|
|
43378
43985
|
<li><a href="#index-E0008-60">E0008</a>: <a href="#E0008">E0008</a></li>
|
|
@@ -43383,26 +43990,26 @@ Up: <a rel="up" accesskey="u" href="#Top">Top</a>
|
|
|
43383
43990
|
<li><a href="#index-E0015-65">E0015</a>: <a href="#E0015">E0015</a></li>
|
|
43384
43991
|
<li><a href="#index-E0016-66">E0016</a>: <a href="#E0016">E0016</a></li>
|
|
43385
43992
|
<li><a href="#index-exam_005fpackages-3">exam_packages</a>: <a href="#Global-Traits">Global Traits</a></li>
|
|
43386
|
-
<li><a href="#index-FL_005fFUNC-
|
|
43387
|
-
<li><a href="#index-FL_005fSTMT-
|
|
43388
|
-
<li><a href="#index-FN_005fCSUB-
|
|
43389
|
-
<li><a href="#index-FN_005fCYCM-
|
|
43390
|
-
<li><a href="#index-FN_005fGOTO-
|
|
43391
|
-
<li><a href="#index-FN_005fLINE-
|
|
43392
|
-
<li><a href="#index-FN_005fNEST-
|
|
43393
|
-
<li><a href="#index-FN_005fPARA-
|
|
43394
|
-
<li><a href="#index-FN_005fPATH-
|
|
43395
|
-
<li><a href="#index-FN_005fRETN-
|
|
43396
|
-
<li><a href="#index-FN_005fSTMT-
|
|
43397
|
-
<li><a href="#index-FN_005fUELS-
|
|
43398
|
-
<li><a href="#index-FN_005fUNRC-
|
|
43399
|
-
<li><a href="#index-FN_005fUNUV-
|
|
43993
|
+
<li><a href="#index-FL_005fFUNC-801">FL_FUNC</a>: <a href="#FL_005fFUNC">FL_FUNC</a></li>
|
|
43994
|
+
<li><a href="#index-FL_005fSTMT-800">FL_STMT</a>: <a href="#FL_005fSTMT">FL_STMT</a></li>
|
|
43995
|
+
<li><a href="#index-FN_005fCSUB-807">FN_CSUB</a>: <a href="#FN_005fCSUB">FN_CSUB</a></li>
|
|
43996
|
+
<li><a href="#index-FN_005fCYCM-813">FN_CYCM</a>: <a href="#FN_005fCYCM">FN_CYCM</a></li>
|
|
43997
|
+
<li><a href="#index-FN_005fGOTO-808">FN_GOTO</a>: <a href="#FN_005fGOTO">FN_GOTO</a></li>
|
|
43998
|
+
<li><a href="#index-FN_005fLINE-804">FN_LINE</a>: <a href="#FN_005fLINE">FN_LINE</a></li>
|
|
43999
|
+
<li><a href="#index-FN_005fNEST-811">FN_NEST</a>: <a href="#FN_005fNEST">FN_NEST</a></li>
|
|
44000
|
+
<li><a href="#index-FN_005fPARA-805">FN_PARA</a>: <a href="#FN_005fPARA">FN_PARA</a></li>
|
|
44001
|
+
<li><a href="#index-FN_005fPATH-812">FN_PATH</a>: <a href="#FN_005fPATH">FN_PATH</a></li>
|
|
44002
|
+
<li><a href="#index-FN_005fRETN-809">FN_RETN</a>: <a href="#FN_005fRETN">FN_RETN</a></li>
|
|
44003
|
+
<li><a href="#index-FN_005fSTMT-802">FN_STMT</a>: <a href="#FN_005fSTMT">FN_STMT</a></li>
|
|
44004
|
+
<li><a href="#index-FN_005fUELS-810">FN_UELS</a>: <a href="#FN_005fUELS">FN_UELS</a></li>
|
|
44005
|
+
<li><a href="#index-FN_005fUNRC-803">FN_UNRC</a>: <a href="#FN_005fUNRC">FN_UNRC</a></li>
|
|
44006
|
+
<li><a href="#index-FN_005fUNUV-806">FN_UNUV</a>: <a href="#FN_005fUNUV">FN_UNUV</a></li>
|
|
43400
44007
|
<li><a href="#index-global_005ftraits-1">global_traits</a>: <a href="#Global-Traits">Global Traits</a></li>
|
|
43401
|
-
<li><a href="#index-INI-
|
|
44008
|
+
<li><a href="#index-INI-822">INI</a>: <a href="#INI">INI</a></li>
|
|
43402
44009
|
<li><a href="#index-linker_005ftraits-43">linker_traits</a>: <a href="#Linker-Traits">Linker Traits</a></li>
|
|
43403
44010
|
<li><a href="#index-linker_005ftraits_003aidentifier_005fignore_005fcase-45">linker_traits:identifier_ignore_case</a>: <a href="#Linker-Traits">Linker Traits</a></li>
|
|
43404
44011
|
<li><a href="#index-linker_005ftraits_003aidentifier_005fmax-44">linker_traits:identifier_max</a>: <a href="#Linker-Traits">Linker Traits</a></li>
|
|
43405
|
-
<li><a href="#index-LIT-
|
|
44012
|
+
<li><a href="#index-LIT-827">LIT</a>: <a href="#LIT">LIT</a></li>
|
|
43406
44013
|
<li><a href="#index-message_005ftraits-46">message_traits</a>: <a href="#Message-Traits">Message Traits</a></li>
|
|
43407
44014
|
<li><a href="#index-message_005ftraits_003achange_005flist-53">message_traits:change_list</a>: <a href="#Message-Traits">Message Traits</a></li>
|
|
43408
44015
|
<li><a href="#index-message_005ftraits_003aexclusion_003acategories-49">message_traits:exclusion:categories</a>: <a href="#Message-Traits">Message Traits</a></li>
|
|
@@ -43411,7 +44018,7 @@ Up: <a rel="up" accesskey="u" href="#Top">Top</a>
|
|
|
43411
44018
|
<li><a href="#index-message_005ftraits_003ainclusion_003amessages-52">message_traits:inclusion:messages</a>: <a href="#Message-Traits">Message Traits</a></li>
|
|
43412
44019
|
<li><a href="#index-message_005ftraits_003aindividual_005fsuppression-48">message_traits:individual_suppression</a>: <a href="#Message-Traits">Message Traits</a></li>
|
|
43413
44020
|
<li><a href="#index-message_005ftraits_003alanguage-47">message_traits:language</a>: <a href="#Message-Traits">Message Traits</a></li>
|
|
43414
|
-
<li><a href="#index-PRE-
|
|
44021
|
+
<li><a href="#index-PRE-828">PRE</a>: <a href="#PRE">PRE</a></li>
|
|
43415
44022
|
<li><a href="#index-project_005ftraits-4">project_traits</a>: <a href="#Project-Traits">Project Traits</a></li>
|
|
43416
44023
|
<li><a href="#index-project_005ftraits_003acoding_005fstyle_003aindent_005fstyle-11">project_traits:coding_style:indent_style</a>: <a href="#Project-Traits">Project Traits</a></li>
|
|
43417
44024
|
<li><a href="#index-project_005ftraits_003acoding_005fstyle_003aindent_005fwidth-13">project_traits:coding_style:indent_width</a>: <a href="#Project-Traits">Project Traits</a></li>
|
|
@@ -43423,7 +44030,7 @@ Up: <a rel="up" accesskey="u" href="#Top">Top</a>
|
|
|
43423
44030
|
<li><a href="#index-project_005ftraits_003aproject_005froot-6">project_traits:project_root</a>: <a href="#Project-Traits">Project Traits</a></li>
|
|
43424
44031
|
<li><a href="#index-project_005ftraits_003atarget_005ffiles_003aexclusion_005fpaths-8">project_traits:target_files:exclusion_paths</a>: <a href="#Project-Traits">Project Traits</a></li>
|
|
43425
44032
|
<li><a href="#index-project_005ftraits_003atarget_005ffiles_003ainclusion_005fpaths-7">project_traits:target_files:inclusion_paths</a>: <a href="#Project-Traits">Project Traits</a></li>
|
|
43426
|
-
<li><a href="#index-VER-
|
|
44033
|
+
<li><a href="#index-VER-814">VER</a>: <a href="#VER">VER</a></li>
|
|
43427
44034
|
<li><a href="#index-version-2">version</a>: <a href="#Global-Traits">Global Traits</a></li>
|
|
43428
44035
|
<li><a href="#index-W0001-67">W0001</a>: <a href="#W0001">W0001</a></li>
|
|
43429
44036
|
<li><a href="#index-W0002-68">W0002</a>: <a href="#W0002">W0002</a></li>
|