]> andersk Git - splint.git/blame - src/flags.def
Remade libraries.
[splint.git] / src / flags.def
CommitLineData
885824d3 1/*;-*-C-*-;
2**
3** flags.def
4**
5** This file is used to generate the flag header files.
a0a162cd 6**
7** Don't forget to regenerate flag_codes.gen. (lost the Makefile...bleech!)
885824d3 8*/
885824d3 9 /* spec idem global mode args */
10/*@-namechecks@*/
11/*@notfunction@*/
12# define modeFlag FALSE, FALSE, FALSE, TRUE, ARG_NONE
13/*@notfunction@*/
14# define plainFlag FALSE, FALSE, FALSE, FALSE, ARG_NONE
15/*@notfunction@*/
16# define specialFlag TRUE, FALSE, FALSE, FALSE, ARG_NONE
17/*@notfunction@*/
18# define plainSpecialFlag TRUE, FALSE, FALSE, FALSE, ARG_NONE
19/*@notfunction@*/
20# define idemSpecialFlag TRUE, TRUE, FALSE, FALSE, ARG_NONE
21/*@notfunction@*/
22# define valueFlag FALSE, FALSE, FALSE, FALSE, ARG_VALUE
23/*@notfunction@*/
24# define modeValueFlag FALSE, FALSE, FALSE, TRUE, ARG_VALUE
25/*@notfunction@*/
26# define specialValueFlag TRUE, FALSE, FALSE, FALSE, ARG_VALUE
27/*@notfunction@*/
28# define debugFlag FALSE, TRUE, FALSE, FALSE, ARG_NONE
29/*@notfunction@*/
28bf4b0b 30# define debugValueFlag FALSE, TRUE, FALSE, FALSE, ARG_VALUE
31/*@notfunction@*/
885824d3 32# define specialDebugFlag TRUE, TRUE, FALSE, FALSE, ARG_NONE
33/*@notfunction@*/
34# define globalFlag FALSE, FALSE, TRUE, FALSE, ARG_NONE
35/*@notfunction@*/
36# define idemGlobalFlag FALSE, TRUE, TRUE, FALSE, ARG_NONE
37/*@notfunction@*/
38# define globalValueFlag FALSE, FALSE, TRUE, FALSE, ARG_VALUE
39/*@notfunction@*/
40# define regStringFlag FALSE, FALSE, FALSE, FALSE, ARG_STRING
41/*@notfunction@*/
42# define idemStringFlag FALSE, TRUE, FALSE, FALSE, ARG_STRING
43/*@notfunction@*/
44# define globalStringFlag FALSE, FALSE, TRUE, FALSE, ARG_STRING
45/*@notfunction@*/
46# define extraArgFlag FALSE, FALSE, FALSE, FALSE, ARG_SPECIAL
47/*@notfunction@*/
48# define globalExtraArgFlag FALSE, FALSE, TRUE, FALSE, ARG_SPECIAL
49/*@=namechecks@*/
50
51/*
52** Note: the flag code must be on a separate line, since I'm
53** too stupid to write an awk/sed/whatever script that can separate
54** the lines.
55*/
56
28bf4b0b 57static flaglist flags =
885824d3 58{
28bf4b0b 59 {
60 FK_BOOL, FK_HELP, plainFlag,
61 "likelybool",
62 FLG_LIKELYBOOL,
63 "type name is probably a boolean type but does not match default "
64 "boolean type name, \"bool\", and alternate name is not set",
65 "Use the -booltype, -boolfalse and -booltrue flags to change the "
66 "name of the default boolean type.",
67 0, 0
885824d3 68 },
28bf4b0b 69 {
70 FK_ABSTRACT, FK_IMPLICIT, plainFlag,
71 "impabstract",
72 FLG_IMPABSTRACT,
73 "assume user type definitions are abstract (unless /*@concrete@*/ is used)",
74 NULL,
75 0, 0
76 },
77 {
78 FK_ABSTRACT, FK_NAMES, specialFlag,
79 "accessall",
80 FLG_ACCESSALL,
81 "set accessmodule, accessfile and accessczech",
82 "Sets accessmodule, accessfile and accessczech",
83 0, 0
84 },
85 {
86 FK_ABSTRACT, FK_NAMES, plainFlag,
87 "accessmodule",
88 FLG_ACCESSMODULE,
89 "allow access to abstract types in definition module",
90 "The representation of an abstract type defined in <M>.<x> is "
91 "accessible anywhere in a file named <M>.<y>.",
92 0, 0
93 },
94 {
95 FK_ABSTRACT, FK_NAMES, plainFlag,
96 "accessfile",
97 FLG_ACCESSFILE,
98 "allow access to abstract types by file name convention",
99 "The representation of an abstract type named <t> is "
100 "accessible anywhere in a file named <t>.<x>.",
101 0, 0
102 },
103 {
104 FK_ABSTRACT, FK_NAMES, plainFlag,
105 "accessczech",
106 FLG_ACCESSCZECH,
107 "allow access to abstract types by czech naming convention",
108 "The representation of an abstract type named <t> is accessible "
109 "in the definition of a function or constant named <t>_<name>",
110 0, 0
111 },
112 {
113 FK_ABSTRACT, FK_NAMES, plainFlag,
114 "accessslovak",
115 FLG_ACCESSSLOVAK,
116 "allow access to abstract types by slovak naming convention",
117 "The representation of an abstract type named <t> is accessible "
118 "in the definition of a function or constant named <t><Name>",
119 0, 0
120 },
121 {
122 FK_ABSTRACT, FK_NAMES, plainFlag,
123 "accessczechoslovak",
124 FLG_ACCESSCZECHOSLOVAK,
125 "allow access to abstract types by czechoslovak naming convention",
126 "The representation of an abstract type named <t> is accessible "
127 "in the definition of a function or constant named <t>_<name> or <t><Name>",
128 0, 0
129 },
130 {
131 FK_ABSTRACT, FK_NONE, plainFlag,
132 "abstract",
133 FLG_ABSTRACT,
134 "data abstraction barriers",
135 "An abstraction barrier is broken. If necessary, use /*@access <type>@*/ to allow access to an abstract type.",
136 0, 0
137 },
138 {
139 FK_ABSTRACT, FK_NONE, modeFlag,
140 "mutrep",
141 FLG_MUTREP,
142 "representation of mutable type has sharing semantics",
143 "LCL semantics requires that a mutable type exhibits sharing semantics. In order for objects to be shared a indirection is necessary in the representation. A mutable type may be represented by a pointer or an abstract mutable type. Handles into static data are fine, too, but will generate this error message unless it is suppressed.",
144 0, 0
145 },
146 {
147 FK_ALIAS, FK_GLOBALS, specialFlag,
148 "globalias",
149 FLG_GLOBALIAS,
150 "function returns with global aliasing external state (sets "
151 "checkstrictglobalias, checkedglobalias, checkmodglobalias and "
152 "uncheckedglobalias)",
153 "A global variable aliases externally-visible state when the function returns.",
154 0, 0
155 },
156 {
157 FK_ALIAS, FK_GLOBALS, modeFlag,
158 "checkstrictglobalias",
159 FLG_CHECKSTRICTGLOBALIAS,
160 "function returns with a checkstrict global aliasing external state",
161 "A global variable aliases externally-visible state when the function returns.",
162 0, 0
163 },
164 {
165 FK_ALIAS, FK_GLOBALS, modeFlag,
166 "checkedglobalias",
167 FLG_CHECKEDGLOBALIAS,
168 "function returns with a checked global aliasing external state",
169 "A global variable aliases externally-visible state when the function returns.",
170 0, 0
171 },
172 {
173 FK_ALIAS, FK_GLOBALS, modeFlag,
174 "checkmodglobalias",
175 FLG_CHECKMODGLOBALIAS,
176 "function returns with a checkmod global aliasing external state",
177 "A global variable aliases externally-visible state when the function returns.",
178 0, 0
179 },
180 {
181 FK_ALIAS, FK_GLOBALS, modeFlag,
182 "uncheckedglobalias",
183 FLG_UNCHECKEDGLOBALIAS,
184 "function returns with an unchecked global aliasing external state",
185 "A global variable aliases externally-visible state when the function returns.",
186 0, 0
187 },
188 {
189 FK_ALIAS, FK_MEMORY, modeFlag,
190 "aliasunique",
191 FLG_ALIASUNIQUE,
192 "unique parameter is aliased",
193 "A unique or only parameter is aliased by some other parameter or visible global.",
194 0, 0
195 },
196 {
197 FK_ALIAS, FK_MEMORY, modeFlag,
198 "mayaliasunique",
199 FLG_MAYALIASUNIQUE,
200 "unique parameter may be aliased",
201 "A unique or only parameter may be aliased by some other parameter or visible global.",
202 0, 0
203 },
204 {
205 FK_ALIAS, FK_MEMORY, modeFlag,
206 "mustnotalias",
207 FLG_MUSTNOTALIAS,
208 "temp storage aliased at return point or scope exit",
209 "An alias has been added to a temp-qualifier parameter or global that is visible externally when the function returns. If the aliasing is needed, use the /*@shared@*/ annotation to indicate that new aliases to the parameter may be created.",
210 0, 0
211 },
212 {
213 FK_ALIAS, FK_NONE, modeFlag,
214 "retalias",
215 FLG_RETALIAS,
216 "function returns alias to parameter or global",
217 "The returned value shares storage with a parameter or global. If a parameter is to be returned, use the returned qualifier. If the result is not modified, use the observer qualifier on the result type. Otherwise, exposed can be used, but limited checking is done.", 0, 0
218 },
219 {
220 FK_ANSI, FK_PROTOS, modeFlag,
221 "noparams",
222 FLG_NOPARAMS,
223 "function declaration has no parameter list",
224 "A function declaration does not have a parameter list.",
225 0, 0
226 },
227 {
228 FK_ANSI, FK_PROTOS, modeFlag,
229 "oldstyle",
230 FLG_OLDSTYLE,
231 "old style function definition",
232 "Function definition is in old style syntax. Standard prototype "
233 "syntax is preferred.",
234 0, 0
235 },
236 {
237 FK_ANSI, FK_SYNTAX, plainFlag,
238 "gnuextensions",
239 FLG_GNUEXTENSIONS,
240 "support some gnu (gcc) language extensions",
990ec868 241 "ANSI C does not allow some language features supported by gcc and other compilers. "
242 "Use +gnuextensions to allow some of these extensions.", 0, 0
28bf4b0b 243 },
244 {
245 FK_ANSI, FK_NONE, plainFlag,
246 "usevarargs",
247 FLG_USEVARARGS,
248 "non-standard <varargs.h> included",
249 "Header <varargs.h> is not part of ANSI Standard. "
250 "Should use <stdarg.h> instead.",
251 0, 0
252 },
253 {
254 FK_ANSI, FK_LIBS, plainFlag,
255 "warnposixheaders",
256 FLG_WARNPOSIX,
257 "a POSIX header is included, but the POSIX library is not used",
258 "Header name matches a POSIX header, but the POSIX library is not selected.",
259 0, 0
260 },
261 {
262 FK_BEHAVIOR, FK_ANSI, modeFlag,
263 "exitarg",
264 FLG_EXITARG,
265 "argument to exit has implementation defined behavior",
266 "The argument to exit should be 0, EXIT_SUCCESS or EXIT_FAILURE",
267 0, 0
268 },
269 {
270 FK_BEHAVIOR, FK_ANSI, modeFlag,
271 "evalorder",
272 FLG_EVALORDER,
273 "code has unspecified or implementation-dependent behavior "
274 "because of order of evaluation",
275 "Code has unspecified behavior. "
276 "Order of evaluation of function parameters or subexpressions "
277 "is not defined, so if a value is used and modified in different "
278 "places not separated by a sequence point constraining "
279 "evaluation order, then the result of the expression is "
280 "unspecified.",
281 0, 0
282 },
283 {
284 FK_BEHAVIOR, FK_ANSI, modeFlag,
285 "evalorderuncon",
286 FLG_EVALORDERUNCON,
287 "code involving call to unspecified function has undefined or implementation-dependent behavior",
288 "Code involving a call to function with no modifies or globals clause "
77d37419 289 "may have undefined or implementation-dependent behavior (Splint assumes the "
28bf4b0b 290 "unconstrained call may modify any reachable state or use any global). Add a "
291 "specification for the function.",
292 0, 0
293 },
294 {
295 FK_BOOL, FK_NONE, regStringFlag,
296 "boolfalse",
297 FLG_BOOLFALSE,
298 "set name of boolean false (default FALSE)",
299 NULL, 0, 0
300 },
301 {
302 FK_BOOL, FK_NONE, regStringFlag,
303 "booltype",
304 FLG_BOOLTYPE,
305 "set name of boolean type (default bool)",
306 NULL, 0, 0
307 },
308 {
309 FK_BOOL, FK_NONE, regStringFlag,
310 "booltrue",
311 FLG_BOOLTRUE,
312 "set name of boolean true (default TRUE)",
313 NULL, 0, 0
314 },
315 {
316 FK_COMMENTS, FK_ABSTRACT, plainFlag,
317 "noaccess",
318 FLG_NOACCESS,
319 "ignore access comments",
320 NULL, 0, 0
321 },
322 {
323 FK_COMMENTS, FK_SUPPRESS, plainFlag,
324 "nocomments",
325 FLG_NOCOMMENTS,
326 "ignore all stylized comments",
327 NULL, 0, 0
328 },
329 {
330 FK_COMMENTS, FK_SYNTAX, plainFlag,
331 "unrecogcomments",
332 FLG_UNRECOGCOMMENTS,
333 "stylized comment is unrecognized",
334 "Word after a stylized comment marker does not correspond to a "
335 "stylized comment.",
336 0, 0
337 },
990ec868 338 {
339 FK_COMMENTS, FK_SYNTAX, plainFlag,
340 "unrecogflagcomments",
341 FLG_UNRECOGFLAGCOMMENTS,
342 "stylized flag comment uses an unrecognized flag",
343 "Semantic comment attempts to set a flag that is not recognized.",
344 0, 0
345 },
28bf4b0b 346 {
347 FK_COMMENTS, FK_SYNTAX, plainFlag,
348 "continuecomment",
349 FLG_CONTINUECOMMENT,
350 "line continuation marker (\\) in comment before */ on same line",
351 "A line continuation marker (\\) appears inside a comment on the same "
352 "line as the comment close. Preprocessors should handle this "
353 "correctly, but it causes problems for some preprocessors.",
354 0, 0
355 },
e5f31c00 356 {
357 FK_COMMENTS, FK_SYNTAX, plainFlag,
358 "slashslashcomment",
359 FLG_SLASHSLASHCOMMENT,
360 "C++ style // comment",
361 "A C++ style // comment is used here. This type of comment has been officially supported in C99 and was often allowed by compiler extensions prior to this. However, some older C89 compilers are not able to handle these comments.",
362 0, 0
363 },
28bf4b0b 364 {
365 FK_COMMENTS, FK_SYNTAX, plainFlag,
366 "nestcomment",
367 FLG_NESTCOMMENT,
368 "comment begins inside comment",
369 "A comment open sequence (/*) appears within a comment. This usually "
370 "means an earlier comment was not closed.",
371 0, 0
372 },
373 {
374 FK_COMMENTS, FK_SUPPRESS, modeFlag,
375 "tmpcomments",
376 FLG_TMPCOMMENTS,
377 "interpret t comments (ignore errors in lines marked with /*@t<n>@*/",
378 NULL, 0, 0
379 },
380 {
381 FK_COMMENTS, FK_SUPPRESS, plainFlag,
382 "lintcomments",
383 FLG_LINTCOMMENTS,
384 "interpret traditional lint comments (/*FALLTHROUGH*/, /*NOTREACHED*/)",
385 NULL, 0, 0
386 },
387 {
388 FK_COMMENTS, FK_SUPPRESS, modeFlag,
389 "warnlintcomments",
390 FLG_WARNLINTCOMMENTS,
391 "print a warning and suggest an alternative when a traditional lint "
392 "comment is used",
393 "A traditional lint comment is used. Some traditional lint comments "
77d37419 394 "are interpreted by Splint to enable easier checking of legacy "
28bf4b0b 395 "code. It is preferable to replace these comments with the "
77d37419 396 "suggested Splint alternative.",
28bf4b0b 397 0, 0
398 },
399 {
400 FK_COMPLETE, FK_NONE, modeFlag,
401 "declundef",
402 FLG_DECLUNDEF,
403 "function or variable declared but never defined",
404 "A function or variable is declared, but not defined in any source code file.",
405 0, 0
406 },
407 {
408 FK_COMPLETE, FK_SPEC, modeFlag,
409 "specundef",
410 FLG_SPECUNDEF,
411 "function or variable specified but never defined",
412 "A function or variable is declared in an .lcl file, but not defined in any source code file.",
413 0, 0
414 },
415 {
416 FK_COMPLETE, FK_SPEC, plainFlag,
417 "specundecl",
418 FLG_SPECUNDECL,
419 "function or variable specified but never declared in a source file",
420 "A function or variable is declared in an .lcl file, but not declared "
421 "in any source code file.",
422 0, 0
423 },
424 {
3e3ec469 425 FK_CONTROL, FK_MEMORY, specialFlag,
28bf4b0b 426 "loopexec",
427 FLG_LOOPEXEC,
3e3ec469 428 "assume all loops execute at least once (sets forloopexec, whileloopexec and iterloopexec)",
429 NULL, 0, 0
430 },
431 {
432 FK_CONTROL, FK_MEMORY, plainFlag,
433 "forloopexec",
434 FLG_FORLOOPEXEC,
435 "assume all for loops execute at least once",
436 NULL, 0, 0
437 },
438 {
439 FK_CONTROL, FK_MEMORY, plainFlag,
440 "whileloopexec",
441 FLG_WHILELOOPEXEC,
442 "assume all while loops execute at least once",
443 NULL, 0, 0
444 },
445 {
446 FK_CONTROL, FK_MEMORY, plainFlag,
447 "iterloopexec",
448 FLG_ITERLOOPEXEC,
449 "assume all iterator loops execute at least once",
450 NULL, 0, 0
451 },
452 {
453 FK_CONTROL, FK_MEMORY, plainFlag,
454 "obviousloopexec",
455 FLG_OBVIOUSLOOPEXEC,
456 "assume loop that can be determined to always execute always does",
28bf4b0b 457 NULL, 0, 0
458 },
459 {
460 FK_CONTROL, FK_NONE, plainFlag,
461 "control",
462 FLG_CONTROL,
463 NULL, NULL,
464 0, 0
465 },
466 {
467 FK_CONTROL, FK_NONE, modeFlag,
468 "infloops",
469 FLG_INFLOOPS,
470 "likely infinite loop is detected",
471 "This appears to be an infinite loop. Nothing in the body of the "
472 "loop or the loop test modifies the value of the loop test. "
473 "Perhaps the specification of a function called in the loop "
474 "body is missing a modification.",
475 0, 0
476 },
477 {
478 FK_CONTROL, FK_NONE, modeFlag,
479 "infloopsuncon",
480 FLG_INFLOOPSUNCON,
481 "likely infinite loop is detected (may result from unconstrained function)",
482 "This appears to be an infinite loop. Nothing in the body of the "
885824d3 483 "loop or the loop test modifies the value of the loop test. "
484 "There may be a modification through a call to an unconstrained "
485 "function, or an unconstrained function in the loop test may use "
486 "a global variable modified by the loop body.",
28bf4b0b 487 0, 0
488 },
489 {
490 FK_CONTROL, FK_NONE, specialFlag,
491 "deepbreak",
492 FLG_DEEPBREAK,
493 "break inside nested while or for or switch",
494 "A break statement appears inside the body of a nested while, for or "
495 "switch statement. Sets looploopbreak, loopswitchbreak, "
496 "switchloopbreak, switchswitchbreak, and looploopcontinue.",
497 0, 0
498 },
499 {
500 FK_CONTROL, FK_NONE, modeFlag,
501 "looploopbreak",
502 FLG_LOOPLOOPBREAK,
503 "break inside nested while or for",
504 "A break statement appears inside the body of a nested while or for "
505 "statement. This is perfectly reasonable code, but check that "
506 "the break is intended to break only the inner loop. The "
507 "break statement may be preceded by /*@innerbreak@*/ to suppress "
508 "the message for this break only.",
509 0, 0
510 },
511 {
512 FK_CONTROL, FK_NONE, modeFlag,
513 "switchloopbreak",
514 FLG_SWITCHLOOPBREAK,
515 "break in loop inside switch",
516 "A break statement appears inside the body of a while or for "
517 "statement within a switch. This is perfectly reasonable code, but check that "
518 "the break is intended to break only the inner loop. The "
519 "break statement may be preceded by /*@loopbreak@*/ to suppress "
520 "the message for this break only.",
521 0, 0
522 },
523 {
524 FK_CONTROL, FK_NONE, modeFlag,
525 "loopswitchbreak",
526 FLG_LOOPSWITCHBREAK,
527 "break in switch inside loop",
528 "A break statement appears inside a switch statement within a while or "
529 "for loop. This is perfectly reasonable code, but check that "
530 "the break is intended to break only the inner loop. The "
531 "break statement may be preceded by /*@switchbreak@*/ to suppress "
532 "the message for this break only.",
533 0, 0
534 },
535 {
536 FK_CONTROL, FK_NONE, modeFlag,
537 "switchswitchbreak",
538 FLG_SWITCHSWITCHBREAK,
539 "break in switch inside switch",
540 "A break statement appears inside a switch statement within another "
541 "switch statement. This is perfectly reasonable code, but check that "
542 "the break is intended to break only the inner switch. The "
543 "break statement may be preceded by /*@innerbreak@*/ to suppress "
544 "the message for this break only.",
545 0, 0
546 },
547 {
548 FK_CONTROL, FK_NONE, modeFlag,
549 "looploopcontinue",
550 FLG_LOOPLOOPCONTINUE,
551 "continue inside nested loop",
552 "A continue statement appears inside a loop within a loop. "
553 "This is perfectly reasonable code, but check that "
554 "the continue is intended to continue only the inner loop. The "
555 "continue statement may be preceded by /*@innercontinue@*/ to suppress "
556 "the message for this continue only.",
557 0, 0
558 },
559 {
560 FK_CONTROL, FK_NONE, modeFlag,
561 "unreachable",
562 FLG_UNREACHABLE,
563 "unreachable code detected",
564 "This code will never be reached on any possible execution.",
565 0, 0
566 },
567 {
568 FK_CONTROL, FK_NONE, modeFlag,
569 "whileempty",
570 FLG_WHILEEMPTY,
571 "a while statement has no body",
572 "While statement has no body.",
573 0, 0
574 },
575 {
576 FK_CONTROL, FK_NONE, modeFlag,
577 "whileblock",
578 FLG_WHILEBLOCK,
579 "the body of a while statement is not a block",
580 "While body is a single statement, not a compound block.",
581 0, 0
582 },
583 {
584 FK_CONTROL, FK_NONE, modeFlag,
585 "forempty",
586 FLG_FOREMPTY,
587 "a for statement has no body",
588 "For statement has no body.",
589 0, 0
590 },
591 {
592 FK_CONTROL, FK_NONE, modeFlag,
593 "forblock",
594 FLG_FORBLOCK,
595 "the body of a for statement is not a block",
596 "Loop body is a single statement, not a compound block.",
597 0, 0
598 },
599 {
600 FK_CONTROL, FK_NONE, modeFlag,
601 "ifempty",
602 FLG_IFEMPTY,
603 "an if statement has no body",
604 "If statement has no body.",
605 0, 0
606 },
607 {
608 FK_CONTROL, FK_NONE, modeFlag,
609 "ifblock",
610 FLG_IFBLOCK,
611 "the body of an if statement is not a block",
612 "If body is a single statement, not a compound block.",
613 0, 0
614 },
615 {
616 FK_CONTROL, FK_NONE, specialFlag,
617 "allempty",
618 FLG_ALLEMPTY,
619 "an if, while or for statement has no body (sets ifempty, "
620 "whileempty and forempty",
621 NULL,
622 0, 0
623 },
624 {
625 FK_CONTROL, FK_NONE, specialFlag,
626 "allblock",
627 FLG_ALLBLOCK,
628 "the body of an if, while or for statement is not a block "
629 "(sets ifblock, whileblock and forblock)",
630 "Body is a single statement, not a compound block.",
631 0, 0
632 },
633 {
634 FK_CONTROL, FK_NONE, modeFlag,
635 "elseifcomplete",
636 FLG_ELSEIFCOMPLETE,
637 "if ... else if chains must have final else",
638 "There is no final else following an else if construct.",
639 0, 0
640 },
641 {
642 FK_CONTROL, FK_NONE, modeFlag,
643 "noret",
644 FLG_NORETURN,
645 "path with no return detected in non-void function",
646 "There is a path through a function declared to return a value on "
647 "which there is no return statement. This means the execution "
648 "may fall through without returning a meaningful result to "
649 "the caller.",
650 0, 0
651 },
652 {
653 FK_CONTROL, FK_NONE, modeFlag,
654 "casebreak",
655 FLG_CASEBREAK,
656 "non-empty case in a switch without preceding break",
657 "Execution falls through from the previous case.", 0, 0
658 },
659 {
660 FK_CONTROL, FK_NONE, modeFlag,
661 "misscase",
662 FLG_MISSCASE,
663 "switch on enum type missing case for some value",
664 "Not all values in an enumeration are present as cases in the switch.",
665 0, 0
666 },
667 {
668 FK_CONTROL, FK_NONE, modeFlag,
669 "firstcase",
670 FLG_FIRSTCASE,
671 "first statement in switch is not a case",
672 "The first statement after a switch is not a case.",
673 0, 0
674 },
675 {
676 FK_DEBUG, FK_NONE, specialDebugFlag,
677 "grammar",
678 FLG_GRAMMAR,
679 NULL, NULL,
680 0, 0
681 },
682 {
683 FK_DEBUG, FK_NONE, debugFlag,
684 "nopp",
685 FLG_NOPP,
686 NULL, NULL,
687 0, 0
688 },
689 {
690 FK_DECL, FK_NONE, modeFlag,
691 "shadow",
692 FLG_SHADOW,
693 "declaration reuses name visible in outer scope",
694 "An outer declaration is shadowed by the local declaration.",
695 0, 0
696 },
697 {
698 FK_DECL, FK_LIBS, modeFlag,
699 "incondefslib",
700 FLG_INCONDEFSLIB,
701 "function, variable or constant defined in a library is redefined with inconsistent type",
702 "A function, variable or constant previously defined in a library is "
703 "redefined with a different type.",
704 0, 0
705 },
706 {
707 FK_DECL, FK_LIBS, modeFlag,
708 "overload",
709 FLG_WARNOVERLOAD,
710 "library function overloaded",
711 "A function, variable or constant defined in the library is redefined "
712 "with a different type.",
713 0, 0
714 },
715 {
716 FK_DECL, FK_NONE, modeFlag,
717 "nestedextern",
718 FLG_NESTEDEXTERN,
719 "an extern declaration is inside a function scope",
720 "An extern declaration is used inside a function scope.",
721 0, 0
885824d3 722 },
28bf4b0b 723 {
724 FK_DECL, FK_NONE, modeFlag,
725 "redecl",
726 FLG_REDECL,
727 "function or variable redeclared",
728 "A function or variable is declared in more than one place. This is "
729 "not necessarily a problem, since the declarations are consistent.",
730 0, 0
885824d3 731 },
28bf4b0b 732 {
733 FK_DECL, FK_NONE, plainFlag,
734 "redef",
735 FLG_REDEF,
736 "function or variable redefined",
737 "A function or variable is redefined. One of the declarations should use extern.",
738 0, 0
739 },
740 {
741 FK_DECL, FK_TYPE, modeFlag,
742 "incondefs",
743 FLG_INCONDEFS,
744 "function, variable or constant redefined with inconsistent type",
745 "A function, variable or constant is redefined with a different type.",
746 0, 0
747 },
748 {
749 FK_DECL, FK_TYPE, modeFlag,
750 "imptype",
751 FLG_IMPTYPE,
752 "variable declaration has unknown (implicitly int) type",
753 "A variable declaration has no explicit type. The type is implicitly int.",
754 0, 0
755 },
756 {
757 FK_DECL, FK_TYPE, modeFlag,
758 "matchfields",
759 FLG_MATCHFIELDS,
760 "struct or enum type redefined with inconsistent fields or members",
761 "A struct, union or enum type is redefined with inconsistent fields or members.",
762 0, 0
763 },
764 {
765 FK_DEF, FK_NONE, modeFlag,
766 "usedef",
767 FLG_USEDEF,
768 "use before definition",
769 "An rvalue is used that may not be initialized to a value on some execution path.",
770 0, 0
771 },
772 {
773 FK_DEF, FK_IMPLICIT, modeFlag,
774 "impouts",
775 FLG_IMPOUTS,
776 "pointer parameters to unspecified functions may be implicit out parameters",
777 NULL, 0, 0
778 },
779 {
780 FK_DIRECT, FK_FILES, globalStringFlag,
781 "tmpdir",
782 FLG_TMPDIR,
783 "set directory for writing temp files",
784 NULL, 0, 0
785 },
786 {
787 FK_DIRECT, FK_FILES, globalStringFlag,
788 "larchpath",
789 FLG_LARCHPATH,
790 "set path for searching for library files (overrides LARCH_PATH environment variable)",
791 NULL, 0, 0
792 },
793 {
794 FK_DIRECT, FK_FILES, globalStringFlag,
795 "lclimportdir",
796 FLG_LCLIMPORTDIR,
797 "set directory to search for LCL import files (overrides LCLIMPORTDIR)",
798 NULL, 0, 0
799 },
800 {
801 FK_DIRECT, FK_FILES, globalStringFlag,
802 "sysdirs",
803 FLG_SYSTEMDIRS,
804 "set directories for system files (default /usr/include). Separate "
7272a1c1 805 "directories with path separator (colons in Unix, semi-colons in Windows). "
28bf4b0b 806 "Flag settings propagate to files in a system directory. If "
807 "-sysdirerrors is set, no errors are reported for files in "
808 "system directories.",
809 NULL, 0, 0
810 },
811 {
812 FK_DIRECT, FK_FILES, plainFlag,
813 "skipansiheaders",
814 FLG_SKIPANSIHEADERS,
815 "prevent inclusion of header files in a system directory with "
885824d3 816 "names that match standard ANSI headers. The symbolic information "
817 "in the standard library is used instead. Flag in effect only "
818 "if a library including the ANSI library is loaded. The ANSI "
819 "headers are: assert, ctype, errno, float, limits, locale, math, "
28bf4b0b 820 "setjmp, signal, stdarg, stddef, stdio, stdlib, strings, string, "
821 "time, and wchar.",
822 NULL, 0, 0
823 },
824 {
825 FK_DIRECT, FK_FILES, plainFlag,
826 "skipposixheaders",
827 FLG_SKIPPOSIXHEADERS,
828 "prevent inclusion of header files in a system directory with "
885824d3 829 "names that match standard POSIX headers. The symbolic information "
830 "in the posix library is used instead. The POSIX headers are: "
28bf4b0b 831 "dirent, fcntl, grp, pwd, termios, sys/stat, sys/times, "
832 "sys/types, sys/utsname, sys/wait, unistd, and utime.",
833 NULL, 0, 0
834 },
835 {
836 FK_DIRECT, FK_SUPPRESS, modeFlag,
837 "sysdirerrors",
838 FLG_SYSTEMDIRERRORS,
839 "report errors in files in system directories (set by -sysdirs)",
840 NULL, 0, 0
841 },
842 {
843 FK_HEADERS, FK_MACROS, plainFlag,
844 "sysdirexpandmacros",
845 FLG_SYSTEMDIREXPAND,
846 "expand macros in system directories regardless of other settings, "
847 "except for macros corresponding to names defined in a load library",
848 NULL, 0, 0
885824d3 849 },
850
28bf4b0b 851 {
852 FK_DIRECT, FK_HEADERS, globalExtraArgFlag,
853 "I<directory>",
854 FLG_INCLUDEPATH,
855 "add to C include path",
856 NULL, 0, 0
857 },
858 {
859 FK_DIRECT, FK_SPEC, globalExtraArgFlag,
860 "S<directory>",
861 FLG_SPECPATH,
862 "add to spec path",
863 NULL, 0, 0
864 },
865 {
866 FK_DISPLAY, FK_ERRORS, plainFlag,
867 "quiet",
868 FLG_QUIET,
869 "suppress herald and error count",
870 NULL, 0, 0
871 },
872 {
873 FK_DISPLAY, FK_ERRORS, plainFlag,
874 "usestderr",
875 FLG_USESTDERR,
876 "send error messages to standard error (instead of standard out)",
877 NULL, 0, 0
878 },
879 {
880 FK_DISPLAY, FK_ERRORS, plainFlag,
881 "showsummary",
882 FLG_SHOWSUMMARY,
883 "show summary of all errors reported and suppressed",
884 NULL, 0, 0
885 },
886 {
887 FK_DISPLAY, FK_FILES, plainFlag,
888 "showscan",
889 FLG_SHOWSCAN,
890 "show file names are they are processed",
891 NULL, 0, 0
892 },
893 {
894 FK_DISPLAY, FK_NONE, globalFlag,
895 "stats",
896 FLG_STATS,
897 "display lines processed and time",
898 NULL, 0, 0
899 },
900 {
901 FK_DISPLAY, FK_NONE, globalFlag,
902 "timedist",
903 FLG_TIMEDIST,
904 "display time distribution",
905 NULL, 0, 0
906 },
907 {
908 FK_DISPLAY, FK_USE, globalFlag,
909 "showalluses",
910 FLG_SHOWUSES,
911 "show sorted list of uses of all globals",
912 NULL, 0, 0
913 },
914 {
915 FK_EFFECT, FK_CONTROL, modeFlag,
916 "noeffect",
917 FLG_NOEFFECT,
918 "statement with no effect",
919 "Statement has no visible effect --- no values are modified.",
920 0, 0
921 },
922 {
923 FK_EFFECT, FK_CONTROL, modeFlag,
924 "noeffectuncon",
925 FLG_NOEFFECTUNCON,
926 "statement with no effect (except possibly through call to "
927 "unconstrained function)",
928 "Statement has no visible effect --- no values are modified. It may "
929 "modify something through a call to an unconstrained function.",
930 0, 0
931 },
932 {
933 FK_EXPORT, FK_SPEC, specialFlag,
934 "exportany",
935 FLG_EXPORTANY,
936 "variable, function or type exported but not specified",
937 "A variable, function or type is exported, but not specified.",
938 0, 0
939 },
940 {
941 FK_EXPORT, FK_SPEC, modeFlag,
942 "exportfcn",
943 FLG_EXPORTFCN,
944 "function exported but not specified",
945 "A function is exported, but not specified.", 0, 0
946 },
947 {
948 FK_EXPORT, FK_SPEC, modeFlag,
949 "exportmacro",
950 FLG_EXPORTMACRO,
951 "expanded macro exported but not specified",
952 "A macro is exported, but not specified.", 0, 0
953 },
954 {
955 FK_EXPORT, FK_SPEC, modeFlag,
956 "exporttype",
957 FLG_EXPORTTYPE,
958 "type definition exported but not specified",
959 "A type is exported, but not specified.", 0, 0
960 },
961 {
962 FK_EXPORT, FK_SPEC, modeFlag,
963 "exportvar",
964 FLG_EXPORTVAR,
965 "variable exported but not specified",
966 "A variable is exported, but not specified.", 0, 0
967 },
968 {
969 FK_EXPORT, FK_SPEC, modeFlag,
970 "exportconst",
971 FLG_EXPORTCONST,
972 "constant exported but not specified",
973 "A constant is exported, but not specified.", 0, 0
974 },
975 {
976 FK_EXPORT, FK_SPEC, modeFlag,
977 "exportiter",
978 FLG_EXPORTITER,
979 "constant exported but not specified",
980 "A constant is exported, but not specified.", 0, 0
981 },
982 {
983 FK_EXPOSURE, FK_ABSTRACT, specialFlag,
984 "repexpose",
985 FLG_REPEXPOSE,
986 "abstract representation is exposed (sets assignexpose, retexpose, and castexpose)",
987 "The internal representation of an abstract type is visible to the "
988 "caller. This means clients may have access to a pointer "
989 "into the abstract representation.",
990 0, 0
991 },
992 {
993 FK_EXPOSURE, FK_ABSTRACT, modeFlag,
994 "retexpose",
995 FLG_RETEXPOSE,
996 "abstract representation is exposed (return values only)",
997 "The return value shares storage with an instance of an abstract "
998 "type. This means clients may have access to a pointer into "
999 "the abstract representation. Use the observer qualifier to "
1000 "return exposed storage that may not be modified by the "
1001 "client. Use the exposed qualifier to return modifiable "
1002 "(but not deallocatable) exposed storage (dangerous).",
1003 0, 0
1004 },
1005 {
1006 FK_EXPOSURE, FK_ABSTRACT, modeFlag,
1007 "assignexpose",
1008 FLG_ASSIGNEXPOSE,
1009 "abstract representation is exposed (assignments only)",
1010 "Storage internal to the representation of an abstract type is "
1011 "assigned to an external pointer. This means clients may "
1012 "have access to a pointer into the abstract representation. "
1013 "If the external pointer is a parameter, the exposed qualifier "
1014 "can be used to allow the assignment, however, this is "
1015 "considered dangerous programming practice.",
1016 0, 0
1017 },
1018 {
1019 FK_EXPOSURE, FK_ABSTRACT, modeFlag,
1020 "castexpose",
1021 FLG_CASTEXPOSE,
1022 "abstract representation is exposed through a cast",
1023 "Storage internal to the representation of an abstract type is exposed "
1024 "through a type cast. This means clients may have access to a "
1025 "pointer into the abstract representation.",
1026 0, 0
885824d3 1027 },
1028
28bf4b0b 1029 {
1030 FK_FORMAT, FK_DISPLAY, valueFlag,
1031 "linelen",
1032 FLG_LINELEN,
1033 "set length of messages (number of chars)",
1034 NULL, 0, 0
1035 },
1036 {
1037 FK_FORMAT, FK_DISPLAY, valueFlag,
1038 "indentspaces",
1039 FLG_INDENTSPACES,
1040 "set number of spaces to indent sub-messages",
1041 NULL, 0, 0
1042 },
1043 {
1044 FK_FORMAT, FK_DISPLAY, plainFlag,
1045 "showcolumn",
1046 FLG_SHOWCOL,
1047 "show column number where error is found",
1048 NULL, 0, 0
1049 },
1050 {
1051 FK_FORMAT, FK_DISPLAY, plainFlag,
1052 "parenfileformat",
1053 FLG_PARENFILEFORMAT,
1054 "show column number where error is found",
1055 NULL, 0, 0
1056 },
1057 {
1058 FK_FORMAT, FK_NONE, plainFlag,
1059 "showfunc",
1060 FLG_SHOWFUNC,
1061 "show name of function containing error",
1062 NULL, 0, 0
1063 },
1064 {
1065 FK_FORMAT, FK_NONE, plainFlag,
1066 "showallconjs",
1067 FLG_SHOWALLCONJS,
1068 "show all possible types",
1069 "When a library function is declared with multiple possible type, the "
1070 "alternate types are shown only if +showallconjs.",
1071 0, 0
1072 },
1073 {
1074 FK_LIBS, FK_NONE, plainFlag,
1075 "impconj",
1076 FLG_IMPCONJ,
1077 "make all alternate types implicit (useful for making system libraries",
1078 NULL, 0, 0
885824d3 1079 } ,
28bf4b0b 1080 {
1081 FK_GLOBAL, FK_ERRORS, globalValueFlag,
1082 "expect",
1083 FLG_EXPECT,
1084 "expect <int> code errors",
1085 NULL, 0, 0
1086 },
1087 {
1088 FK_GLOBAL, FK_ERRORS, globalValueFlag,
1089 "lclexpect",
1090 FLG_LCLEXPECT,
1091 "expect <int> spec errors",
1092 NULL, 0, 0
1093 },
1094 {
1095 FK_GLOBAL, FK_USE, idemSpecialFlag,
1096 "partial",
1097 FLG_PARTIAL,
1098 "check as partial system (-specundef, -declundef, -exportlocal, "
1099 "don't check macros in headers without corresponding .c files)",
1100 NULL, 0, 0
1101 },
1102 {
1103 FK_GLOBALS, FK_SPEC, plainFlag,
1104 "globs",
1105 FLG_GLOBALS,
1106 "undocumented use of a checked global variable",
1107 "A checked global variable is used in the function, but not listed in "
1108 "its globals clause. By default, only globals specified in .lcl "
1109 "files are checked. To check all globals, use +allglobals. To "
1110 "check globals selectively use /*@checked@*/ in the global "
1111 "declaration.",
1112 0, 0
1113 },
1114 {
1115 FK_GLOBALS, FK_SPEC, modeFlag,
1116 "globuse",
1117 FLG_USEALLGLOBS,
1118 "global listed for a function not used",
1119 "A global variable listed in the function's globals list is not used "
1120 "in the body of the function.",
1121 0, 0
1122 },
1123 {
1124 FK_GLOBALS, FK_NONE, modeFlag,
1125 "internalglobs",
1126 FLG_INTERNALGLOBS,
1127 "use of internalState",
1128 "A called function uses internal state, but the globals list for the "
1129 "function being checked does not include internalState",
1130 0, 0
1131 },
1132 {
1133 FK_GLOBALS, FK_NONE, modeFlag,
1134 "internalglobsnoglobs",
1135 FLG_INTERNALGLOBSNOGLOBS,
1136 "use of internalState (in function with no globals list)",
1137 "A called function uses internal state, but the function being checked "
1138 "has no globals list",
1139 0, 0
1140 },
1141 {
1142 FK_GLOBALS, FK_MODIFIES, modeFlag,
1143 "warnmissingglobs",
1144 FLG_WARNMISSINGGLOBALS,
1145 "global variable used in modifies clause is not listed in globals list",
1146 "A global variable is used in the modifies clause, but it not listed in "
1147 "the globals list. The variable will be added to the globals list.",
1148 0, 0
885824d3 1149 },
1150
28bf4b0b 1151 {
1152 FK_GLOBALS, FK_MODIFIES, modeFlag,
1153 "warnmissingglobsnoglobs",
1154 FLG_WARNMISSINGGLOBALSNOGLOBS,
1155 "global variable used in modifies clause in a function with no globals list",
1156 "A global variable is used in the modifies clause, but the function "
1157 "has no globals list. The variable will be added to the globals list.",
1158 0, 0
1159 },
1160 {
1161 FK_GLOBALS, FK_UNSPEC, modeFlag,
1162 "globnoglobs",
1163 FLG_GLOBUNSPEC,
1164 "use of checked global in a function with no globals list or specification",
1165 "A specified global variable is used in the function, but not listed "
1166 "in its globals list. Without +globnoglobs, only globals "
1167 "declared with /*@checkedstrict@*/ will produce use "
1168 "errors in functions without globals "
1169 "lists. The /*@globals ... @*/ control comment can be used to give "
1170 "a globals list for an unspecified function.",
1171 0, 0
1172 },
1173 {
1174 FK_GLOBALS, FK_IMPLICIT, modeFlag,
1175 "allglobs",
1176 FLG_ALLGLOBALS,
1177 "report use and modification errors for globals not annotated with unchecked",
1178 NULL, 0, 0
1179 },
1180 {
1181 FK_GLOBALS, FK_UNSPEC, modeFlag,
1182 "checkstrictglobs",
1183 FLG_CHECKSTRICTGLOBALS,
1184 "report use and modification errors for checkedstrict globals",
1185 NULL, 0, 0
1186 },
1187 {
1188 FK_GLOBALS, FK_UNSPEC, modeFlag,
1189 "impcheckedspecglobs",
1190 FLG_IMPCHECKEDSPECGLOBALS,
1191 "assume checked qualifier for unqualified global declarations in .lcl files",
1192 NULL, 0, 0
1193 },
1194 {
1195 FK_GLOBALS, FK_UNSPEC, modeFlag,
1196 "impcheckmodspecglobs",
1197 FLG_IMPCHECKMODSPECGLOBALS,
1198 "assume checkmod qualifier for unqualified global declarations in .lcl files",
1199 NULL, 0, 0
1200 },
1201 {
1202 FK_GLOBALS, FK_UNSPEC, modeFlag,
1203 "impcheckedstrictspecglobs",
1204 FLG_IMPCHECKEDSTRICTSPECGLOBALS,
1205 "assume checkmod qualifier for unqualified global declarations in .lcl files",
1206 NULL, 0, 0
1207 },
1208 {
1209 FK_GLOBALS, FK_UNSPEC, modeFlag,
1210 "impcheckedglobs",
1211 FLG_IMPCHECKEDGLOBALS,
1212 "assume checked qualifier for unqualified global declarations",
1213 NULL, 0, 0
1214 },
1215 {
1216 FK_GLOBALS, FK_UNSPEC, modeFlag,
1217 "impcheckmodglobs",
1218 FLG_IMPCHECKMODGLOBALS,
1219 "assume checkmod qualifier for unqualified global declarations",
1220 NULL, 0, 0
1221 },
1222 {
1223 FK_GLOBALS, FK_UNSPEC, modeFlag,
1224 "impcheckedstrictglobs",
1225 FLG_IMPCHECKEDSTRICTGLOBALS,
1226 "assume checkedstrict qualifier for unqualified global declarations",
1227 NULL, 0, 0
1228 },
1229 {
1230 FK_GLOBALS, FK_UNSPEC, modeFlag,
1231 "impcheckedstatics",
1232 FLG_IMPCHECKEDSTATICS,
1233 "assume checked qualifier for unqualified file static declarations",
1234 NULL, 0, 0
1235 },
1236 {
1237 FK_GLOBALS, FK_UNSPEC, modeFlag,
1238 "impcheckmodstatics",
1239 FLG_IMPCHECKMODSTATICS,
1240 "assume checkmod qualifier for unqualified file static declarations",
1241 NULL, 0, 0
1242 },
1243 {
1244 FK_GLOBALS, FK_UNSPEC, modeFlag,
1245 "impcheckmodinternals",
1246 FLG_IMPCHECKMODINTERNALS,
1247 "assume checkmod qualifier for unqualified local "
1248 "static declarations (for internal state modifications)",
1249 NULL, 0, 0
1250 },
1251 {
1252 FK_GLOBALS, FK_UNSPEC, modeFlag,
1253 "impcheckedstrictstatics",
1254 FLG_IMPCHECKEDSTRICTSTATICS,
1255 "assume checkedstrict qualifier for unqualified file static declarations",
1256 NULL, 0, 0
1257 },
1258 {
1259 FK_GLOBALS, FK_MODIFIES, modeFlag,
1260 "modglobs",
1261 FLG_MODGLOBS,
1262 "undocumented modification of a checked global variable",
1263 "A checked global variable is modified by the function, but not listed in "
1264 "its modifies clause.",
1265 0, 0
1266 },
1267 {
1268 FK_GLOBALS, FK_MODIFIES, modeFlag,
1269 "modglobsnomods",
1270 FLG_MODGLOBSUNSPEC,
1271 "undocumented modification of a checked global variable in a function "
1272 "declared with no modifies clause",
1273 "A checked global variable is modified by the function, but not listed in "
1274 "its modifies clause.",
1275 0, 0
1276 },
1277 {
1278 FK_GLOBALS, FK_MODIFIES, modeFlag,
1279 "modstrictglobsnomods",
1280 FLG_MODSTRICTGLOBSUNSPEC,
1281 "undocumented modification of a strict checked global variable in a "
1282 "function declared with no modifies clause",
1283 "A checked global variable is modified by the function, but not listed in "
1284 "its modifies clause.",
1285 0, 0
1286 },
1287 {
1288 FK_GLOBALS, FK_MODIFIES, modeFlag,
1289 "modglobsunchecked",
1290 FLG_MODGLOBSUNCHECKED,
1291 "undocumented modification of an unchecked checked global variable",
1292 "An unchecked global variable is modified by the function, but not listed in "
1293 "its modifies clause.",
1294 0, 0
1295 },
1296 {
1297 FK_HEADERS, FK_DEBUG, debugFlag,
1298 "keep",
1299 FLG_KEEP,
1300 NULL, NULL,
1301 0, 0
1302 },
1303 {
1304 FK_HEADERS, FK_SPEC, globalFlag,
1305 "lh",
1306 FLG_DOLH,
1307 "generate .lh files", NULL,
1308 0, 0
1309 },
1310 {
1311 FK_HEADERS, FK_SPEC, globalFlag,
1312 "lcs",
1313 FLG_DOLCS,
1314 "generate .lcs files", NULL,
1315 0, 0
1316 },
1317 {
1318 FK_HEADERS, FK_SPEED, globalFlag,
1319 "singleinclude",
1320 FLG_SINGLEINCLUDE,
1321 "optimize header inclusion to eliminate redundant includes",
1322 "When checking multiple files, each header file is processed only "
1323 "once. This may change the meaning of the code, if the "
1324 "same header file is included in different contexts (e.g., the "
1325 "header file includes #if directives and the values are "
1326 "different when it is included in different places.)",
1327 0, 0
1328 },
1329 {
1330 FK_HEADERS, FK_SPEED, globalFlag,
1331 "neverinclude",
1332 FLG_NEVERINCLUDE,
1333 "optimize header inclusion to not include any header files",
1334 "Ignore header includes. Only works if relevant information is "
1335 "loaded from a library.",
1336 0, 0
1337 },
1338 {
1339 FK_HEADERS, FK_SPEED, globalFlag,
1340 "skipsysheaders",
1341 FLG_SKIPSYSHEADERS,
1342 "do not include header files in system directories (set by -sysdirs)",
1343 "Do not include header files in system directories (set by -sysdirs)",
1344 0, 0
1345 },
1346 {
1347 FK_HELP, FK_NONE, plainFlag,
1348 "warnflags",
1349 FLG_WARNFLAGS,
60868d40 1350 "warn when command line sets flag in abnormal way",
1351 "Command line sets flag in abnormal way",
1352 0, 0
1353 },
1354 {
1355 FK_HELP, FK_NONE, plainFlag,
1356 "warnrc",
1357 FLG_WARNRC,
1358 "warn when there are problems with reading the initialization files",
1359 "There was a problem reading an initialization file",
1360 0, 0
28bf4b0b 1361 },
1362 {
1363 FK_HELP, FK_NONE, plainFlag,
1364 "warnunixlib",
1365 FLG_WARNUNIXLIB,
1366 "warn when the unix library is used",
60868d40 1367 "Unix library may not be compatible with all platforms",
1368 0, 0
28bf4b0b 1369 },
1370 {
1371 FK_HELP, FK_NONE, plainFlag,
1372 "badflag",
1373 FLG_BADFLAG,
ccf0a4a8 1374 "warn about bad command line flags",
1375 "A flag is not recognized or used in an incorrect way",
1376 0, 0
28bf4b0b 1377 },
1378 {
1379 FK_HELP, FK_NONE, plainFlag,
1380 "forcehints",
1381 FLG_FORCEHINTS,
60868d40 1382 "provide a hint for every warnings",
1383 "Provide a hint for every warning",
1384 0, 0
28bf4b0b 1385 },
1386 {
1387 FK_HELP, FK_NONE, globalExtraArgFlag,
1388 "help",
1389 FLG_HELP,
1390 "-help <flags> will describe flags",
60868d40 1391 "Display help",
1392 0, 0
28bf4b0b 1393 },
1394 {
1395 FK_HELP, FK_FORMAT, plainFlag,
1396 "hints",
1397 FLG_HINTS,
60868d40 1398 "provide a hint the first time a particular warning appears",
1399 "Provide a hint the first time a particular warning appears",
1400 0, 0
28bf4b0b 1401 },
1402 {
1403 FK_IGNORERET, FK_NONE, specialFlag,
1404 "retval",
1405 FLG_RETVAL,
1406 "return value ignored (sets retvalint, retvalbool and retvalother)",
1407 "Result returned by function call is not used. If this is intended, "
60868d40 1408 "cast result to (void) to eliminate message.",
28bf4b0b 1409 0, 0
1410 },
1411 {
1412 FK_IGNORERET, FK_BOOL, modeFlag,
1413 "retvalother",
1414 FLG_RETVALOTHER,
1415 "return value of type other than bool or int ignored",
1416 "Result returned by function call is not used. If this is intended, "
60868d40 1417 "can cast result to (void) to eliminate message.",
28bf4b0b 1418 0, 0
1419 },
1420 {
1421 FK_IGNORERET, FK_BOOL, modeFlag,
1422 "retvalbool",
1423 FLG_RETVALBOOL,
1424 "return value of manifest type bool ignored",
1425 "Result returned by function call is not used. If this is intended, "
60868d40 1426 "can cast result to (void) to eliminate message.",
28bf4b0b 1427 0, 0
1428 },
1429 {
1430 FK_IGNORERET, FK_NONE, modeFlag,
1431 "retvalint",
1432 FLG_RETVALINT,
1433 "return value of type int ignored",
1434 "Result returned by function call is not used. If this is intended, "
60868d40 1435 "can cast result to (void) to eliminate message.",
28bf4b0b 1436 0, 0
1437 },
1438 {
1439 FK_INIT, FK_FILES, globalExtraArgFlag,
1440 "f",
1441 FLG_OPTF,
60868d40 1442 "read an options file (default ~/.splintrc not loaded)",
1443 "Read an options file (instead of loading default ~/.splintc)",
1444 0, 0
28bf4b0b 1445 },
1446 {
1447 FK_INIT, FK_FILES, globalExtraArgFlag,
1448 "i",
1449 FLG_INIT,
1450 "set LCL initilization file",
1451 NULL, 0, 0
1452 },
1453 {
1454 FK_INIT, FK_FILES, globalFlag,
1455 "nof",
1456 FLG_NOF,
1457 "do not read options file",
60868d40 1458 "Do not read the default options file (~/.splintrc)",
1459 0, 0
28bf4b0b 1460 },
1461 {
1462 FK_INIT, FK_SPEC, plainFlag,
1463 "needspec",
1464 FLG_NEEDSPEC,
1465 "information in specifications is not also included in syntactic comments",
1466 "There is information in the specification that is not duplicated "
1467 "in syntactic comments. Normally, this is not an "
1468 "error, but it may be useful to detect it to make "
1469 "sure checking incomplete systems without the specifications will "
1470 "still use this information.",
1471 0, 0
1472 },
1473 {
1474 FK_DECL, FK_LIBS, plainFlag,
1475 "newdecl",
1476 FLG_NEWDECL,
1477 "report new global declarations in source files",
1478 "There is a new declaration that is not declared in a loaded library "
1479 "or earlier file. (Use this flag to check for consistency "
1480 "against a library.)",
1481 0, 0
1482 },
1483 {
1484 FK_ITER, FK_NONE, plainFlag,
1485 "iter",
1486 FLG_ITER,
1487 NULL, NULL,
1488 0, 0
1489 },
1490 {
1491 FK_ITER, FK_NONE, plainFlag,
1492 "hasyield",
1493 FLG_HASYIELD,
1494 "iter declaration has no yield parameters",
1495 "An iterator has been declared with no parameters annotated with "
1496 "yield. This may be what you want, if the iterator is meant "
1497 "to do something a fixed number of times, but returns no "
1498 "information to the calling context. Probably, a parameter "
1499 "is missing the yield annotation to indicate that it is "
1500 "assigned a value in the calling context.",
1501 0, 0
1502 },
1503 {
1504 FK_LIBS, FK_FILES, globalStringFlag,
1505 "dump",
1506 FLG_DUMP,
1507 "save state for merging (default suffix .lcd)",
1508 NULL, 0, 0
1509 },
1510 {
1511 FK_LIBS, FK_FILES, globalStringFlag,
1512 "load",
1513 FLG_MERGE,
1514 "load state from dump file (default suffix .lcd)",
1515 NULL, 0, 0
1516 },
1517 {
1518 FK_LIBS, FK_INIT, idemGlobalFlag,
1519 "nolib",
1520 FLG_NOLIB,
1521 "do not load standard library",
1522 NULL, 0, 0
1523 },
1524 {
1525 FK_LIBS, FK_INIT, globalFlag,
27c9e640 1526 "isolib",
28bf4b0b 1527 FLG_ANSILIB,
27c9e640 1528 "use normal standard library",
1529 "Library based on the ISO standard library specification is used.",
28bf4b0b 1530 0, 0
1531 },
1532 {
1533 FK_LIBS, FK_INIT, globalFlag,
1534 "strictlib",
1535 FLG_STRICTLIB,
1536 "interpret standard library strictly",
1537 "Stricter version of the standard library is used. (The default "
1538 "library is standard.lcd; strict library is strict.lcd.)",
1539 0, 0
1540 },
1541 {
1542 FK_LIBS, FK_INIT, globalFlag,
1543 "unixlib",
1544 FLG_UNIXLIB,
1545 "use UNIX (sort-of) standard library",
1546 "UNIX version of the standard library is used.",
1547 0, 0
1548 },
1549 {
1550 FK_LIBS, FK_INIT, globalFlag,
1551 "unixstrictlib",
1552 FLG_UNIXSTRICTLIB,
1553 "use strict version of UNIX (sort-of) library",
1554 "strict version of the UNIX library is used.",
1555 0, 0
1556 },
1557 {
1558 FK_LIBS, FK_INIT, globalFlag,
1559 "posixlib",
1560 FLG_POSIXLIB,
1561 "use POSIX standard library",
1562 "POSIX version of the standard library is used.",
1563 0, 0
1564 },
1565 {
1566 FK_LIBS, FK_INIT, globalFlag,
1567 "posixstrictlib",
1568 FLG_POSIXSTRICTLIB,
1569 "use strict POSIX standard library",
1570 "POSIX version of the strict standard library is used.",
1571 0, 0
1572 },
1573 {
1574 FK_LIBS, FK_INIT, globalFlag,
1575 "whichlib",
1576 FLG_WHICHLIB,
1577 "show standard library filename",
1578 NULL, 0, 0
1579 },
1580 {
1581 FK_LIBS, FK_FILES, globalStringFlag,
1582 "mts",
1583 FLG_MTSFILE,
1584 "load meta state declaration and corresponding xh file",
1585 NULL, 0, 0
1586 },
1587 {
1588 FK_INIT, FK_COMMENTS, valueFlag,
1589 "commentchar",
1590 FLG_COMMENTCHAR,
1591 "set marker character for syntactic comments (default is '@')",
1592 "Set the marker character for syntactic comments. Comments beginning "
77d37419 1593 "with /*<char> are interpreted by Splint, where <char> is the "
28bf4b0b 1594 "comment marker character.",
1595 0, 0
1596 },
1597 {
1598 FK_MACROS, FK_NONE, plainSpecialFlag,
1599 "allmacros",
1600 FLG_ALLMACROS,
1601 "sets fcnmacros and constmacros",
1602 "All macros (not preceded by /*@notfunction@*/) are checked as functions or "
1603 "constants depending on whether or not they have parameter lists.",
885824d3 1604 0, 0
28bf4b0b 1605 },
1606 {
1607 FK_MACROS, FK_NONE, plainFlag,
1608 "libmacros",
1609 FLG_LIBMACROS,
1610 "check all macros with declarations in library as functions",
1611 "Every macro declared in the load library is checked.",
885824d3 1612 0, 0
28bf4b0b 1613 },
1614 {
1615 FK_MACROS, FK_NONE, plainFlag,
1616 "specmacros",
1617 FLG_SPECMACROS,
1618 "check all macros corresponding to specified functions or constants",
1619 "Every macro declared a specification file is checked.",
885824d3 1620 0, 0
28bf4b0b 1621 },
1622 {
1623 FK_MACROS, FK_NONE, plainFlag,
1624 "fcnmacros",
1625 FLG_FCNMACROS,
1626 "check all macros with parameter lists as functions",
1627 "Every parameterized macro (not preceded by /*@notfunction@*/) "
1628 "is checked as a function.",
885824d3 1629 0, 0
28bf4b0b 1630 },
1631 {
1632 FK_MACROS, FK_NONE, plainFlag,
1633 "constmacros",
1634 FLG_CONSTMACROS,
1635 "check all macros without parameter lists as constants",
1636 "Every non-parameterized macro (not preceded by /*@notfunction@*/) "
1637 "is checked as a constant.",
885824d3 1638 0, 0
885824d3 1639 },
28bf4b0b 1640 {
1641 FK_MACROS, FK_NONE, modeFlag,
1642 "macromatchname",
1643 FLG_MACROMATCHNAME,
1644 "macro definition does not match iter or constant declaration",
1645 "A iter or constant macro is defined using a different name from the "
1646 "one used in the previous syntactic comment",
1647 0, 0
1648 },
1649 {
1650 FK_MACROS, FK_NONE, plainFlag,
1651 "nextlinemacros",
1652 FLG_MACRONEXTLINE,
1653 "the line after a constant or iter declaration must be a macro definition",
1654 "A constant or iter declaration is not immediately followed by a macro definition.",
1655 0, 0
1656 },
1657 {
1658 FK_MACROS, FK_NONE, modeFlag,
1659 "macrostmt",
1660 FLG_MACROSTMT,
1661 "macro definition is syntactically not equivalent to function",
1662 "A macro is defined in a way that may cause syntactic problems. If the macro returns a value, use commas to separate expressions; otherwise, use do { <macro body> } while (FALSE) construct.",
1663 0, 0
1664 },
1665 {
1666 FK_MACROS, FK_NONE, modeFlag,
1667 "macroempty",
1668 FLG_MACROEMPTY,
1669 "macro definition for is empty",
1670 "A macro definition has no body.",
1671 0, 0
1672 },
1673 {
1674 FK_MACROS, FK_PARAMS, modeFlag,
1675 "macroparams",
1676 FLG_MACROPARAMS,
1677 "macro parameter not used exactly once",
1678 "A macro parameter is not used exactly once in all possible "
1679 "invocations of the macro. To behave like a function, "
1680 "each macro parameter must be used exactly once on all "
1681 "invocations of the macro so that parameters with "
1682 "side-effects are evaluated exactly once. Use /*@sef@*/ to "
1683 "denote parameters that must be side-effect free.",
1684 0, 0
1685 },
1686 {
1687 FK_MACROS, FK_PARAMS, modeFlag,
1688 "macroassign",
1689 FLG_MACROASSIGN,
1690 "assignment to a macro parameter",
1691 "A macro parameter is used as the left side of an "
1692 "assignment expression. This exhibits behavior that "
1693 "could not be implemented by a function.",
1694 0, 0
1695 },
1696 {
1697 FK_MACROS, FK_PARAMS, modeFlag,
1698 "sefparams",
1699 FLG_SEFPARAMS,
1700 "a parameter with side-effects is passed as a sef parameter",
1701 "An actual parameter corresponding to a sef parameter may have a side-effect.",
1702 0, 0
1703 },
1704 {
1705 FK_MACROS, FK_PARAMS, modeFlag,
1706 "sefuncon",
1707 FLG_SEFUNSPEC,
1708 "a parameter with unconstrained side-effects is passed as a sef parameter",
1709 "An actual parameter corresponding to a sef parameter involves a call "
1710 "to a procedure with no modifies clause that may have a side-effect.",
1711 0, 0
1712 },
1713 {
1714 FK_MACROS, FK_NONE, modeFlag,
1715 "macroparens",
1716 FLG_MACROPARENS,
1717 "macro parameter used without parentheses (in potentially dangerous context)",
1718 "A macro parameter is used without parentheses. This could be "
1719 "dangerous if the macro is invoked with a complex expression "
1720 "and precedence rules will change the evaluation inside the macro.",
1721 0, 0
1722 },
1723 {
1724 FK_MACROS, FK_PROTOS, modeFlag,
1725 "macrodecl",
1726 FLG_MACRODECL,
1727 "macro without prototype or specification (sets macrofcndecl and macroconstdecl)",
1728 "Argument checking cannot be done well for macros without prototypes "
1729 "or specifications, since the types of the arguments are unknown.",
1730 0, 0
1731 },
1732 {
1733 FK_MACROS, FK_PROTOS, modeFlag,
1734 "macrofcndecl",
1735 FLG_MACROFCNDECL,
1736 "parameterized macro without prototype or specification",
1737 "Function macro has no declaration.",
1738 0, 0
1739 },
1740 {
1741 FK_MACROS, FK_PROTOS, modeFlag,
1742 "macroconstdecl",
1743 FLG_MACROCONSTDECL,
1744 "non-parameterized macro without prototype or specification",
1745 "Macro constant has no declaration. Use /*@constant ...@*/ to "
1746 "declare the macro.",
1747 0, 0
1748 },
1749 {
1750 FK_MACROS, FK_NONE, modeFlag,
1751 "macroredef",
1752 FLG_MACROREDEF,
1753 "macro redefined",
1754 "A macro is defined in more than one place.", 0, 0
1755 },
1756 {
1757 FK_MACROS, FK_UNRECOG, modeFlag,
1758 "macrounrecog",
1759 FLG_MACROUNDEF,
1760 "unrecognized identifier in macro",
1761 "An unrecognized identifier appears in a macro. If the identifier "
1762 "is defined before the macro is used, then this is okay.",
1763 0, 0
1764 },
1765 {
1766 FK_MEMORY, FK_DEAD, modeFlag,
1767 "stackref",
1768 FLG_RETSTACK,
1769 "external reference to stack-allocated storage is created",
1770 "A stack reference is pointed to by an external reference when the "
1771 "function returns. The stack-allocated storage is destroyed "
1772 "after the call, leaving a dangling reference.",
1773 0, 0
1774 },
1775 {
1776 FK_MEMORY, FK_DEAD, modeFlag,
1777 "usereleased",
1778 FLG_USERELEASED,
1779 "storage used after release",
1780 "Memory is used after it has been released (either by passing "
55c181ed 1781 "as an only param or assigning to an only global).",
28bf4b0b 1782 0, 0
1783 },
1784 {
1785 FK_MEMORY, FK_DEAD, modeFlag,
1786 "strictusereleased",
1787 FLG_STRICTUSERELEASED,
1788 "element used after it may have been released",
1789 "Memory (through fetch) is used after it may have been released "
55c181ed 1790 "(either by passing as an only param or assigning to an only global).",
28bf4b0b 1791 0, 0
1792 },
1793 {
1794 FK_MEMORY, FK_DEF, modeFlag,
1795 "compdef",
1796 FLG_COMPDEF,
1797 "parameter, return value or global completely defined",
1798 "Storage derivable from a parameter, return value or global is "
1799 "not defined. Use /*@out@*/ to denote passed or returned "
1800 "storage which need not be defined.",
1801 0, 0
1802 },
1803 {
1804 FK_MEMORY, FK_DEF, modeFlag,
1805 "compmempass",
1806 FLG_COMPMEMPASS,
1807 "actual parameter matches alias kind of formal parameter completely ",
1808 "Storage derivable from a parameter does not match the alias kind "
1809 "expected for the formal parameter.",
1810 0, 0
1811 },
1812 {
1813 FK_MEMORY, FK_DEF, modeFlag,
1814 "mustdefine",
1815 FLG_MUSTDEFINE,
1816 "out storage not defined before return or scope exit",
1817 "An out parameter or global is not defined before control is transferred.",
1818 0, 0
1819 },
1820 {
1821 FK_MEMORY, FK_DEF, modeFlag,
1822 "uniondef",
1823 FLG_UNIONDEF,
1824 "at least one field of a union must be defined",
1825 "No field of a union is defined. Generally, one field of a union is "
1826 "expected to be defined.",
1827 0, 0
1828 },
1829 {
1830 FK_MEMORY, FK_IMPLICIT, modeFlag,
1831 "memimp",
1832 FLG_MEMIMPLICIT,
1833 "memory errors for unqualified storage",
1834 NULL, 0, 0
1835 },
1836 {
1837 FK_MEMORY, FK_IMPLICIT, plainFlag,
1838 "paramimptemp",
1839 FLG_PARAMIMPTEMP,
1840 "assume unannotated parameter is temp",
1841 NULL, 0, 0
1842 },
1843 {
1844 FK_MEMORY, FK_IMPLICIT, specialFlag,
1845 "allimponly",
1846 FLG_ALLIMPONLY,
1847 "sets globimponly, retimponly, structimponly, specglobimponly, "
1848 "specretimponly and specstructimponly",
1849 NULL, 0, 0
1850 },
1851 {
1852 FK_MEMORY, FK_IMPLICIT, specialFlag,
1853 "codeimponly",
1854 FLG_CODEIMPONLY,
1855 "sets globimponly, retimponly and structimponly",
1856 NULL, 0, 0
1857 },
1858 {
1859 FK_MEMORY, FK_IMPLICIT, specialFlag,
1860 "specimponly",
1861 FLG_SPECALLIMPONLY,
1862 "sets specglobimponly, specretimponly and specstructimponly",
1863 NULL, 0, 0
1864 },
1865 {
1866 FK_MEMORY, FK_IMPLICIT, plainFlag,
1867 "globimponly",
1868 FLG_GLOBIMPONLY,
1869 "assume unannotated global storage is only",
1870 NULL, 0, 0
1871 },
1872 {
1873 FK_MEMORY, FK_IMPLICIT, plainFlag,
1874 "retimponly",
1875 FLG_RETIMPONLY,
1876 "assume unannotated returned storage is only",
1877 NULL, 0, 0
1878 },
1879 {
1880 FK_MEMORY, FK_IMPLICIT, plainFlag,
1881 "structimponly",
1882 FLG_STRUCTIMPONLY,
1883 "assume unannotated structure field is only",
1884 NULL, 0, 0
1885 },
1886 {
1887 FK_MEMORY, FK_IMPLICIT, plainFlag,
1888 "specglobimponly",
1889 FLG_SPECGLOBIMPONLY,
1890 "assume unannotated global storage is only",
1891 NULL, 0, 0
1892 },
1893 {
1894 FK_MEMORY, FK_IMPLICIT, plainFlag,
1895 "specretimponly",
1896 FLG_SPECRETIMPONLY,
1897 "assume unannotated returned storage is only",
1898 NULL, 0, 0
1899 },
1900 {
1901 FK_MEMORY, FK_IMPLICIT, plainFlag,
1902 "specstructimponly",
1903 FLG_SPECSTRUCTIMPONLY,
1904 "assume unannotated structure field is only",
1905 NULL, 0, 0
1906 },
1907 {
1908 FK_MEMORY, FK_ARRAY, modeFlag,
1909 "deparrays",
1910 FLG_DEPARRAYS,
1911 "array elements are dependent storage",
77d37419 1912 "When an element is fetched from an array, Splint analysis is "
28bf4b0b 1913 "not able to determine if the same element is reused. "
77d37419 1914 "If +deparrays, Splint will mark local storage assigned from "
28bf4b0b 1915 "array fetches as dependent.",
1916 0, 0
1917 },
1918 {
1919 FK_MEMORY, FK_LEAK, modeFlag,
1920 "compdestroy",
1921 FLG_COMPDESTROY,
1922 "all only references derivable from void pointer out only parameter are released",
1923 "A storage leak due to incomplete deallocation of a structure or deep "
1924 "pointer is suspected. Unshared storage that is reachable from "
1925 "a reference that is being deallocated has not yet been deallocated. "
77d37419 1926 "Splint assumes when an object is passed "
28bf4b0b 1927 "as an out only void pointer that the outer object will be "
1928 "deallocated, but the inner objects will not.",
1929 0, 0
1930 },
1931 {
1932 FK_MEMORY, FK_LEAK, modeFlag,
1933 "strictdestroy",
1934 FLG_STRICTDESTROY,
1935 "report complete destruction errors for array elements that "
1936 "may have been released",
1937 NULL,
1938 0, 0
1939 },
1940 {
1941 FK_MEMORY, FK_LEAK, modeFlag,
2e127cb8 1942 "mustfreefresh",
1943 FLG_MUSTFREEFRESH,
1944 "freshly allocated storage not released before return or scope exit",
1945 "A memory leak has been detected. Storage allocated locally "
1946 "is not released before the last reference to it is lost.",
1947 0, 0
1948 },
1949 {
1950 FK_MEMORY, FK_LEAK, modeFlag,
1951 "mustfreeonly",
1952 FLG_MUSTFREEONLY,
28bf4b0b 1953 "only storage not released before return or scope exit",
2e127cb8 1954 "A memory leak has been detected. Only-qualified storage is not released before the last "
28bf4b0b 1955 "reference to it is lost.",
1956 0, 0
1957 },
2e127cb8 1958 {
1959 FK_MEMORY, FK_LEAK, specialFlag,
1960 "mustfree",
1961 FLG_MUSTFREE,
1962 "fresh or only storage not released before return or scope exit (sets mustfreefresh and mustfreeonly)",
1963 "A memory leak has been detected.",
1964 0, 0
1965 },
28bf4b0b 1966 {
1967 FK_MEMORY, FK_NONE, modeFlag,
1968 "branchstate",
1969 FLG_BRANCHSTATE,
1970 "storage has inconsistent states of alternate paths through a branch",
1971 "The state of a variable is different depending on which branch "
1972 "is taken. This means no annotation can sensibly be applied "
1973 "to the storage.",
1974 0, 0
1975 },
1976 {
1977 FK_MEMORY, FK_NONE, modeFlag,
1978 "strictbranchstate",
1979 FLG_STRICTBRANCHSTATE,
1980 "storage through array fetch has inconsistent states of alternate "
1981 "paths through a branch",
1982 "The state of a variable through an array fetch is different depending "
1983 "on which branch is taken. This means no annotation can sensibly be applied "
1984 "to the storage.",
1985 0, 0
1986 },
1987 {
1988 FK_MEMORY, FK_NONE, specialFlag,
1989 "memchecks",
1990 FLG_MEMCHECKS,
1991 "sets all dynamic memory checking flags (memimplicit, mustfree, mustdefine, "
1992 "mustnotalias, null, memtrans)",
1993 NULL, 0, 0
1994 },
1995 {
1996 FK_MEMORY, FK_NONE, specialFlag,
1997 "memtrans",
1998 FLG_MEMTRANS,
1999 "memory transfer errors (sets all *trans flags)",
2000 "Memory is transferred in a way that violates annotations.",
2001 0, 0
2002 },
2003 {
2004 FK_MEMORY, FK_NONE, modeFlag,
2005 "exposetrans",
2006 FLG_EXPOSETRANS,
2007 "exposure transfer errors",
2008 "Exposed storage is transferred to a non-exposed, non-observer reference.",
2009 0, 0
2010 },
2011 {
2012 FK_MEMORY, FK_NONE, modeFlag,
2013 "observertrans",
2014 FLG_OBSERVERTRANS,
2015 "observer transfer errors",
2016 "Observer storage is transferred to a non-observer reference.",
2017 0, 0
2018 },
2019 {
2020 FK_MEMORY, FK_NONE, modeFlag,
2021 "dependenttrans",
2022 FLG_DEPENDENTTRANS,
2023 "dependent transfer errors",
2024 "Dependent storage is transferred to a non-dependent reference.",
2025 0, 0
2026 },
2027 {
2028 FK_MEMORY, FK_NONE, modeFlag,
2029 "newreftrans",
2030 FLG_NEWREFTRANS,
2031 "new reference transfer to reference counted reference",
2032 "A new reference is transferred to a reference counted reference.",
2033 0, 0
2034 },
2035 {
2036 FK_MEMORY, FK_NONE, modeFlag,
2037 "onlytrans",
2038 FLG_ONLYTRANS,
2039 "only storage transferred to non-only reference (memory leak)",
2040 "The only reference to this storage is transferred to another "
2041 "reference (e.g., by returning it) that does not have the "
2042 "only annotation. This may lead to a memory leak, since the "
2043 "new reference is not necessarily released.",
2044 0, 0
2045 },
2046 {
2047 FK_MEMORY, FK_NONE, modeFlag,
2048 "onlyunqglobaltrans",
2049 FLG_ONLYUNQGLOBALTRANS,
2050 "only storage transferred to an unqualified global or "
2051 "static reference (memory leak)",
2052 "The only reference to this storage is transferred to another "
2053 "reference that does not have an aliasing annotation. "
2054 "This may lead to a memory leak, since the "
2055 "new reference is not necessarily released.",
2056 0, 0
2057 },
2058 {
2059 FK_MEMORY, FK_NONE, modeFlag,
2060 "ownedtrans",
2061 FLG_OWNEDTRANS,
2062 "owned storage transferred to non-owned reference (memory leak)",
2063 "The owned reference to this storage is transferred to another "
2064 "reference (e.g., by returning it) that does not have the "
2065 "owned annotation. This may lead to a memory leak, since the "
2066 "new reference is not necessarily released.",
2067 0, 0
2068 },
2069 {
2070 FK_MEMORY, FK_NONE, modeFlag,
2071 "freshtrans",
2072 FLG_FRESHTRANS,
2073 "fresh storage transferred to non-only reference (memory leak)",
2074 "Fresh storage (newly allocated in this function) is transferred "
2075 "in a way that the obligation to release storage is not "
2076 "propagated. Use the /*@only@*/ annotation to indicate "
2077 "the a return value is the only reference to the returned "
2078 "storage.",
2079 0, 0
2080 },
2081 {
2082 FK_MEMORY, FK_NONE, modeFlag,
2083 "sharedtrans",
2084 FLG_SHAREDTRANS,
2085 "shared storage transferred to non-shared reference",
2086 "Shared storage is transferred to a non-shared reference. The other "
2087 "reference may release storage needed by this reference.",
2088 0, 0
2089 },
2090 {
2091 FK_MEMORY, FK_NONE, modeFlag,
2092 "temptrans",
2093 FLG_TEMPTRANS,
2094 "temp storage transferred to non-temporary reference",
2095 "Temp storage (associated with a formal parameter) is transferred "
2096 "to a non-temporary reference. The storage may be released "
2097 "or new aliases created.",
2098 0, 0
2099 },
2100 {
2101 FK_MEMORY, FK_NONE, modeFlag,
2102 "kepttrans",
2103 FLG_KEPTTRANS,
2104 "kept storage transferred to non-temporary reference",
2105 "Kept storage is transferred "
2106 "to a non-temporary reference. The storage may be released "
2107 "or new aliases created.",
2108 0, 0
2109 },
2110 {
2111 FK_MEMORY, FK_NONE, modeFlag,
2112 "keeptrans",
2113 FLG_KEEPTRANS,
2114 "keep storage transferred inconsistently",
2115 "Keep storage is transferred inconsistently --- either in a way "
2116 "that may add a new alias to it, or release it.",
2117 0, 0
2118 },
2119 {
2120 FK_MEMORY, FK_NONE, modeFlag,
2121 "immediatetrans",
2122 FLG_IMMEDIATETRANS,
2123 "an immediate address (result of &) is transferred inconsistently",
2124 "An immediate address (result of & operator) is transferred "
2125 "inconsistently.",
2126 0, 0
2127 },
2128 {
2129 FK_MEMORY, FK_NONE, modeFlag,
2130 "refcounttrans",
2131 FLG_REFCOUNTTRANS,
2132 "reference counted storage is transferred in an inconsistent way",
2133 "Reference counted storage is transferred in a way that may not "
2134 "be consistent with the reference count.",
2135 0, 0
2136 },
2137 {
2138 FK_MEMORY, FK_NONE, modeFlag,
2139 "statictrans",
2140 FLG_STATICTRANS,
2141 "static storage is transferred in an inconsistent way",
2142 "Static storage is transferred in an inconsistent way.",
2143 0, 0
2144 },
2145 {
2146 FK_MEMORY, FK_NONE, modeFlag,
2147 "unqualifiedtrans",
2148 FLG_UNKNOWNTRANS,
2149 "unqualified storage is transferred in an inconsistent way",
2150 "Unqualified storage is transferred in an inconsistent way.",
2151 0, 0
2152 },
2153 {
2154 FK_MEMORY, FK_NONE, modeFlag,
2155 "staticinittrans",
2156 FLG_STATICINITTRANS,
2157 "static storage is used as an initial value in an inconsistent way",
2158 "Static storage is used as an initial value in an inconsistent way.",
2159 0, 0
2160 },
2161 {
2162 FK_MEMORY, FK_NONE, modeFlag,
2163 "unqualifiedinittrans",
2164 FLG_UNKNOWNINITTRANS,
2165 "unqualified storage is used as an initial value in an inconsistent way",
2166 "Unqualified storage is used as an initial value in an inconsistent way.",
2167 0, 0
2168 },
2169 {
2170 FK_MEMORY, FK_NONE, modeFlag,
2171 "readonlystrings",
2172 FLG_READONLYSTRINGS,
2173 "string literals are read-only (error if one is modified or released)",
27c9e640 2174 "String literals are read-only. An error is reported "
28bf4b0b 2175 "if a string literal may be modified or released.",
2176 0, 0
2177 },
2178 {
2179 FK_MEMORY, FK_NONE, modeFlag,
2180 "readonlytrans",
2181 FLG_READONLYTRANS,
2182 "report memory transfer errors for initializations to read-only string literals",
2183 "A read-only string literal is assigned to a non-observer reference.",
2184 0, 0
2185 },
2186 {
2187 FK_MEMORY, FK_PARAMS, modeFlag,
2188 "passunknown",
2189 FLG_PASSUNKNOWN,
2190 "passing a value as an un-annotated parameter clears its annotation",
2191 NULL, 0, 0
2192 },
2193 {
2194 FK_MODIFIES, FK_SPEC, plainFlag,
2195 "mods",
2196 FLG_MODIFIES,
2197 "unspecified modification of caller-visible state",
2198 "An externally-visible object is modified by a function, but not "
2199 "listed in its modifies clause.",
2200 0, 0
2201 },
2202 {
2203 FK_MODIFIES, FK_SPEC, modeFlag,
2204 "mustmod",
2205 FLG_MUSTMOD,
2206 "specified modification is not detected",
2207 "An object listed in the modifies clause is not modified by the "
2208 "implementation of the function. The modification may not "
2209 "be detected if it is done through a call to an unspecified "
2210 "function.",
2211 0, 0
2212 },
2213 {
2214 FK_MODIFIES, FK_MEMORY, plainFlag,
2215 "modobserver",
2216 FLG_MODOBSERVER,
2217 "possible modification of observer storage",
2218 "Storage declared with observer is possibly modified. Observer "
2219 "storage may not be modified.",
2220 0, 0
2221 },
2222 {
2223 FK_MODIFIES, FK_MEMORY, modeFlag,
2224 "modobserveruncon",
2225 FLG_MODOBSERVERUNCON,
2226 "possible modification of observer storage through unconstrained call",
2227 "Storage declared with observer may be modified through a call to an "
2228 "unconstrained function.",
2229 0, 0
2230 },
2231 {
2232 FK_MODIFIES, FK_MEMORY, modeFlag,
2233 "modinternalstrict",
2234 FLG_MODINTERNALSTRICT,
2235 "possible modification of internal storage through function call",
2236 "A function that modifies internalState is called from a function that "
2237 "does not list internalState in its modifies clause",
2238 0, 0
2239 },
2240 {
2241 FK_MODIFIES, FK_UNSPEC, modeFlag,
2242 "modfilesys",
2243 FLG_MODFILESYSTEM,
2244 "report undocumented file system modifications (applies to unspecified "
2245 "functions if modnomods is set)",
2246 NULL, 0, 0
2247 },
2248 {
2249 FK_MODIFIES, FK_UNSPEC, specialFlag,
2250 "modunspec",
2251 FLG_MODUNSPEC,
2252 "modification in unspecified functions (sets modnomods, "
2253 "modglobunspec and modstrictglobsunspec)",
2254 NULL, 0, 0
2255 },
2256 {
2257 FK_MODIFIES, FK_UNSPEC, modeFlag,
2258 "modnomods",
2259 FLG_MODNOMODS,
2260 "modification in a function with no modifies clause",
2261 "An externally-visible object is modified by a function with no "
2262 "/*@modifies@*/ comment. The /*@modifies ... @*/ control "
2263 "comment can be used to give a modifies list for an "
2264 "unspecified function.",
2265 0, 0
2266 },
2267 {
2268 FK_MODIFIES, FK_UNSPEC, modeFlag,
2269 "moduncon",
2270 FLG_MODUNCON,
2271 "possible modification through a call to an unconstrained function",
2272 "An unconstrained function is called in a function body where "
2273 "modifications are checked. Since the unconstrained function "
2274 "may modify anything, there may be undetected modifications in "
2275 "the checked function.",
2276 0, 0
2277 },
2278 {
2279 FK_MODIFIES, FK_UNSPEC, modeFlag,
2280 "modunconnomods",
2281 FLG_MODUNCONNOMODS,
2282 "possible modification through a call to an unconstrained function in "
2283 "a function with no modifies clause",
2284 "An unconstrained function is called in a function body where "
2285 "modifications are checked. Since the unconstrained function "
2286 "may modify anything, there may be undetected modifications in "
2287 "the checked function.",
2288 0, 0
2289 },
2290 {
2291 FK_MODIFIES, FK_GLOBALS, modeFlag,
2292 "globsimpmodsnothing",
2293 FLG_GLOBALSIMPMODIFIESNOTHING,
2294 "functions declared with a globals list but no modifies clause are "
2295 "assumed to modify nothing",
2296 "An implicit modifies nothing clause is assumed for a function "
2297 "declared with a globals list but not modifies clause.",
2298 0, 0
2299 },
2300 {
2301 FK_MODIFIES, FK_GLOBALS, modeFlag,
2302 "modsimpnoglobs",
2303 FLG_MODIFIESIMPNOGLOBALS,
2304 "functions declared with a modifies clause but no globals list "
2305 "are assumed to use no globals",
2306 "An implicit empty globals list is assumed for a function "
2307 "declared with a modifies clause but no globals list.",
2308 0, 0
2309 },
2310 {
2311 FK_NAMES, FK_ABSTRACT, plainFlag,
2312 "namechecks",
2313 FLG_NAMECHECKS,
2314 "controls name checking without changing other settings",
2315 NULL, 0, 0
2316 },
2317 {
2318 FK_NAMES, FK_ABSTRACT, specialFlag,
2319 "czech",
2320 FLG_CZECH,
2321 "czech naming convention (sets accessczech, czechfunctions, czechvars, "
2322 "czechconstants, czechenums, and czechmacros)",
2323 "Name is not consistent with Czech naming convention.", 0, 0
2324 },
2325 {
2326 FK_NAMES, FK_ABSTRACT, plainFlag,
2327 "czechfcns",
2328 FLG_CZECHFUNCTIONS,
2329 "czech naming convention violated in a function or iterator declaration",
2330 "Function or iterator name is not consistent with Czech naming convention.", 0, 0
2331 },
2332 {
2333 FK_NAMES, FK_ABSTRACT, plainFlag,
2334 "czechvars",
2335 FLG_CZECHVARS,
2336 "czech naming convention violated in a variable declaration",
2337 "Variable name is not consistent with Czech naming convention.", 0, 0
2338 },
2339 {
2340 FK_NAMES, FK_ABSTRACT, plainFlag,
2341 "czechmacros",
2342 FLG_CZECHMACROS,
2343 "czech naming convention violated in an expanded macro name",
2344 "Expanded macro name is not consistent with Czech naming convention.", 0, 0
2345 },
2346 {
2347 FK_NAMES, FK_ABSTRACT, plainFlag,
2348 "czechconsts",
2349 FLG_CZECHCONSTANTS,
2350 "czech naming convention violated in a constant declaration",
2351 "Constant name is not consistent with Czech naming convention.", 0, 0
2352 },
2353 {
2354 FK_NAMES, FK_ABSTRACT, plainFlag,
2355 "czechtypes",
2356 FLG_CZECHTYPES,
2357 "czech naming convention violated in a user-defined type definition",
2358 "Type name is not consistent with Czech naming convention. Czech type "
2359 "names must not use the underscore character.", 0, 0
2360 },
2361 {
2362 FK_NAMES, FK_ABSTRACT, specialFlag,
2363 "slovak",
2364 FLG_SLOVAK,
2365 "slovak naming convention violated",
2366 "Name is not consistent with Slovak naming convention.", 0, 0
2367 },
2368 {
2369 FK_NAMES, FK_ABSTRACT, plainFlag,
2370 "slovakfcns",
2371 FLG_SLOVAKFUNCTIONS,
2372 "slovak naming convention violated in a function or iterator declaration",
2373 "Function or iterator name is not consistent with Slovak naming convention.", 0, 0
2374 },
2375 {
2376 FK_NAMES, FK_ABSTRACT, plainFlag,
2377 "slovakmacros",
2378 FLG_SLOVAKMACROS,
2379 "slovak naming convention violated in an expanded macro name",
2380 "Expanded macro name is not consistent with Slovak naming convention.", 0, 0
2381 },
2382 {
2383 FK_NAMES, FK_ABSTRACT, plainFlag,
2384 "slovakvars",
2385 FLG_SLOVAKVARS,
2386 "slovak naming convention violated in a variable declaration",
2387 "Variable name is not consistent with Slovak naming convention.", 0, 0
2388 },
2389 {
2390 FK_NAMES, FK_ABSTRACT, plainFlag,
2391 "slovakconsts",
2392 FLG_SLOVAKCONSTANTS,
2393 "slovak naming convention violated in a constant declaration",
2394 "Constant name is not consistent with Slovak naming convention.", 0, 0
2395 },
2396 {
2397 FK_NAMES, FK_ABSTRACT, plainFlag,
2398 "slovaktypes",
2399 FLG_SLOVAKTYPES,
2400 "slovak naming convention violated in a use-defined type definition",
2401 "Type name is not consistent with Slovak naming convention. Slovak type "
2402 "names may not include uppercase letters.", 0, 0
2403 },
2404 {
2405 FK_NAMES, FK_ABSTRACT, specialFlag,
2406 "czechoslovak",
2407 FLG_CZECHOSLOVAK,
2408 "czech or slovak naming convention violated",
2409 "Name is not consistent with either Czech or Slovak naming convention.", 0, 0
2410 },
2411 {
2412 FK_NAMES, FK_ABSTRACT, plainFlag,
2413 "czechoslovakfcns",
2414 FLG_CZECHOSLOVAKFUNCTIONS,
2415 "czechoslovak naming convention violated in a function or iterator declaration",
2416 "Function name is not consistent with Czechoslovak naming convention.", 0, 0
2417 },
2418 {
2419 FK_NAMES, FK_ABSTRACT, plainFlag,
2420 "czechoslovakmacros",
2421 FLG_CZECHOSLOVAKMACROS,
2422 "czechoslovak naming convention violated in an expanded macro name",
2423 "Expanded macro name is not consistent with Czechoslovak naming convention.", 0, 0
2424 },
2425 {
2426 FK_NAMES, FK_ABSTRACT, plainFlag,
2427 "czechoslovakvars",
2428 FLG_CZECHOSLOVAKVARS,
2429 "czechoslovak naming convention violated in a variable declaration",
2430 "Variable name is not consistent with Czechoslovak naming convention.", 0, 0
2431 },
2432 {
2433 FK_NAMES, FK_ABSTRACT, plainFlag,
2434 "czechoslovakconsts",
2435 FLG_CZECHOSLOVAKCONSTANTS,
2436 "czechoslovak naming convention violated in a constant declaration",
2437 "Constant name is not consistent with Czechoslovak naming convention.", 0, 0
2438 },
2439 {
2440 FK_NAMES, FK_ABSTRACT, plainFlag,
2441 "czechoslovaktypes",
2442 FLG_CZECHOSLOVAKTYPES,
2443 "czechoslovak naming convention violated in a user-defined type definition",
2444 "Type name is not consistent with Czechoslovak naming convention. Czechoslovak "
2445 "type names may not include uppercase letters or the underscore character.", 0, 0
2446 },
2447 {
2448 FK_NAMES, FK_ANSI, modeFlag,
27c9e640 2449 "isoreserved",
28bf4b0b 2450 FLG_ANSIRESERVED,
2451 "external name conflicts with name reserved for system or standard library",
27c9e640 2452 "External name is reserved for system use by ISO C99 standard.",
28bf4b0b 2453 0, 0
2454 },
2455 {
2456 FK_NAMES, FK_ANSI, modeFlag,
2457 "cppnames",
2458 FLG_CPPNAMES,
2459 "external or internal name is a C++ keyword or reserved word",
2460 "External name is a C++ keyword or reserved word. "
2461 "This could lead to problems if the "
2462 "code is compiled with a C++ compiler.",
2463 0, 0
2464 },
2465 {
2466 FK_NAMES, FK_ANSI, modeFlag,
27c9e640 2467 "isoreservedinternal",
28bf4b0b 2468 FLG_ANSIRESERVEDLOCAL,
2469 "internal name conflicts with name reserved for system or standard library",
27c9e640 2470 "Internal name is reserved for system in ISO C99 standard (this should not be necessary unless you are worried about C library implementations that violate the standard and use macros).",
28bf4b0b 2471 0, 0
2472 },
2473 {
2474 FK_NAMES, FK_ANSI, plainFlag,
2475 "distinctexternalnames",
2476 FLG_DISTINCTEXTERNALNAMES,
2477 "external name is not distinguishable from another external name using "
2478 "the number of significant characters",
2479 "An external name is not distinguishable from another external name "
2480 "using the number of significant characters. According to "
2481 "ANSI Standard (3.1), an implementation may only consider the first 6 "
2482 "characters significant, and ignore alphabetical case "
27c9e640 2483 "distinctions (ISO C99 requires 31). The "
28bf4b0b 2484 "+externalnamelen <n> flag may be used to change the number "
2485 "of significant characters, and -externalnamecaseinsensitive to make "
2486 "alphabetical case significant in external names.",
2487 0, 0
2488 },
2489 {
2490 FK_NAMES, FK_ANSI, specialValueFlag,
2491 "externalnamelen",
2492 FLG_EXTERNALNAMELEN,
2493 "set the number of significant characters in an external name",
27c9e640 2494 "Sets the number of significant characters in an external name (default is 6 for old "
2495 "ANSI89 limit, C99 requires 31). "
2496 "Sets +distinctexternalnames.",
28bf4b0b 2497 0, 0
2498 },
2499 {
2500 FK_NAMES, FK_ANSI, plainSpecialFlag,
2501 "externalnamecaseinsensitive",
2502 FLG_EXTERNALNAMECASEINSENSITIVE,
2503 "alphabetic comparisons for external names are case-insensitive",
27c9e640 2504 "Make alphabetic case insignificant in external names. By ANSI89 "
28bf4b0b 2505 "standard, case need not be significant in an external name. "
2506 "If +distinctexternalnames is not set, sets "
2507 "+distinctexternalnames with unlimited external name length.",
2508 0, 0
2509 },
2510 {
2511 FK_NAMES, FK_ANSI, plainFlag,
2512 "distinctinternalnames",
2513 FLG_DISTINCTINTERNALNAMES,
2514 "internal name is not distinguishable from another internal name using "
2515 "the number of significant characters",
2516 "An internal name is not distinguishable from another internal name "
2517 "using the number of significant characters. According to "
27c9e640 2518 "ANSI89 Standard (3.1), an implementation may only consider the first 31 "
2519 "characters significant (ISO C99 specified 63). The "
28bf4b0b 2520 "+internalnamelen <n> flag changes the number "
2521 "of significant characters, -internalnamecaseinsensitive to makes "
2522 "alphabetical case significant, and "
2523 "+internalnamelookalike to make similar-looking characters "
2524 "non-distinct.",
2525 0, 0
2526 },
2527 {
2528 FK_NAMES, FK_ANSI, specialValueFlag,
2529 "internalnamelen",
2530 FLG_INTERNALNAMELEN,
2531 "set the number of significant characters in an internal name",
27c9e640 2532 "Sets the number of significant characters in an internal name (ANSI89 "
28bf4b0b 2533 "default is 31.) Sets +distinctinternalnames.",
2534 0, 0
2535 },
2536 {
2537 FK_NAMES, FK_ANSI, plainSpecialFlag,
2538 "internalnamecaseinsensitive",
2539 FLG_INTERNALNAMECASEINSENSITIVE,
2540 "set whether case is significant an internal names "
2541 "(-internalnamecaseinsensitive means case is significant)" ,
2542 "Set whether case is significant an internal names "
2543 "(-internalnamecaseinsensitive "
27c9e640 2544 "means case is significant). By ANSI89 default, case is not "
28bf4b0b 2545 "significant. If +distinctinternalnames is not set, sets "
2546 "+distinctinternalnames with unlimited internal name length.",
2547 0, 0
2548 },
2549 {
2550 FK_NAMES, FK_ANSI, plainSpecialFlag,
2551 "internalnamelookalike",
2552 FLG_INTERNALNAMELOOKALIKE,
2553 "lookalike characters match in internal names",
2554 "Set whether similar looking characters (e.g., \"1\" and \"l\") "
2555 "match in internal names.",
2556 0, 0
2557 },
2558 {
2559 FK_NAMES, FK_PREFIX, idemStringFlag,
2560 "macrovarprefix",
2561 FLG_MACROVARPREFIX,
2562 "set namespace prefix for variables declared in a macro body",
2563 "A variable declared in a macro body does not start with the macrovarprefix.",
2564 0, 0
2565 } ,
2566 {
2567 FK_NAMES, FK_PREFIX, plainFlag,
2568 "macrovarprefixexclude",
2569 FLG_MACROVARPREFIXEXCLUDE,
2570 "the macrovarprefix may not be used for non-macro variables",
2571 "A variable declared outside a macro body starts with the macrovarprefix.",
2572 0, 0
2573 } ,
2574 {
2575 FK_NAMES, FK_PREFIX, idemStringFlag,
2576 "tagprefix",
2577 FLG_TAGPREFIX,
2578 "set namespace prefix for struct, union and enum tags",
2579 "A tag identifier does not start with the tagprefix.",
2580 0, 0
2581 } ,
2582 {
2583 FK_NAMES, FK_PREFIX, plainFlag,
2584 "tagprefixexclude",
2585 FLG_TAGPREFIXEXCLUDE,
2586 "the tagprefix may not be used for non-tag identifiers",
2587 "An identifier that is not a tag starts with the tagprefix.",
2588 0, 0
2589 } ,
2590 {
2591 FK_NAMES, FK_PREFIX, idemStringFlag,
2592 "enumprefix",
2593 FLG_ENUMPREFIX,
2594 "set namespace prefix for enum members",
2595 "An enum member does not start with the enumprefix.",
2596 0, 0
2597 } ,
2598 {
2599 FK_NAMES, FK_PREFIX, plainFlag,
2600 "enumprefixexclude",
2601 FLG_ENUMPREFIXEXCLUDE,
2602 "the enumprefix may not be used for non-enum member identifiers",
2603 "An identifier that is not an enum member starts with the enumprefix.",
2604 0, 0
2605 } ,
2606 {
2607 FK_NAMES, FK_PREFIX, idemStringFlag,
2608 "filestaticprefix",
2609 FLG_FILESTATICPREFIX,
2610 "set namespace prefix for file static declarations",
2611 "A file-static identifier does not start with the filestaticprefix.",
2612 0, 0
2613 } ,
2614 {
2615 FK_NAMES, FK_PREFIX, plainFlag,
2616 "filestaticprefixexclude",
2617 FLG_FILESTATICPREFIXEXCLUDE,
2618 "the filestaticprefix may not be used for identifiers that are not file static",
2619 "An identifier that is not file static starts with the filestaticprefix.",
2620 0, 0
2621 } ,
2622 {
2623 FK_NAMES, FK_PREFIX, idemStringFlag,
2624 "globalprefix",
2625 FLG_GLOBPREFIX,
2626 "set namespace prefix for global variables",
2627 "A global variable does not start with the globalprefix",
2628 0, 0
2629 } ,
2630 {
2631 FK_NAMES, FK_PREFIX, plainFlag,
2632 "globalprefixexclude",
2633 FLG_GLOBPREFIXEXCLUDE,
2634 "the globalprefix may not be used for non-global identifiers",
2635 "An identifier that is not a global variable starts with the globalprefix.",
2636 0, 0
2637 } ,
2638 {
2639 FK_NAMES, FK_PREFIX, idemStringFlag,
2640 "typeprefix",
2641 FLG_TYPEPREFIX,
2642 "set namespace prefix for user-defined types",
2643 "A user-defined type does not start with the typeprefix",
2644 0, 0
2645 } ,
2646 {
2647 FK_NAMES, FK_PREFIX, plainFlag,
2648 "typeprefixexclude",
2649 FLG_TYPEPREFIXEXCLUDE,
2650 "the typeprefix may not be used for identifiers that are not type names",
2651 "An identifier that is not a type name starts with the typeprefix.",
2652 0, 0
2653 } ,
2654 {
2655 FK_NAMES, FK_PREFIX, idemStringFlag,
2656 "externalprefix",
2657 FLG_EXTERNALPREFIX,
2658 "set namespace prefix for external identifiers",
2659 "An external identifier does not start with the externalprefix",
2660 0, 0
2661 } ,
2662 {
2663 FK_NAMES, FK_PREFIX, plainFlag,
2664 "externalprefixexclude",
2665 FLG_EXTERNALPREFIXEXCLUDE,
2666 "the externalprefix may not be used for non-external identifiers",
2667 "An identifier that is not external starts with the externalprefix.",
2668 0, 0
2669 } ,
2670 {
2671 FK_NAMES, FK_PREFIX, idemStringFlag,
2672 "localprefix",
2673 FLG_LOCALPREFIX,
2674 "set namespace prefix for local variables",
2675 "A local variable does not start with the localprefix",
2676 0, 0
2677 } ,
2678 {
2679 FK_NAMES, FK_PREFIX, plainFlag,
2680 "localprefixexclude",
2681 FLG_LOCALPREFIXEXCLUDE,
2682 "the localprefix may not be used for non-local identifiers",
2683 "An identifier that is not a local variable starts with the localprefix.",
2684 0, 0
2685 } ,
2686 {
2687 FK_NAMES, FK_PREFIX, idemStringFlag,
2688 "uncheckedmacroprefix",
2689 FLG_UNCHECKEDMACROPREFIX,
2690 "set namespace prefix for unchecked macros",
2691 "An unchecked macro name does not start with the uncheckedmacroprefix",
2692 0, 0
2693 } ,
2694 {
2695 FK_NAMES, FK_PREFIX, plainFlag,
2696 "uncheckedmacroprefixexclude",
2697 FLG_UNCHECKEDMACROPREFIXEXCLUDE,
2698 "the uncheckmacroprefix may not be used for identifiers that are not "
2699 "unchecked macros",
2700 "An identifier that is not the name of an unchecked macro "
2701 "starts with the uncheckedmacroprefix.",
2702 0, 0
2703 } ,
2704 {
2705 FK_NAMES, FK_PREFIX, idemStringFlag,
2706 "constprefix",
2707 FLG_CONSTPREFIX,
2708 "set namespace prefix for constants",
2709 "A constant does not start with the constantprefix",
2710 0, 0
2711 } ,
2712 {
2713 FK_NAMES, FK_PREFIX, plainFlag,
2714 "constprefixexclude",
2715 FLG_CONSTPREFIXEXCLUDE,
2716 "the constprefix may not be used for non-constant identifiers",
2717 "An identifier that is not a constant starts with the constantprefix.",
2718 0, 0
2719 } ,
2720 {
2721 FK_NAMES, FK_PREFIX, idemStringFlag,
2722 "iterprefix",
2723 FLG_ITERPREFIX,
2724 "set namespace prefix for iterators",
2725 "An iter does not start with the iterator prefix",
2726 0, 0
2727 } ,
2728 {
2729 FK_NAMES, FK_PREFIX, plainFlag,
2730 "iterprefixexclude",
2731 FLG_ITERPREFIXEXCLUDE,
2732 "the iterprefix may not be used for non-iter identifiers",
2733 "An identifier that is not a iter starts with the iterprefix.",
2734 0, 0
2735 } ,
2736 {
2737 FK_NAMES, FK_PREFIX, idemStringFlag,
2738 "protoparamprefix",
2739 FLG_DECLPARAMPREFIX,
2740 "set namespace prefix for parameters in function prototype declarations",
2741 "A parameter name in a function prototype declaration does not start with the "
2742 "declaration parameter prefix",
2743 0, 0
2744 } ,
2745 {
2746 FK_NAMES, FK_PREFIX, modeFlag,
2747 "protoparamname",
2748 FLG_DECLPARAMNAME,
2749 "a parameter in a function prototype has a name",
2750 "A parameter in a function prototype has a name. This is dangerous, "
2751 "since a macro definition could be visible here.",
2752 0, 0
2753 } ,
2754 {
2755 FK_NAMES, FK_PREFIX, modeFlag,
2756 "protoparammatch",
2757 FLG_DECLPARAMMATCH,
2758 "the name of a parameter in a function prototype and corresponding "
2759 "declaration must match (after removing the protoparamprefix",
2760 "A parameter in a function definition does not have the same name as "
2761 "the corresponding in the declaration of the function after "
2762 "removing the protoparamprefix",
2763 0, 0
2764 } ,
2765 {
2766 FK_NAMES, FK_PREFIX, plainFlag,
2767 "protoparamprefixexclude",
2768 FLG_DECLPARAMPREFIXEXCLUDE,
2769 "the protoparamprefix may not be used for non-declaraction parameter identifiers",
2770 "An identifier that is not a parameter name in a function prototype "
2771 "starts with the protoparamprefix.",
2772 0, 0
2773 } ,
2774 {
2775 FK_LIMITS, FK_ANSI, modeValueFlag,
2776 "controlnestdepth",
2777 FLG_CONTROLNESTDEPTH,
2778 "set maximum nesting depth of compound statements, iteration control "
27c9e640 2779 "structures, and selection control structures (ANSI89 minimum is 15; ISO99 is 63)",
28bf4b0b 2780 "Maximum number of control levels exceeded.",
2781 0, 0
2782 },
2783 {
2784 FK_LIMITS, FK_ANSI, modeValueFlag,
2785 "stringliterallen",
2786 FLG_STRINGLITERALLEN,
27c9e640 2787 "set maximum length of string literals (ANSI89 minimum is 509; ISO99 is 4095)",
28bf4b0b 2788 "Maximum length of string literal exceeded.",
2789 0, 0
2790 },
2791 {
2792 FK_LIMITS, FK_ANSI, modeValueFlag,
2793 "numstructfields",
2794 FLG_NUMSTRUCTFIELDS,
27c9e640 2795 "set maximum number of fields in a struct or union (ANSI89 minimum is 127; ISO99 is 1023)",
28bf4b0b 2796 "Maximum number of fields in a struct or union exceeded.",
2797 0, 0
2798 },
2799 {
2800 FK_LIMITS, FK_ANSI, modeValueFlag,
2801 "numenummembers",
2802 FLG_NUMENUMMEMBERS,
27c9e640 2803 "set maximum number of members of an enum (ANSI89 minimum is 127; ISO99 is 1023)",
28bf4b0b 2804 "Limit on maximum number of members of an enum is exceeded.",
2805 0, 0
2806 },
2807 {
2808 FK_LIMITS, FK_ANSI, modeValueFlag,
2809 "includenest",
2810 FLG_INCLUDENEST,
2811 "set maximum number of nested #include files",
2812 "Maximum number of nested #include files exceeded.",
2813 0, 0
2814 },
2815 {
2816 FK_LIMITS, FK_ANSI, specialFlag,
27c9e640 2817 "ansi89limits",
2818 FLG_ANSI89LIMITS,
28bf4b0b 2819 "check for violations of standard limits (controlnestdepth, "
27c9e640 2820 "stringliterallen, includenest, numstructfields, numenummembers) based on ANSI89 standard",
2821 NULL,
2822 0, 0
2823 },
2824 {
2825 FK_LIMITS, FK_ANSI, specialFlag,
2826 "iso99limits",
2827 FLG_ISO99LIMITS,
2828 "check for violations of standard limits (controlnestdepth, "
2829 "stringliterallen, includenest, numstructfields, numenummembers) based on ISO99 standard",
28bf4b0b 2830 NULL,
2831 0, 0
2832 },
2833 {
2834 FK_NAMES, FK_NONE, plainFlag,
2835 "name",
2836 FLG_NAME,
2837 NULL,
2838 "Naming convention is violated.",
2839 0, 0
2840 },
2841 {
2842 FK_NONE, FK_NONE, plainFlag,
efd360a3 2843 "unclassified",
2844 FLG_UNCLASSIFIED,
28bf4b0b 2845 NULL, NULL,
2846 0, 0
2847 },
2848 {
2849 FK_NULL, FK_MEMORY, specialFlag,
2850 "null",
2851 FLG_NULL,
2852 "misuses of null pointer",
2853 "A possibly null pointer is misused (sets nullderef, nullpass, "
2854 "nullref, nullassign, and nullstate).",
2855 0, 0
2856 },
2857 {
2858 FK_NT, FK_MEMORY, modeFlag,
2859 "nullterminated",
2860 FLG_NULLTERMINATED,
2861 "misuse of nullterminated allocation",
2862 "A possibly non-nullterminated string/memory is used/referenced as a nullterminated one, ",
2863 0, 0
2864 },
2865 {
2866 FK_NT, FK_MEMORY, modeFlag,
2867 "arrayread",
2868 FLG_ARRAYREAD,
2869 "possible out of bounds read",
2870 "An array or pointer access references memory beyond the array or buffer, ",
2871 0, 0
2872 },
2873 {
2874 FK_NT, FK_MEMORY, modeFlag,
2875 "arraywrite",
2876 FLG_ARRAYWRITE,
2877 "possible buffer overflow from an out of bounds write",
2878 "Memory is set past the end of an array or or after the allocated buffer, ",
2879 0, 0
2880 },
2881
2882 {
2883 FK_NT, FK_MEMORY, modeFlag,
2884 "fcnpost",
2885 FLG_FUNCTIONPOST,
2886 "Function has the post condition",
77d37419 2887 "Splint has determined that the following statement is true after the function, ",
28bf4b0b 2888 0, 0
2889 },
a779b61e 2890
2891 {
2892 FK_NT, FK_MEMORY, modeFlag,
2893 "parenconstraint",
2894 FLG_PARENCONSTRAINT,
2895 "parenthesize constraint term",
77d37419 2896 "This flag is for debugging. This flag causes Splint to fully parentheses constraints, ",
a779b61e 2897 0, 0
2898 },
2899
4c02d8be 2900 {
2901 FK_NT, FK_MEMORY, modeFlag,
2902 "debugfcnconstraint",
2903 FLG_DEBUGFUNCTIONCONSTRAINT,
2904 "debuging constraint flas",
77d37419 2905 "This flag is for debuging. It causes Splint to perform buffer overflow checking even if the errors would be surpressed. Normally buffer overflow checking will only be performed if the errors would be printed. ",
4c02d8be 2906 0, 0
2907 },
03d670b6 2908
2909 {
2910 FK_NT, FK_MEMORY, modeFlag,
b9904f57 2911 "arraybounds",
03d670b6 2912 FLG_ARRAYBOUNDS,
2913 "Possible out-of-bounds store. Unable to resolve constraint:",
77d37419 2914 "Splint was unable to resolve a constraint at the top of the function. If code is correct consider using explict annotation assertions, ",
03d670b6 2915 0, 0
2916 },
2917 {
2918 FK_NT, FK_MEMORY, modeFlag,
b9904f57 2919 "arrayboundsread",
03d670b6 2920 FLG_ARRAYBOUNDSREAD,
2921 "Possible out-of-bounds read. Unable to resolve constraint:",
77d37419 2922 "Splint was unable to resolve a constraint at the top of the function. If code is correct consider using explict annotation assertions, ",
03d670b6 2923 0, 0
2924 },
2925
28bf4b0b 2926 {
2927 FK_NT, FK_MEMORY, modeFlag,
2928 "fcnconstraint",
2929 FLG_FUNCTIONCONSTRAINT,
2930 "unresolved constraint",
77d37419 2931 "Splint was unable to resolve a constraint at the top of the function. If code is correct consider using explict annotation assertions, ",
28bf4b0b 2932 0, 0
2933 },
2934 /*drl7x added 6/18/01 */
2935 {
2936 FK_NT, FK_MEMORY, modeFlag,
2937 "checkpost",
2938 FLG_CHECKPOST,
2939 "unable to verify ensures annotation",
77d37419 2940 "Splint was unable to determine that the function satisfies a post condition given in an ensures annotation, ",
28bf4b0b 2941 0, 0
885824d3 2942 },
2943
28bf4b0b 2944 {
2945 FK_NT, FK_MEMORY, modeFlag,
2946 "constraintlocation",
2947 FLG_CONSTRAINTLOCATION,
2948 "display full c expression for every constraint generated",
2949 ", ",
2950 0, 0
2951 },/*drl added flag 4/26/01*/
2952 {
2953 FK_NT, FK_MEMORY, modeFlag,
2954 "implictconstraint",
2955 FLG_IMPLICTCONSTRAINT,
2956 "Try to generate implicit constraints for functions",
2957 ", ",
2958 0, 0
2959 },
2960 /*drl7x added 4/29/01 */
2961 {
2962 FK_NT, FK_MEMORY, modeFlag,
2963 "orconstraint",
2964 FLG_ORCONSTRAINT,
2965 "Use limited OR expressions to resolve constraints",
2966 ", ",
2967 0, 0
2968 },
2969
2970 {
2971 FK_NT, FK_MEMORY, modeFlag,
2972 "nullterminated",
2973 FLG_NULLTERMINATEDWARNING,
2974 "misuse of nullterminated allocation",
2975 "WARNING:A user annotated non-nullterminated buffer is used/referenced as a nullterminated one, ",
2976 0, 0
2977 },
2978 {
2979 FK_NULL, FK_MEMORY, modeFlag,
2980 "nullderef",
2981 FLG_NULLDEREF,
2982 "possible dereferencce of null pointer",
2983 "A possibly null pointer is dereferenced. Value is "
2984 "either the result of a function which may return null "
2985 "(in which case, code should check it is not null), or a "
2986 "global, parameter or structure field declared with the "
2987 "null qualifier.",
2988 0, 0
2989 },
2990 {
2991 FK_TYPE, FK_NONE, modeFlag,
2992 "fcnderef",
2993 FLG_FCNDEREF,
2994 "dereferencce of a function type",
2995 "A function type is dereferenced. The ANSI standard allows this "
2996 "because of implicit conversion of function designators, however the "
2997 "dereference is unnecessary.",
2998 0, 0
2999 },
3000 {
3001 FK_NULL, FK_MEMORY, modeFlag,
3002 "nullpass",
3003 FLG_NULLPASS,
3004 "possibly null pointer passed as formal with no null annotation",
3005 "A possibly null pointer is passed as a parameter corresponding to "
3006 "a formal parameter with no /*@null@*/ annotation. If NULL "
3007 "may be used for this parameter, add a /*@null@*/ annotation "
3008 "to the function parameter declaration.",
3009 0, 0
3010 },
3011 {
3012 FK_NULL, FK_MEMORY, modeFlag,
3013 "nullret",
3014 FLG_NULLRET,
3015 "possibly null pointer returned as result with no null annotation",
3016 "Function returns a possibly null pointer, but is not declared "
3017 "using /*@null@*/ annotation of result. If function may "
3018 "return NULL, add /*@null@*/ annotation to the return "
3019 "value declaration.",
3020 0, 0
3021 },
3022 {
3023 FK_NULL, FK_MEMORY, modeFlag,
3024 "nullstate",
3025 FLG_NULLSTATE,
3026 "possibly null pointer reachable from a reference with no null annotation",
3027 "A possibly null pointer is reachable from a parameter or global "
3028 "variable that is not declared using a /*@null@*/ annotation.",
3029 0, 0
3030 },
3031 {
3032 FK_NULL, FK_MEMORY, modeFlag,
3033 "nullassign",
3034 FLG_NULLASSIGN,
3035 "inconsistent assignment or initialization involving null pointer",
3036 "A reference with no null annotation is assigned or initialized "
3037 "to NULL. Use /*@null@*/ to declare the reference as "
3038 "a possibly null pointer.",
3039 0, 0
3040 },
3041 {
3042 FK_OPS, FK_BOOL, modeFlag,
3043 "boolcompare",
3044 FLG_BOOLCOMPARE,
3045 "comparison between bools (dangerous because of multiple TRUE values)",
3046 "Two bool values are compared directly using a C primitive. This "
3047 "may produce unexpected results since all non-zero values are "
3048 "considered TRUE, so different TRUE values may not be equal. "
77d37419 3049 "The file bool.h (included in splint/lib) provides bool_equal "
28bf4b0b 3050 "for safe bool comparisons.", 0, 0
3051 },
3052 {
3053 FK_OPS, FK_NONE, modeFlag,
3054 "realcompare",
3055 FLG_REALCOMPARE,
3056 "dangerous comparison between reals (dangerous because of inexact "
3057 "floating point representations)",
3058 "Two real (float, double, or long double) values are compared "
3059 "directly using a C primitive. "
3060 "This may produce unexpected results since floating point "
3061 "representations are inexact. Instead, compare the difference to "
3062 "FLT_EPSILON or DBL_EPSILON.",
3063 0, 0,
3064 },
1d239d69 3065 {
3066 FK_OPS, FK_NONE, modeFlag,
3067 "unsignedcompare",
3068 FLG_UNSIGNEDCOMPARE,
3069 "comparison using <, <=, >= between an unsigned integral and zero constant",
3070 "An unsigned value is used in a comparison with zero in a way that is either a bug or confusing.",
3071 0, 0,
3072 },
28bf4b0b 3073 {
3074 FK_OPS, FK_POINTER, modeFlag,
3075 "ptrarith",
3076 FLG_POINTERARITH,
3077 "arithmetic involving pointer and integer",
3078 "Pointer arithmetic using pointer and integer.", 0, 0
3079 },
3080 {
3081 FK_OPS, FK_POINTER, modeFlag,
3082 "nullptrarith",
3083 FLG_NULLPOINTERARITH,
3084 "arithmetic involving possibly null pointer and integer",
3085 "Pointer arithmetic using a possibly null pointer and integer.", 0, 0
3086 },
3087 {
3088 FK_OPS, FK_POINTER, modeFlag,
3089 "ptrcompare",
3090 FLG_PTRNUMCOMPARE,
3091 "comparison between pointer and number",
3092 "A pointer is compared to a number.", 0, 0
3093 },
3094 {
3095 FK_OPS, FK_TYPE, modeFlag,
3096 "strictops",
3097 FLG_STRICTOPS,
3098 "primitive operation does not type check strictly",
3099 "A primitive operation does not type check strictly.", 0, 0
3100 },
3101 {
3102 FK_OPS, FK_TYPE, modeFlag,
3103 "bitwisesigned",
3104 FLG_BITWISEOPS,
3105 "a bitwise logical operator does not have unsigned operands",
3106 "An operand to a bitwise operator is not an unsigned values. This "
3107 "may have unexpected results depending on the signed "
3108 "representations.", 0, 0
3109 },
3110 {
3111 FK_OPS, FK_TYPE, modeFlag,
a956d444 3112 "shiftnegative",
3113 FLG_SHIFTNEGATIVE,
3114 "a shift right operand may be negative",
3115 "The right operand to a shift operator may be negative (behavior undefined).",
3116 0, 0
3117 },
3118 {
3119 FK_OPS, FK_TYPE, modeFlag,
3120 "shiftimplementation",
3121 FLG_SHIFTIMPLEMENTATION,
3122 "a shift left operand may be negative",
3123 "The left operand to a shift operator may be negative (behavior is implementation-defined).",
3124 0, 0
28bf4b0b 3125 },
3126 {
3127 FK_OPS, FK_BOOL, modeFlag,
3128 "boolops",
3129 FLG_BOOLOPS,
3130 "primitive operation (!, && or ||) does not has a boolean argument",
3131 "The operand of a boolean operator is not a boolean. Use +ptrnegate "
3132 "to allow ! to be used on pointers.",
3133 0, 0
3134 },
3135 {
3136 FK_OPS, FK_POINTER, modeFlag,
3137 "ptrnegate",
3138 FLG_PTRNEGATE,
3139 "allow ! to be used on pointer operand",
3140 "The operand of ! operator is a pointer.", 0, 0
3141 },
3142 {
3143 FK_OPS, FK_TYPE, modeFlag,
3144 "sizeoftype",
3145 FLG_SIZEOFTYPE,
3146 "sizeof operator has a type argument",
3147 "Operand of sizeof operator is a type. (Safer to use expression, "
3148 "int *x = sizeof (*x); instead of sizeof (int).)",
3149 0, 0
3150 },
3151 {
3152 FK_OPS, FK_TYPE, plainFlag,
3153 "sizeofformalarray",
3154 FLG_SIZEOFFORMALARRAY,
3155 "sizeof operator has an array formal parameter argument",
3156 "Operand of a sizeof operator is a function parameter declared as "
3157 "an array. The value of sizeof will be the size of a pointer to the "
3158 "element type, not the number of elements in the array.",
3159 0, 0
3160 },
3161 {
3162 FK_DECL, FK_TYPE, plainFlag,
3163 "fixedformalarray",
3164 FLG_FIXEDFORMALARRAY,
3165 "formal parameter of type array is declared with size",
3166 "A formal parameter is declared as an array with size. The size of the array "
3167 "is ignored in this context, since the array formal parameter is treated "
3168 "as a pointer.",
3169 0, 0
3170 },
3171 {
3172 FK_DECL, FK_TYPE, plainFlag,
3173 "incompletetype",
3174 FLG_INCOMPLETETYPE,
3175 "formal parameter has an incomplete type",
3176 "A formal parameter is declared with an incomplete type.",
3177 0, 0
3178 },
3179 {
3180 FK_DECL, FK_TYPE, plainFlag,
3181 "formalarray",
3182 FLG_FORMALARRAY,
3183 "formal parameter is an array",
3184 "A formal parameter is declared as an array. This can be confusing, since "
3185 "a formal array parameter is treated as a pointer.",
3186 0, 0
3187 },
3188 {
3189 FK_PRED, FK_BOOL, plainFlag,
3190 "predassign",
3191 FLG_PREDASSIGN,
3192 "condition test (if, while or for) is an assignment",
3193 "The condition test is an assignment expression. Probably, you mean "
3194 "to use == instead of =. If an assignment is intended, add an "
3195 "extra parentheses nesting (e.g., if ((a = b)) ...) to suppress "
3196 "this message.",
3197 0, 0
3198 },
3199 {
3200 FK_PRED, FK_BOOL, specialFlag,
3201 "predbool",
3202 FLG_PREDBOOL,
3203 "type of condition test (if, while or for) not bool (sets predboolint, "
3204 "predboolptr and predboolothers)",
3205 "Test expression type is not boolean.", 0, 0
3206 },
3207 {
3208 FK_PRED, FK_BOOL, modeFlag,
3209 "predboolint",
3210 FLG_PREDBOOLINT,
3211 "type of condition test (if, while or for) is an integral type",
3212 "Test expression type is not boolean or int.", 0, 0
3213 },
3214 {
3215 FK_PRED, FK_BOOL, modeFlag,
3216 "predboolothers",
3217 FLG_PREDBOOLOTHERS,
3218 "type of condition test (if, while or for) not bool, int or pointer",
3219 "Test expression type is not boolean.", 0, 0
3220 },
3221 {
3222 FK_PRED, FK_BOOL, modeFlag,
3223 "predboolptr",
3224 FLG_PREDBOOLPTR,
3225 "type of condition test (if, while or for) is a pointer",
3226 "Test expression type is not boolean.", 0, 0
3227 },
3228 {
3229 FK_PREPROC, FK_NONE, globalExtraArgFlag,
3230 "D<initializer>",
3231 FLG_DEFINE,
3232 "passed to pre-processor",
3233 NULL, 0, 0
3234 },
3235 {
3236 FK_PREPROC, FK_NONE, globalExtraArgFlag,
3237 "U<initializer>",
3238 FLG_UNDEFINE,
3239 "passed to pre-processor",
3240 NULL, 0, 0
3241 },
4c9767b3 3242 {
3243 FK_PREPROC, FK_SYNTAX, plainFlag,
3244 "unrecognizeddirective",
3245 FLG_UNRECOGDIRECTIVE,
3246 "unrecognized pre-processor directive",
3247 "Pre-processor directive is not recognized.",
3248 0, 0
3249 },
28bf4b0b 3250 {
3251 FK_GLOBALS, FK_NONE, modeFlag,
3252 "globstate",
3253 FLG_GLOBSTATE,
3254 "returns with global in inconsistent state (null or undefined)",
3255 "A global variable does not satisfy its annotations when control is transferred.",
3256 0, 0
3257 },
3258 {
3259 FK_SUPPRESS, FK_COMMENTS, globalFlag,
3260 "supcounts",
3261 FLG_SUPCOUNTS,
3262 "The number of errors detected does not match number in /*@i<n>@*/.",
3263 NULL, 0, 0
3264 },
3265 {
3266 FK_SUPPRESS, FK_ERRORS, valueFlag,
3267 "limit",
3268 FLG_LIMIT,
3269 "limit <int> consecutive repeated errors",
3270 NULL, 0, 0
3271 },
3272 {
3273 FK_SYNTAX, FK_NONE, plainFlag,
3274 "syntax",
3275 FLG_SYNTAX,
3276 "syntax error in parsing",
77d37419 3277 "Code cannot be parsed. For help on parse errors, see splint -help parseerrors.",
28bf4b0b 3278 0, 0
3279 },
3280 {
3281 FK_SYNTAX, FK_NONE, plainFlag,
3282 "trytorecover",
3283 FLG_TRYTORECOVER,
3284 "try to recover from parse error",
4c9767b3 3285 "Try to recover from parse error. It really means try - this doesn't usually work.", 0, 0
28bf4b0b 3286 },
3287 {
3288 FK_SYNTAX, FK_PREPROC, plainFlag,
3289 "preproc",
3290 FLG_PREPROC,
3291 NULL, NULL,
3292 0, 0
3293 },
3294 {
3295 FK_TYPE, FK_NONE, plainFlag,
3296 "type",
3297 FLG_TYPE,
3298 "type mismatch",
3299 "Types are incompatible.",
3300 0, 0
3301 },
3302 {
3303 FK_TYPE, FK_NONE, plainFlag,
3304 "fullinitblock",
3305 FLG_FULLINITBLOCK,
3306 "initializer sets all fields",
3307 "Initializer does not set every field in the structure.",
3308 0, 0
3309 },
7534721d 3310 {
3311 FK_TYPE, FK_NONE, plainFlag,
3312 "initallelements",
3313 FLG_INITALLELEMENTS,
3314 "initializer defines all array elements",
3315 "Initializer does not define all elements of a declared array.",
3316 0, 0
3317 },
3318 {
3319 FK_TYPE, FK_NONE, plainFlag,
3320 "initsize",
3321 FLG_INITSIZE,
3322 "initializer defines extra array elements",
3323 "Initializer block contains more elements than the size of a declared array.",
3324 0, 0
3325 },
3326 {
3327 FK_TYPE, FK_NONE, plainFlag,
3328 "stringliteraltoolong",
3329 FLG_STRINGLITTOOLONG,
3330 "string literal too long for character array",
3331 "A string literal is assigned to a char array too small to hold it.",
3332 0, 0
3333 },
3334 {
3335 FK_TYPE, FK_NONE, modeFlag,
3336 "stringliteralnoroom",
3337 FLG_STRINGLITNOROOM,
3338 "string literal leaves no room for null terminator",
3339 "A string literal is assigned to a char array that is not big enough to hold the null terminator.",
3340 0, 0
3341 },
3342 {
3343 FK_TYPE, FK_NONE, modeFlag,
3344 "stringliteralsmaller",
3345 FLG_STRINGLITSMALLER,
3346 "string literal is smaller than the char array it is assigned to",
3347 "A string literal is assigned to a char array that smaller than the string literal needs.",
3348 0, 0
3349 },
28bf4b0b 3350 {
3351 FK_TYPE, FK_NONE, modeFlag,
3352 "enummembers",
3353 FLG_ENUMMEMBERS,
3354 "enum members must be int values",
3355 "Type of initial values for enum members must be int.",
3356 0, 0
3357 },
885824d3 3358
28bf4b0b 3359 {
3360 FK_TYPE, FK_NONE, plainFlag,
3361 "maintype",
3362 FLG_MAINTYPE,
3363 "type of main does not match expected type",
3364 "The function main does not match the expected type.",
3365 0, 0
3366 },
3367 {
3368 FK_TYPE, FK_NONE, plainFlag,
3369 "formattype",
3370 FLG_FORMATTYPE,
3371 "type-mismatch in parameter corresponding to format code in a printf or scanf-like function",
3372 "Type of parameter is not consistent with corresponding code in format string.",
3373 0, 0
3374 },
3375 {
3376 FK_TYPE, FK_NONE, modeFlag,
3377 "formatconst",
3378 FLG_FORMATCONST,
3379 "format parameter is not a string constant (hence variable arguments cannot be typechecked)",
3380 "Format parameter is not known at compile-time. This can lead to security vulnerabilities because the arguments cannot be type checked.",
3381 0, 0
3382 },
3383 {
3384 FK_TYPE, FK_NONE, plainFlag,
3385 "formatcode",
3386 FLG_FORMATCODE,
3387 "invalid format code in format string for printf or scanf-like function",
3388 "Format code in a format string is not valid.",
3389 0, 0
3390 },
3391 {
3392 FK_TYPEEQ, FK_ABSTRACT, modeFlag,
3393 "forwarddecl",
3394 FLG_FORWARDDECL,
3395 "forward declarations of pointers to abstract representation match abstract type",
3396 NULL, 0, 0
3397 },
3398 {
3399 FK_TYPEEQ, FK_ABSTRACT, modeFlag,
3400 "voidabstract",
3401 FLG_ABSTVOIDP,
3402 "void * matches pointers to abstract types, casting ok (dangerous)",
3403 "A pointer to void is cast to a pointer to an abstract type (or vice versa).",
3404 0, 0
3405 },
3406 {
3407 FK_TYPEEQ, FK_POINTER, plainFlag,
3408 "castfcnptr",
3409 FLG_CASTFCNPTR,
3410 "a pointer to a function is cast to a pointer to void (or vice versa)",
3411 "A pointer to a function is cast to (or used as) a pointer to void (or vice versa).",
3412 0, 0
3413 },
3414 {
3415 FK_TYPEEQ, FK_ARRAY, modeFlag,
3416 "charindex",
3417 FLG_CHARINDEX,
3418 "char can be used to index arrays",
3419 "To allow char types to index arrays, use +charindex.", 0, 0
3420 },
3421 {
3422 FK_TYPEEQ, FK_ARRAY, modeFlag,
3423 "enumindex",
3424 FLG_ENUMINDEX,
3425 "enum can be used to index arrays",
3426 "To allow enum types to index arrays, use +enumindex.", 0, 0
3427 },
3428 {
3429 FK_TYPEEQ, FK_BOOL, modeFlag,
3430 "boolint",
3431 FLG_BOOLINT,
3432 "bool and int are equivalent",
3433 "To make bool and int types equivalent, use +boolint.",
3434 0, 0
3435 },
3436 {
3437 FK_TYPEEQ, FK_NONE, modeFlag,
3438 "charint",
3439 FLG_CHARINT,
3440 "char and int are equivalent",
3441 "To make char and int types equivalent, use +charint.",
3442 0, 0
3443 },
3444 {
3445 FK_TYPEEQ, FK_NONE, modeFlag,
3446 "enumint",
3447 FLG_ENUMINT,
3448 "enum and int are equivalent",
3449 "To make enum and int types equivalent, use +enumint.",
3450 0, 0
3451 },
3452 {
3453 FK_TYPEEQ, FK_NONE, modeFlag,
3454 "floatdouble",
3455 FLG_FLOATDOUBLE,
3456 "float and double are equivalent",
3457 "To make float and double types equivalent, use +floatdouble.",
3458 0, 0
3459 },
3460 {
3461 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3462 "ignorequals",
3463 FLG_IGNOREQUALS,
3464 "ignore type qualifiers (long, short, unsigned)",
3465 "To ignore type qualifiers in type comparisons use +ignorequals.",
3466 0, 0
3467 },
3468 {
3469 FK_TYPEEQ, FK_SYNTAX, plainFlag,
3470 "duplicatequals",
3471 FLG_DUPLICATEQUALS,
3472 "report duplicate type qualifiers (e.g., long long)",
3473 "Duplicate type qualifiers not supported by ANSI. Some "
3474 "compilers (e.g., gcc) do support duplicate qualifiers.",
3475 0, 0
3476 },
3477 {
3478 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3479 "ignoresigns",
3480 FLG_IGNORESIGNS,
3481 "ignore signs in type comparisons (unsigned matches signed)",
3482 "To ignore signs in type comparisons use +ignoresigns",
3483 0, 0
3484 },
3485 {
3486 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3487 "numliteral",
3488 FLG_NUMLITERAL,
3489 "int literals can be reals",
3490 "An int literal is used as any numeric type (including float and long long). Use +numliteral to "
3491 "allow int literals to be used as any numeric type.",
3492 0, 0
3493 },
3494 {
3495 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3496 "charintliteral",
3497 FLG_CHARINTLITERAL,
3498 "character constants (e.g., 'a') can be used as ints",
3499 "A character constant is used as an int. Use +charintliteral to "
3500 "allow character constants to be used as ints. (This is safe "
3501 "since the actual type of a char constant is int.)",
3502 0, 0
3503 },
3504 {
3505 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3506 "relaxquals",
3507 FLG_RELAXQUALS,
3508 "report qualifier mismatches only if dangerous",
990ec868 3509 "To allow qualifier mismatches that are not dangerous, use +relaxquals.", 0, 0
28bf4b0b 3510 },
3511 {
3512 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3513 "relaxtypes",
3514 FLG_RELAXTYPES,
3515 "allow all numeric types to match",
990ec868 3516 "To allow all numeric types to match, use +relaxtypes.", 0, 0
28bf4b0b 3517 },
3518 {
3519 FK_TYPEEQ, FK_NONE, modeFlag,
3520 "charunsignedchar",
3521 FLG_CHARUNSIGNEDCHAR,
3522 "allow char and unsigned char types to match",
3523 "To allow char and unsigned char types to match use +charunsignedchar.",
3524 0, 0
3525 },
3526 {
3527 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3528 "matchanyintegral",
3529 FLG_MATCHANYINTEGRAL,
3530 "allow any intergral type to match an arbitrary integral type (e.g., dev_t)",
3531 "To allow arbitrary integral types to match any integral type, use +matchanyintegral.",
3532 0, 0
3533 },
3534 {
3535 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3536 "longunsignedintegral",
3537 FLG_LONGUNSIGNEDINTEGRAL,
3538 "allow long unsigned type to match an arbitrary integral type (e.g., dev_t)",
3539 "To allow arbitrary integral types to match long unsigned, use +longunsignedintegral.",
3540 0, 0
3541 },
3542 {
3543 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3544 "longintegral",
3545 FLG_LONGINTEGRAL,
3546 "allow long type to match an arbitrary integral type (e.g., dev_t)",
3547 "To allow arbitrary integral types to match long unsigned, use +longintegral.",
3548 0, 0
3549 },
3550 {
3551 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3552 "longunsignedunsignedintegral",
3553 FLG_LONGUNSIGNEDUNSIGNEDINTEGRAL,
3554 "allow long unsigned type to match an arbitrary unsigned integral type (e.g., size_t)",
3555 "To allow arbitrary unsigned integral types to match long unsigned, "
3556 "use +longunsignedunsignedintegral.",
3557 0, 0
3558 },
3559 {
3560 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3561 "longsignedintegral",
3562 FLG_LONGSIGNEDINTEGRAL,
3563 "allow long type to match an arbitrary signed integral type (e.g., ssize_t)",
3564 "To allow arbitrary signed integral types to match long unsigned, use +longsignedintegral.",
3565 0, 0
3566 },
3567 {
3568 FK_TYPEEQ, FK_POINTER, plainFlag,
3569 "zeroptr",
3570 FLG_ZEROPTR,
3571 "0 is treated as a pointer",
3572 NULL, 0, 0
3573 },
3574 {
3575 FK_TYPEEQ, FK_BOOL, modeFlag,
3576 "zerobool",
3577 FLG_ZEROBOOL,
3578 "0 is treated as a boolean",
3579 NULL, 0, 0
3580 },
3581 {
3582 FK_UNRECOG, FK_DISPLAY, plainFlag,
3583 "repeatunrecog",
3584 FLG_REPEATUNRECOG,
3585 "do not suppress repeated unrecognized identifier messages (instead of only reporting the first error)",
3586 "Identifier used in code has not been declared. (Message repeated for future uses in this file.)",
3587 0, 0
3588 },
3589 {
3590 FK_UNRECOG, FK_DISPLAY, plainFlag,
3591 "sysunrecog",
3592 FLG_SYSTEMUNRECOG,
3593 "report unrecognized identifiers with system (__) prefix",
3594 "Identifier used in code has not been declared. (Message repeated for "
77d37419 3595 "future uses in this file.) Use +gnuextensions to make Splint "
28bf4b0b 3596 "recognize some keywords that are gnu extensions.",
3597 0, 0
3598 },
3599 {
3600 FK_UNRECOG, FK_NONE, plainFlag,
3601 "unrecog",
3602 FLG_UNRECOG,
3603 "unrecognized identifier",
3604 "Identifier used in code has not been declared.", 0, 0
3605 },
3606 {
3607 FK_USE, FK_COMPLETE, modeFlag,
3608 "topuse",
3609 FLG_TOPUNUSED,
3610 "declaration at top level not used",
3611 "An external declaration not used in any source file.", 0, 0
3612 },
3613 {
3614 FK_USE, FK_EXPORT, modeFlag,
3615 "exportlocal",
3616 FLG_EXPORTLOCAL,
3617 "a declaration is exported but not used outside this module",
3618 "A declaration is exported, but not used outside this module. "
3619 "Declaration can use static qualifier.",
3620 0, 0
3621 },
3622 {
3623 FK_USE, FK_EXPORT, modeFlag,
3624 "exportheader",
3625 FLG_EXPORTHEADER,
3626 "a declaration is exported but does not appear in a header file",
3627 "A declaration is exported, but does not appear in a header file.",
3628 0, 0
3629 },
3630 {
3631 FK_USE, FK_EXPORT, modeFlag,
3632 "exportheadervar",
3633 FLG_EXPORTHEADERVAR,
3634 "a variable declaration is exported but does not appear in a header file",
3635 "A variable declaration is exported, but does not appear in a header "
3636 "file. (Used with exportheader.)",
3637 0, 0
3638 },
3639 {
3640 FK_USE, FK_NONE, modeFlag,
3641 "fielduse",
3642 FLG_FIELDUNUSED,
3643 "field of structure type not used",
3644 "A field is present in a structure type but never used. Use /*@unused@*/ in front of field declaration to suppress message.",
3645 0, 0
3646 },
3647 {
3648 FK_USE, FK_NONE, modeFlag,
3649 "enummemuse",
3650 FLG_ENUMMEMUNUSED,
3651 "member of an enum type not used",
3652 "A member of an enum type is never used.",
3653 0, 0
3654 },
3655 {
3656 FK_USE, FK_NONE, modeFlag,
3657 "constuse",
3658 FLG_CONSTUNUSED,
3659 "constant declared but not used",
3660 "A constant is declared but not used. Use unused in the constant declaration to suppress message.",
3661 0, 0
3662 },
3663 {
3664 FK_USE, FK_NONE, modeFlag,
3665 "fcnuse",
3666 FLG_FUNCUNUSED,
3667 "function declared but not used",
3668 "A function is declared but not used. Use /*@unused@*/ in front of function header to suppress message.",
3669 0, 0
3670 },
3671 {
3672 FK_USE, FK_PARAMS, modeFlag,
3673 "paramuse",
3674 FLG_PARAMUNUSED,
3675 "function parameter not used ",
3676 "A function parameter is not used in the body of the function. If the argument is needed for type compatibility or future plans, use /*@unused@*/ in the argument declaration.",
3677 0, 0
3678 },
3679 {
3680 FK_USE, FK_TYPE, modeFlag,
3681 "typeuse",
3682 FLG_TYPEUNUSED,
3683 "type declared but not used",
3684 "A type is declared but not used. Use /*@unused@*/ in front of typedef to suppress messages.",
3685 0, 0
3686 },
3687 {
3688 FK_USE, FK_NONE, modeFlag,
3689 "varuse",
3690 FLG_VARUNUSED,
3691 "variable declared but not used",
3692 "A variable is declared but never used. Use /*@unused@*/ in front "
3693 "of declaration to suppress message.",
3694 0, 0
3695 },
3696 {
3697 FK_USE, FK_COMPLETE, modeFlag,
3698 "unusedspecial",
3699 FLG_UNUSEDSPECIAL,
3700 "unused declaration in special file (corresponding to .l or .y file)",
3701 NULL, 0, 0
3702 } ,
3703 {
3704 FK_DECL, FK_TYPE, modeFlag,
3705 "redundantsharequal",
3706 FLG_REDUNDANTSHAREQUAL,
3707 "declaration uses observer qualifier that is always true",
3708 "A declaration of an immutable object uses a redundant observer qualifier.",
3709 0, 0
3710 } ,
3711 {
3712 FK_DECL, FK_TYPE, modeFlag,
3713 "misplacedsharequal",
3714 FLG_MISPLACEDSHAREQUAL,
3715 "declaration of unsharable storage uses sharing annotation",
3716 "A declaration of an unsharable object uses a sharing annotation.",
3717 0, 0
3718 } ,
3719 {
3720 FK_DECL, FK_TYPE, plainFlag,
3721 "annotationerror",
3722 FLG_ANNOTATIONERROR,
3723 "annotation is used in inconsistent location",
3724 "A declaration uses an invalid annotation.",
3725 0, 0
3726 } ,
3727 {
3728 FK_DECL, FK_TYPE, plainFlag,
3729 "commenterror",
3730 FLG_COMMENTERROR,
3731 "inconsistent syntactic comment",
3732 "A syntactic comment is used inconsistently.",
3733 0, 0
3734 } ,
3735 {
3736 FK_DEBUG, FK_NONE, debugFlag,
3737 "showsourceloc",
3738 FLG_SHOWSOURCELOC,
3739 NULL, NULL,
3740 0, 0
3741 },
3742 {
3743 FK_DEBUG, FK_NONE, valueFlag,
3744 "bugslimit",
3745 FLG_BUGSLIMIT,
3746 "set maximum number of bugs detected before giving up",
3747 NULL, 0, 0
3748 },
885824d3 3749
28bf4b0b 3750 {
3751 FK_HELP, FK_NONE, plainFlag,
3752 "fileextensions",
3753 FLG_FILEEXTENSIONS,
3754 "warn when command line file does not have a recognized extension",
3755 NULL, 0, 0
3756 },
3757 {
3758 FK_DECL, FK_NONE, plainFlag,
3759 "warnuse",
3760 FLG_WARNUSE,
3761 "warn when declaration marked with warn is used",
3762 "Declaration marked with warn clause is used (can be suppresed by more specific flags).",
3763 0, 0
3764 },
3765 {
3766 FK_MEMORY, FK_DEF, modeFlag,
3767 "statetransfer",
3768 FLG_STATETRANSFER,
3769 "storage has been transfered with invalid state",
3770 "Transfer violates user-defined state rules.",
3771 0, 0
3772 },
3773 {
3774 FK_MEMORY, FK_DEF, modeFlag,
3775 "statemerge",
3776 FLG_STATEMERGE,
3777 "control paths merge with storage in incompatible states",
3778 "Control path merge violates user-defined state merge rules.",
3779 0, 0
3780 },
885824d3 3781
28bf4b0b 3782 /*
3783 ** The its4 level flags must appear in order.
3784 */
885824d3 3785
28bf4b0b 3786 {
3787 FK_WARNUSE, FK_SECURITY, specialFlag,
3788 "its4mostrisky",
3789 FLG_ITS4MOSTRISKY,
3790 "most risky security vulnerabilities (from its4 database)",
3791 "Security vulnerability classified as most risky in its4 database.",
3792 0, 0
3793 },
3794 {
3795 FK_WARNUSE, FK_SECURITY, specialFlag,
3796 "its4veryrisky",
3797 FLG_ITS4VERYRISKY,
3798 "very risky security vulnerabilities (from its4 database)",
3799 "Security vulnerability classified as very risky in its4 database.",
3800 0, 0
3801 },
3802 {
3803 FK_WARNUSE, FK_SECURITY, specialFlag,
3804 "its4risky",
3805 FLG_ITS4RISKY,
3806 "risky security vulnerabilities (from its4 database)",
3807 "Security vulnerability classified as risky in its4 database.",
3808 0, 0
3809 },
3810 {
3811 FK_WARNUSE, FK_SECURITY, specialFlag,
3812 "its4moderate",
3813 FLG_ITS4MODERATERISK,
3814 "moderately risky security vulnerabilities (from its4 database)",
3815 "Security vulnerability classified as moderate risk in its4 database.",
3816 0, 0
3817 },
3818 {
3819 FK_WARNUSE, FK_SECURITY, specialFlag,
3820 "its4low",
3821 FLG_ITS4LOWRISK,
3822 "risky security vulnerabilities (from its4 database)",
3823 "Security vulnerability classified as risky in its4 database.",
3824 0, 0
3825 },
885824d3 3826
28bf4b0b 3827 /*
3828 ** End of its4 level flags
3829 */
885824d3 3830
28bf4b0b 3831 {
3832 FK_WARNUSE, FK_SECURITY, modeFlag,
3833 "bufferoverflowhigh",
3834 FLG_BUFFEROVERFLOWHIGH,
3835 "likely buffer overflow vulnerability",
3836 "Use of function that may lead to buffer overflow.",
3837 0, 0
3838 },
3839 {
3840 FK_WARNUSE, FK_SECURITY, modeFlag,
3841 "bufferoverflow",
3842 FLG_BUFFEROVERFLOW,
3843 "possible buffer overflow vulnerability",
3844 "Use of function that may lead to buffer overflow.",
3845 0, 0
3846 },
3847 {
3848 FK_WARNUSE, FK_SECURITY, modeFlag,
3849 "toctou",
3850 FLG_TOCTOU,
3851 "possible time of check, time of use vulnerability",
3852 "Possible time of check, time of use vulnerability.",
3853 0, 0
3854 },
7272a1c1 3855 {
3856 FK_WARNUSE, FK_SECURITY, modeFlag,
3857 "multithreaded",
3858 FLG_MULTITHREADED,
3859 "function is not reentrant",
3860 "Non-reentrant function should not be used in multithreaded code.",
3861 0, 0
3862 },
1d239d69 3863 {
3864 FK_WARNUSE, FK_SECURITY, modeFlag,
3865 "portability",
3866 FLG_PORTABILITY,
3867 "function may have undefined behavior",
3868 "Use of function that may have implementation-dependent behavior.",
3869 0, 0
3870 },
3871 {
3872 FK_WARNUSE, FK_SECURITY, modeFlag,
3873 "unixstandard",
3874 FLG_UNIXSTANDARD,
3875 "function is not required in Standard UNIX Specification",
3876 "Use of function that need not be provided by UNIX implementations",
3877 0, 0
3878 },
7272a1c1 3879 {
3880 FK_WARNUSE, FK_SECURITY, modeFlag,
3881 "superuser",
3882 FLG_SUPERUSER,
3883 "function is restricted to superusers",
3884 "Call to function restricted to superusers.",
3885 0, 0
3886 },
e83c79ec 3887 {
3888 FK_WARNUSE, FK_SECURITY, modeFlag,
3889 "implementationoptional",
3890 FLG_IMPLEMENTATIONOPTIONAL,
3891 "declarator is implementation optional (ISO99 does not require an implementation to provide it)",
b7e84605 3892 "Use of a declarator that is implementation optional, not required by ISO99.",
e83c79ec 3893 0, 0
3894 },
79127b5d 3895 {
3896 FK_WARNUSE, FK_NONE, modeFlag,
3897 "legacy",
3898 FLG_LEGACY,
3899 "legacy declaration in Unix Standard",
3900 "Use of a declarator that is marked as a legacy entry in the Unix Standard.",
3901 0, 0
3902 },
885824d3 3903
28bf4b0b 3904} ;
This page took 0.712748 seconds and 5 git commands to generate.