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