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