5 ** This file is used to generate the flag header files.
7 ** Don't forget to regenerate flag_codes.gen. (lost the Makefile...bleech!)
9 /* spec idem global mode args */
12 # define modeFlag FALSE, FALSE, FALSE, TRUE, ARG_NONE
14 # define plainFlag FALSE, FALSE, FALSE, FALSE, ARG_NONE
16 # define specialFlag TRUE, FALSE, FALSE, FALSE, ARG_NONE
18 # define plainSpecialFlag TRUE, FALSE, FALSE, FALSE, ARG_NONE
20 # define idemSpecialFlag TRUE, TRUE, FALSE, FALSE, ARG_NONE
22 # define valueFlag FALSE, FALSE, FALSE, FALSE, ARG_NUMBER
25 # define charFlag FALSE, FALSE, FALSE, FALSE, ARG_CHAR
28 # define modeValueFlag FALSE, FALSE, FALSE, TRUE, ARG_NUMBER
30 # define specialValueFlag TRUE, FALSE, FALSE, FALSE, ARG_NUMBER
32 # define debugFlag FALSE, TRUE, FALSE, FALSE, ARG_NONE
34 # define debugValueFlag FALSE, TRUE, FALSE, FALSE, ARG_NUMBER
36 # define specialDebugFlag TRUE, TRUE, FALSE, FALSE, ARG_NONE
38 # define globalFlag FALSE, FALSE, TRUE, FALSE, ARG_NONE
40 # define idemGlobalFlag FALSE, TRUE, TRUE, FALSE, ARG_NONE
42 # define globalValueFlag FALSE, FALSE, TRUE, FALSE, ARG_NUMBER
44 /* Note: type argument missing */
46 # define regStringFlag FALSE, FALSE, FALSE, FALSE
48 # define idemStringFlag FALSE, TRUE, FALSE, FALSE
50 # define globalStringFlag FALSE, FALSE, TRUE, FALSE
53 # define extraArgFlag FALSE, FALSE, FALSE, FALSE, ARG_SPECIAL
55 # define globalExtraArgFlag FALSE, FALSE, TRUE, FALSE, ARG_SPECIAL
57 # define globalFileFlag FALSE, FALSE, TRUE, FALSE, ARG_FILE
61 ** Note: the flag code must be on a separate line, since I'm
62 ** too stupid to write an awk/sed/whatever script that can separate
66 static flaglist flags =
69 FK_BOOL, FK_HELP, plainFlag,
72 "type name is probably a boolean type but does not match default "
73 "boolean type name, \"bool\", and alternate name is not set",
74 "Use the -booltype, -boolfalse and -booltrue flags to change the "
75 "name of the default boolean type.",
79 FK_ABSTRACT, FK_IMPLICIT, plainFlag,
82 "assume user type definitions are abstract (unless /*@concrete@*/ is used)",
87 FK_ABSTRACT, FK_NAMES, specialFlag,
90 "set accessmodule, accessfile and accessczech",
91 "Sets accessmodule, accessfile and accessczech",
95 FK_ABSTRACT, FK_NAMES, plainFlag,
98 "allow access to abstract types in definition module",
99 "The representation of an abstract type defined in <M>.<x> is "
100 "accessible anywhere in a file named <M>.<y>.",
104 FK_ABSTRACT, FK_NAMES, plainFlag,
107 "allow access to abstract types by file name convention",
108 "The representation of an abstract type named <t> is "
109 "accessible anywhere in a file named <t>.<x>.",
113 FK_ABSTRACT, FK_NAMES, plainFlag,
116 "allow access to abstract types by czech naming convention",
117 "The representation of an abstract type named <t> is accessible "
118 "in the definition of a function or constant named <t>_<name>",
122 FK_ABSTRACT, FK_NAMES, plainFlag,
125 "allow access to abstract types by slovak naming convention",
126 "The representation of an abstract type named <t> is accessible "
127 "in the definition of a function or constant named <t><Name>",
131 FK_ABSTRACT, FK_NAMES, plainFlag,
132 "accessczechoslovak",
133 FLG_ACCESSCZECHOSLOVAK,
134 "allow access to abstract types by czechoslovak naming convention",
135 "The representation of an abstract type named <t> is accessible "
136 "in the definition of a function or constant named <t>_<name> or <t><Name>",
140 FK_ABSTRACT, FK_NONE, plainFlag,
143 "data abstraction barriers",
144 "An abstraction barrier is broken. If necessary, use /*@access <type>@*/ to allow access to an abstract type.",
148 FK_ABSTRACT, FK_NONE, modeFlag,
151 "representation of mutable type has sharing semantics",
152 "LCL semantics requires that a mutable type exhibits sharing semantics. In order for objects to be shared a indirection is necessary in the representation. A mutable type may be represented by a pointer or an abstract mutable type. Handles into static data are fine, too, but will generate this error message unless it is suppressed.",
156 FK_ALIAS, FK_GLOBALS, specialFlag,
159 "function returns with global aliasing external state (sets "
160 "checkstrictglobalias, checkedglobalias, checkmodglobalias and "
161 "uncheckedglobalias)",
162 "A global variable aliases externally-visible state when the function returns.",
166 FK_ALIAS, FK_GLOBALS, modeFlag,
167 "checkstrictglobalias",
168 FLG_CHECKSTRICTGLOBALIAS,
169 "function returns with a checkstrict global aliasing external state",
170 "A global variable aliases externally-visible state when the function returns.",
174 FK_ALIAS, FK_GLOBALS, modeFlag,
176 FLG_CHECKEDGLOBALIAS,
177 "function returns with a checked global aliasing external state",
178 "A global variable aliases externally-visible state when the function returns.",
182 FK_ALIAS, FK_GLOBALS, modeFlag,
184 FLG_CHECKMODGLOBALIAS,
185 "function returns with a checkmod global aliasing external state",
186 "A global variable aliases externally-visible state when the function returns.",
190 FK_ALIAS, FK_GLOBALS, modeFlag,
191 "uncheckedglobalias",
192 FLG_UNCHECKEDGLOBALIAS,
193 "function returns with an unchecked global aliasing external state",
194 "A global variable aliases externally-visible state when the function returns.",
198 FK_ALIAS, FK_MEMORY, modeFlag,
201 "unique parameter is aliased",
202 "A unique or only parameter is aliased by some other parameter or visible global.",
206 FK_ALIAS, FK_MEMORY, modeFlag,
209 "unique parameter may be aliased",
210 "A unique or only parameter may be aliased by some other parameter or visible global.",
214 FK_ALIAS, FK_MEMORY, modeFlag,
217 "temp storage aliased at return point or scope exit",
218 "An alias has been added to a temp-qualifier parameter or global that is visible externally when the function returns. If the aliasing is needed, use the /*@shared@*/ annotation to indicate that new aliases to the parameter may be created.",
222 FK_ALIAS, FK_NONE, modeFlag,
225 "function returns alias to parameter or global",
226 "The returned value shares storage with a parameter or global. If a parameter is to be returned, use the returned qualifier. If the result is not modified, use the observer qualifier on the result type. Otherwise, exposed can be used, but limited checking is done.", 0, 0
229 FK_ANSI, FK_PROTOS, modeFlag,
232 "function declaration has no parameter list",
233 "A function declaration does not have a parameter list.",
237 FK_ANSI, FK_PROTOS, modeFlag,
240 "old style function definition",
241 "Function definition is in old style syntax. Standard prototype "
242 "syntax is preferred.",
246 FK_ANSI, FK_SYNTAX, plainFlag,
249 "support some gnu (gcc) language extensions",
250 "ANSI C does not allow some language features supported by gcc and other compilers. "
251 "Use +gnuextensions to allow some of these extensions.", 0, 0
254 FK_ANSI, FK_NONE, plainFlag,
257 "non-standard <varargs.h> included",
258 "Header <varargs.h> is not part of ANSI Standard. "
259 "Should use <stdarg.h> instead.",
263 FK_ANSI, FK_LIBS, plainFlag,
266 "a POSIX header is included, but the POSIX library is not used",
267 "Header name matches a POSIX header, but the POSIX library is not selected.",
271 FK_BEHAVIOR, FK_ANSI, modeFlag,
274 "argument to exit has implementation defined behavior",
275 "The argument to exit should be 0, EXIT_SUCCESS or EXIT_FAILURE",
279 FK_BEHAVIOR, FK_ANSI, modeFlag,
282 "code has unspecified or implementation-dependent behavior "
283 "because of order of evaluation",
284 "Code has unspecified behavior. "
285 "Order of evaluation of function parameters or subexpressions "
286 "is not defined, so if a value is used and modified in different "
287 "places not separated by a sequence point constraining "
288 "evaluation order, then the result of the expression is "
293 FK_BEHAVIOR, FK_ANSI, modeFlag,
296 "code involving call to unspecified function has undefined or implementation-dependent behavior",
297 "Code involving a call to function with no modifies or globals clause "
298 "may have undefined or implementation-dependent behavior (Splint assumes the "
299 "unconstrained call may modify any reachable state or use any global). Add a "
300 "specification for the function.",
304 FK_BOOL, FK_NONE, regStringFlag, ARG_STRING,
307 "set name of boolean false (default FALSE)",
311 FK_BOOL, FK_NONE, regStringFlag, ARG_STRING,
314 "set name of boolean type (default bool)",
318 FK_BOOL, FK_NONE, regStringFlag, ARG_STRING,
321 "set name of boolean true (default TRUE)",
325 FK_COMMENTS, FK_ABSTRACT, plainFlag,
328 "ignore access comments",
332 FK_COMMENTS, FK_SUPPRESS, plainFlag,
335 "ignore all stylized comments",
339 FK_COMMENTS, FK_SYNTAX, plainFlag,
342 "stylized comment is unrecognized",
343 "Word after a stylized comment marker does not correspond to a "
348 FK_COMMENTS, FK_SYNTAX, plainFlag,
349 "unrecogflagcomments",
350 FLG_UNRECOGFLAGCOMMENTS,
351 "stylized flag comment uses an unrecognized flag",
352 "Semantic comment attempts to set a flag that is not recognized.",
356 FK_COMMENTS, FK_SYNTAX, plainFlag,
359 "line continuation marker (\\) in comment before */ on same line",
360 "A line continuation marker (\\) appears inside a comment on the same "
361 "line as the comment close. Preprocessors should handle this "
362 "correctly, but it causes problems for some preprocessors.",
366 FK_COMMENTS, FK_SYNTAX, plainFlag,
368 FLG_SLASHSLASHCOMMENT,
369 "C++ style // comment",
370 "A C++ style // comment is used here. This type of comment has been officially supported in C99 and was often allowed by compiler extensions prior to this. However, some older C89 compilers are not able to handle these comments.",
374 FK_COMMENTS, FK_SYNTAX, plainFlag,
377 "comment begins inside comment",
378 "A comment open sequence (/*) appears within a comment. This usually "
379 "means an earlier comment was not closed.",
383 FK_COMMENTS, FK_SUPPRESS, modeFlag,
386 "interpret t comments (ignore errors in lines marked with /*@t<n>@*/",
390 FK_COMMENTS, FK_SUPPRESS, plainFlag,
393 "interpret traditional lint comments (/*FALLTHROUGH*/, /*NOTREACHED*/)",
397 FK_COMMENTS, FK_SUPPRESS, modeFlag,
399 FLG_WARNLINTCOMMENTS,
400 "print a warning and suggest an alternative when a traditional lint "
402 "A traditional lint comment is used. Some traditional lint comments "
403 "are interpreted by Splint to enable easier checking of legacy "
404 "code. It is preferable to replace these comments with the "
405 "suggested Splint alternative.",
409 FK_COMPLETE, FK_NONE, modeFlag,
412 "function or variable declared but never defined",
413 "A function or variable is declared, but not defined in any source code file.",
417 FK_COMPLETE, FK_SPEC, modeFlag,
420 "function or variable specified but never defined",
421 "A function or variable is declared in an .lcl file, but not defined in any source code file.",
425 FK_COMPLETE, FK_SPEC, plainFlag,
428 "function or variable specified but never declared in a source file",
429 "A function or variable is declared in an .lcl file, but not declared "
430 "in any source code file.",
434 FK_CONTROL, FK_MEMORY, specialFlag,
437 "assume all loops execute at least once (sets forloopexec, whileloopexec and iterloopexec)",
441 FK_CONTROL, FK_MEMORY, plainFlag,
444 "assume all for loops execute at least once",
448 FK_CONTROL, FK_MEMORY, plainFlag,
451 "assume all while loops execute at least once",
455 FK_CONTROL, FK_MEMORY, plainFlag,
458 "assume all iterator loops execute at least once",
462 FK_CONTROL, FK_MEMORY, plainFlag,
465 "assume loop that can be determined to always execute always does",
469 FK_CONTROL, FK_NONE, plainFlag,
476 FK_CONTROL, FK_NONE, modeFlag,
479 "likely infinite loop is detected",
480 "This appears to be an infinite loop. Nothing in the body of the "
481 "loop or the loop test modifies the value of the loop test. "
482 "Perhaps the specification of a function called in the loop "
483 "body is missing a modification.",
487 FK_CONTROL, FK_NONE, modeFlag,
490 "likely infinite loop is detected (may result from unconstrained function)",
491 "This appears to be an infinite loop. Nothing in the body of the "
492 "loop or the loop test modifies the value of the loop test. "
493 "There may be a modification through a call to an unconstrained "
494 "function, or an unconstrained function in the loop test may use "
495 "a global variable modified by the loop body.",
499 FK_CONTROL, FK_NONE, specialFlag,
502 "break inside nested while or for or switch",
503 "A break statement appears inside the body of a nested while, for or "
504 "switch statement. Sets looploopbreak, loopswitchbreak, "
505 "switchloopbreak, switchswitchbreak, and looploopcontinue.",
509 FK_CONTROL, FK_NONE, modeFlag,
512 "break inside nested while or for",
513 "A break statement appears inside the body of a nested while or for "
514 "statement. This is perfectly reasonable code, but check that "
515 "the break is intended to break only the inner loop. The "
516 "break statement may be preceded by /*@innerbreak@*/ to suppress "
517 "the message for this break only.",
521 FK_CONTROL, FK_NONE, modeFlag,
524 "break in loop inside switch",
525 "A break statement appears inside the body of a while or for "
526 "statement within a switch. This is perfectly reasonable code, but check that "
527 "the break is intended to break only the inner loop. The "
528 "break statement may be preceded by /*@loopbreak@*/ to suppress "
529 "the message for this break only.",
533 FK_CONTROL, FK_NONE, modeFlag,
536 "break in switch inside loop",
537 "A break statement appears inside a switch statement within a while or "
538 "for loop. This is perfectly reasonable code, but check that "
539 "the break is intended to break only the inner loop. The "
540 "break statement may be preceded by /*@switchbreak@*/ to suppress "
541 "the message for this break only.",
545 FK_CONTROL, FK_NONE, modeFlag,
547 FLG_SWITCHSWITCHBREAK,
548 "break in switch inside switch",
549 "A break statement appears inside a switch statement within another "
550 "switch statement. This is perfectly reasonable code, but check that "
551 "the break is intended to break only the inner switch. The "
552 "break statement may be preceded by /*@innerbreak@*/ to suppress "
553 "the message for this break only.",
557 FK_CONTROL, FK_NONE, modeFlag,
559 FLG_LOOPLOOPCONTINUE,
560 "continue inside nested loop",
561 "A continue statement appears inside a loop within a loop. "
562 "This is perfectly reasonable code, but check that "
563 "the continue is intended to continue only the inner loop. The "
564 "continue statement may be preceded by /*@innercontinue@*/ to suppress "
565 "the message for this continue only.",
569 FK_CONTROL, FK_NONE, modeFlag,
572 "unreachable code detected",
573 "This code will never be reached on any possible execution.",
577 FK_CONTROL, FK_NONE, modeFlag,
580 "a while statement has no body",
581 "While statement has no body.",
585 FK_CONTROL, FK_NONE, modeFlag,
588 "the body of a while statement is not a block",
589 "While body is a single statement, not a compound block.",
593 FK_CONTROL, FK_NONE, modeFlag,
596 "a for statement has no body",
597 "For statement has no body.",
601 FK_CONTROL, FK_NONE, modeFlag,
604 "the body of a for statement is not a block",
605 "Loop body is a single statement, not a compound block.",
609 FK_CONTROL, FK_NONE, modeFlag,
612 "an if statement has no body",
613 "If statement has no body.",
617 FK_CONTROL, FK_NONE, modeFlag,
620 "the body of an if statement is not a block",
621 "If body is a single statement, not a compound block.",
625 FK_CONTROL, FK_NONE, specialFlag,
628 "an if, while or for statement has no body (sets ifempty, "
629 "whileempty and forempty",
634 FK_CONTROL, FK_NONE, specialFlag,
637 "the body of an if, while or for statement is not a block "
638 "(sets ifblock, whileblock and forblock)",
639 "Body is a single statement, not a compound block.",
643 FK_CONTROL, FK_NONE, modeFlag,
646 "if ... else if chains must have final else",
647 "There is no final else following an else if construct.",
651 FK_CONTROL, FK_NONE, modeFlag,
654 "path with no return detected in non-void function",
655 "There is a path through a function declared to return a value on "
656 "which there is no return statement. This means the execution "
657 "may fall through without returning a meaningful result to "
662 FK_CONTROL, FK_NONE, modeFlag,
665 "non-empty case in a switch without preceding break",
666 "Execution falls through from the previous case.", 0, 0
669 FK_CONTROL, FK_NONE, modeFlag,
672 "switch on enum type missing case for some value",
673 "Not all values in an enumeration are present as cases in the switch.",
677 FK_CONTROL, FK_NONE, modeFlag,
680 "first statement in switch is not a case",
681 "The first statement after a switch is not a case.",
685 FK_DEBUG, FK_NONE, specialDebugFlag,
692 FK_DEBUG, FK_NONE, debugFlag,
699 FK_DECL, FK_NONE, modeFlag,
702 "declaration reuses name visible in outer scope",
703 "An outer declaration is shadowed by the local declaration.",
707 FK_DECL, FK_LIBS, modeFlag,
710 "function, variable or constant defined in a library is redefined with inconsistent type",
711 "A function, variable or constant previously defined in a library is "
712 "redefined with a different type.",
716 FK_DECL, FK_LIBS, modeFlag,
719 "library function overloaded",
720 "A function, variable or constant defined in the library is redefined "
721 "with a different type.",
725 FK_DECL, FK_NONE, modeFlag,
728 "an extern declaration is inside a function scope",
729 "An extern declaration is used inside a function scope.",
733 FK_DECL, FK_NONE, modeFlag,
736 "function or variable redeclared",
737 "A function or variable is declared in more than one place. This is "
738 "not necessarily a problem, since the declarations are consistent.",
742 FK_DECL, FK_NONE, plainFlag,
745 "function or variable redefined",
746 "A function or variable is redefined. One of the declarations should use extern.",
750 FK_DECL, FK_TYPE, modeFlag,
753 "function, variable or constant redefined with inconsistent type",
754 "A function, variable or constant is redefined with a different type.",
758 FK_DECL, FK_TYPE, modeFlag,
761 "variable declaration has unknown (implicitly int) type",
762 "A variable declaration has no explicit type. The type is implicitly int.",
766 FK_DECL, FK_TYPE, modeFlag,
769 "struct or enum type redefined with inconsistent fields or members",
770 "A struct, union or enum type is redefined with inconsistent fields or members.",
774 FK_DEF, FK_NONE, modeFlag,
777 "use before definition",
778 "An rvalue is used that may not be initialized to a value on some execution path.",
782 FK_DEF, FK_IMPLICIT, modeFlag,
785 "pointer parameters to unspecified functions may be implicit out parameters",
789 FK_DIRECT, FK_FILES, globalStringFlag, ARG_DIRECTORY,
792 "set directory for writing temp files",
796 FK_DIRECT, FK_FILES, globalStringFlag, ARG_PATH,
799 "set path for searching for library files (overrides LARCH_PATH environment variable)",
803 FK_DIRECT, FK_FILES, globalStringFlag, ARG_DIRECTORY,
806 "set directory to search for LCL import files (overrides LCLIMPORTDIR)",
810 FK_DIRECT, FK_FILES, globalStringFlag, ARG_PATH,
813 "set directories for system files (default /usr/include). Separate "
814 "directories with path separator (colons in Unix, semi-colons in Windows). "
815 "Flag settings propagate to files in a system directory. If "
816 "-sysdirerrors is set, no errors are reported for files in "
817 "system directories.",
821 FK_DIRECT, FK_FILES, plainFlag,
824 "prevent inclusion of header files in a system directory with "
825 "names that match standard ANSI headers. The symbolic information "
826 "in the standard library is used instead. Flag in effect only "
827 "if a library including the ANSI library is loaded. The ANSI "
828 "headers are: assert, ctype, errno, float, limits, locale, math, "
829 "setjmp, signal, stdarg, stddef, stdio, stdlib, strings, string, "
834 FK_DIRECT, FK_FILES, plainFlag,
836 FLG_SKIPPOSIXHEADERS,
837 "prevent inclusion of header files in a system directory with "
838 "names that match standard POSIX headers. The symbolic information "
839 "in the posix library is used instead. The POSIX headers are: "
840 "dirent, fcntl, grp, pwd, termios, sys/stat, sys/times, "
841 "sys/types, sys/utsname, sys/wait, unistd, and utime.",
845 FK_DIRECT, FK_SUPPRESS, modeFlag,
848 "report errors in files in system directories (set by -sysdirs)",
852 FK_HEADERS, FK_MACROS, plainFlag,
853 "sysdirexpandmacros",
855 "expand macros in system directories regardless of other settings, "
856 "except for macros corresponding to names defined in a load library",
861 FK_DIRECT, FK_HEADERS, globalExtraArgFlag,
864 "add to C include path",
868 FK_DIRECT, FK_SPEC, globalExtraArgFlag,
875 FK_DISPLAY, FK_ERRORS, plainFlag,
878 "suppress herald and error count",
882 FK_DISPLAY, FK_ERRORS, plainFlag,
885 "send error messages to standard error (instead of standard out)",
889 FK_DISPLAY, FK_ERRORS, plainFlag,
892 "show summary of all errors reported and suppressed",
896 FK_DISPLAY, FK_FILES, plainFlag,
899 "show file names are they are processed",
903 FK_DISPLAY, FK_NONE, globalFlag,
906 "display lines processed and time",
910 FK_DISPLAY, FK_NONE, globalFlag,
913 "display time distribution",
917 FK_DISPLAY, FK_USE, globalFlag,
920 "show sorted list of uses of all globals",
924 FK_EFFECT, FK_CONTROL, modeFlag,
927 "statement with no effect",
928 "Statement has no visible effect --- no values are modified.",
932 FK_EFFECT, FK_CONTROL, modeFlag,
935 "statement with no effect (except possibly through call to "
936 "unconstrained function)",
937 "Statement has no visible effect --- no values are modified. It may "
938 "modify something through a call to an unconstrained function.",
942 FK_EXPORT, FK_SPEC, specialFlag,
945 "variable, function or type exported but not specified",
946 "A variable, function or type is exported, but not specified.",
950 FK_EXPORT, FK_SPEC, modeFlag,
953 "function exported but not specified",
954 "A function is exported, but not specified.", 0, 0
957 FK_EXPORT, FK_SPEC, modeFlag,
960 "expanded macro exported but not specified",
961 "A macro is exported, but not specified.", 0, 0
964 FK_EXPORT, FK_SPEC, modeFlag,
967 "type definition exported but not specified",
968 "A type is exported, but not specified.", 0, 0
971 FK_EXPORT, FK_SPEC, modeFlag,
974 "variable exported but not specified",
975 "A variable is exported, but not specified.", 0, 0
978 FK_EXPORT, FK_SPEC, modeFlag,
981 "constant exported but not specified",
982 "A constant is exported, but not specified.", 0, 0
985 FK_EXPORT, FK_SPEC, modeFlag,
988 "constant exported but not specified",
989 "A constant is exported, but not specified.", 0, 0
992 FK_EXPOSURE, FK_ABSTRACT, specialFlag,
995 "abstract representation is exposed (sets assignexpose, retexpose, and castexpose)",
996 "The internal representation of an abstract type is visible to the "
997 "caller. This means clients may have access to a pointer "
998 "into the abstract representation.",
1002 FK_EXPOSURE, FK_ABSTRACT, modeFlag,
1005 "abstract representation is exposed (return values only)",
1006 "The return value shares storage with an instance of an abstract "
1007 "type. This means clients may have access to a pointer into "
1008 "the abstract representation. Use the observer qualifier to "
1009 "return exposed storage that may not be modified by the "
1010 "client. Use the exposed qualifier to return modifiable "
1011 "(but not deallocatable) exposed storage (dangerous).",
1015 FK_EXPOSURE, FK_ABSTRACT, modeFlag,
1018 "abstract representation is exposed (assignments only)",
1019 "Storage internal to the representation of an abstract type is "
1020 "assigned to an external pointer. This means clients may "
1021 "have access to a pointer into the abstract representation. "
1022 "If the external pointer is a parameter, the exposed qualifier "
1023 "can be used to allow the assignment, however, this is "
1024 "considered dangerous programming practice.",
1028 FK_EXPOSURE, FK_ABSTRACT, modeFlag,
1031 "abstract representation is exposed through a cast",
1032 "Storage internal to the representation of an abstract type is exposed "
1033 "through a type cast. This means clients may have access to a "
1034 "pointer into the abstract representation.",
1039 FK_FORMAT, FK_DISPLAY, valueFlag,
1042 "set length of messages (number of chars)",
1046 FK_FORMAT, FK_DISPLAY, valueFlag,
1049 "set number of spaces to indent sub-messages",
1053 FK_FORMAT, FK_DISPLAY, plainFlag,
1056 "show column number where error is found",
1060 FK_FORMAT, FK_DISPLAY, plainFlag,
1062 FLG_PARENFILEFORMAT,
1063 "show column number where error is found",
1067 FK_FORMAT, FK_NONE, plainFlag,
1070 "show name of function containing error",
1074 FK_FORMAT, FK_NONE, plainFlag,
1077 "show all possible types",
1078 "When a library function is declared with multiple possible type, the "
1079 "alternate types are shown only if +showallconjs.",
1083 FK_LIBS, FK_NONE, plainFlag,
1086 "make all alternate types implicit (useful for making system libraries",
1090 FK_GLOBAL, FK_ERRORS, globalValueFlag,
1093 "expect <int> code errors",
1097 FK_GLOBAL, FK_ERRORS, globalValueFlag,
1100 "expect <int> spec errors",
1104 FK_GLOBAL, FK_USE, idemSpecialFlag,
1107 "check as partial system (-specundef, -declundef, -exportlocal, "
1108 "don't check macros in headers without corresponding .c files)",
1112 FK_GLOBALS, FK_SPEC, plainFlag,
1115 "undocumented use of a checked global variable",
1116 "A checked global variable is used in the function, but not listed in "
1117 "its globals clause. By default, only globals specified in .lcl "
1118 "files are checked. To check all globals, use +allglobals. To "
1119 "check globals selectively use /*@checked@*/ in the global "
1124 FK_GLOBALS, FK_SPEC, modeFlag,
1127 "global listed for a function not used",
1128 "A global variable listed in the function's globals list is not used "
1129 "in the body of the function.",
1133 FK_GLOBALS, FK_NONE, modeFlag,
1136 "use of internalState",
1137 "A called function uses internal state, but the globals list for the "
1138 "function being checked does not include internalState",
1142 FK_GLOBALS, FK_NONE, modeFlag,
1143 "internalglobsnoglobs",
1144 FLG_INTERNALGLOBSNOGLOBS,
1145 "use of internalState (in function with no globals list)",
1146 "A called function uses internal state, but the function being checked "
1147 "has no globals list",
1151 FK_GLOBALS, FK_MODIFIES, modeFlag,
1153 FLG_WARNMISSINGGLOBALS,
1154 "global variable used in modifies clause is not listed in globals list",
1155 "A global variable is used in the modifies clause, but it not listed in "
1156 "the globals list. The variable will be added to the globals list.",
1161 FK_GLOBALS, FK_MODIFIES, modeFlag,
1162 "warnmissingglobsnoglobs",
1163 FLG_WARNMISSINGGLOBALSNOGLOBS,
1164 "global variable used in modifies clause in a function with no globals list",
1165 "A global variable is used in the modifies clause, but the function "
1166 "has no globals list. The variable will be added to the globals list.",
1170 FK_GLOBALS, FK_UNSPEC, modeFlag,
1173 "use of checked global in a function with no globals list or specification",
1174 "A specified global variable is used in the function, but not listed "
1175 "in its globals list. Without +globnoglobs, only globals "
1176 "declared with /*@checkedstrict@*/ will produce use "
1177 "errors in functions without globals "
1178 "lists. The /*@globals ... @*/ control comment can be used to give "
1179 "a globals list for an unspecified function.",
1183 FK_GLOBALS, FK_IMPLICIT, modeFlag,
1186 "report use and modification errors for globals not annotated with unchecked",
1190 FK_GLOBALS, FK_UNSPEC, modeFlag,
1192 FLG_CHECKSTRICTGLOBALS,
1193 "report use and modification errors for checkedstrict globals",
1197 FK_GLOBALS, FK_UNSPEC, modeFlag,
1198 "impcheckedspecglobs",
1199 FLG_IMPCHECKEDSPECGLOBALS,
1200 "assume checked qualifier for unqualified global declarations in .lcl files",
1204 FK_GLOBALS, FK_UNSPEC, modeFlag,
1205 "impcheckmodspecglobs",
1206 FLG_IMPCHECKMODSPECGLOBALS,
1207 "assume checkmod qualifier for unqualified global declarations in .lcl files",
1211 FK_GLOBALS, FK_UNSPEC, modeFlag,
1212 "impcheckedstrictspecglobs",
1213 FLG_IMPCHECKEDSTRICTSPECGLOBALS,
1214 "assume checkmod qualifier for unqualified global declarations in .lcl files",
1218 FK_GLOBALS, FK_UNSPEC, modeFlag,
1220 FLG_IMPCHECKEDGLOBALS,
1221 "assume checked qualifier for unqualified global declarations",
1225 FK_GLOBALS, FK_UNSPEC, modeFlag,
1227 FLG_IMPCHECKMODGLOBALS,
1228 "assume checkmod qualifier for unqualified global declarations",
1232 FK_GLOBALS, FK_UNSPEC, modeFlag,
1233 "impcheckedstrictglobs",
1234 FLG_IMPCHECKEDSTRICTGLOBALS,
1235 "assume checkedstrict qualifier for unqualified global declarations",
1239 FK_GLOBALS, FK_UNSPEC, modeFlag,
1240 "impcheckedstatics",
1241 FLG_IMPCHECKEDSTATICS,
1242 "assume checked qualifier for unqualified file static declarations",
1246 FK_GLOBALS, FK_UNSPEC, modeFlag,
1247 "impcheckmodstatics",
1248 FLG_IMPCHECKMODSTATICS,
1249 "assume checkmod qualifier for unqualified file static declarations",
1253 FK_GLOBALS, FK_UNSPEC, modeFlag,
1254 "impcheckmodinternals",
1255 FLG_IMPCHECKMODINTERNALS,
1256 "assume checkmod qualifier for unqualified local "
1257 "static declarations (for internal state modifications)",
1261 FK_GLOBALS, FK_UNSPEC, modeFlag,
1262 "impcheckedstrictstatics",
1263 FLG_IMPCHECKEDSTRICTSTATICS,
1264 "assume checkedstrict qualifier for unqualified file static declarations",
1268 FK_GLOBALS, FK_MODIFIES, modeFlag,
1271 "undocumented modification of a checked global variable",
1272 "A checked global variable is modified by the function, but not listed in "
1273 "its modifies clause.",
1277 FK_GLOBALS, FK_MODIFIES, modeFlag,
1280 "undocumented modification of a checked global variable in a function "
1281 "declared with no modifies clause",
1282 "A checked global variable is modified by the function, but not listed in "
1283 "its modifies clause.",
1287 FK_GLOBALS, FK_MODIFIES, modeFlag,
1288 "modstrictglobsnomods",
1289 FLG_MODSTRICTGLOBSUNSPEC,
1290 "undocumented modification of a strict checked global variable in a "
1291 "function declared with no modifies clause",
1292 "A checked global variable is modified by the function, but not listed in "
1293 "its modifies clause.",
1297 FK_GLOBALS, FK_MODIFIES, modeFlag,
1298 "modglobsunchecked",
1299 FLG_MODGLOBSUNCHECKED,
1300 "undocumented modification of an unchecked checked global variable",
1301 "An unchecked global variable is modified by the function, but not listed in "
1302 "its modifies clause.",
1306 FK_HEADERS, FK_DEBUG, debugFlag,
1313 FK_HEADERS, FK_SPEC, globalFlag,
1316 "generate .lh files", NULL,
1320 FK_HEADERS, FK_SPEC, globalFlag,
1323 "generate .lcs files", NULL,
1327 FK_HEADERS, FK_SPEED, globalFlag,
1330 "optimize header inclusion to eliminate redundant includes",
1331 "When checking multiple files, each header file is processed only "
1332 "once. This may change the meaning of the code, if the "
1333 "same header file is included in different contexts (e.g., the "
1334 "header file includes #if directives and the values are "
1335 "different when it is included in different places.)",
1339 FK_HEADERS, FK_SPEED, globalFlag,
1342 "optimize header inclusion to not include any header files",
1343 "Ignore header includes. Only works if relevant information is "
1344 "loaded from a library.",
1348 FK_HEADERS, FK_SPEED, globalFlag,
1351 "do not include header files in system directories (set by -sysdirs)",
1352 "Do not include header files in system directories (set by -sysdirs)",
1356 FK_HELP, FK_NONE, plainFlag,
1359 "warn when command line sets flag in abnormal way",
1360 "Command line sets flag in abnormal way",
1364 FK_HELP, FK_NONE, plainFlag,
1367 "warn when there are problems with reading the initialization files",
1368 "There was a problem reading an initialization file",
1372 FK_HELP, FK_NONE, plainFlag,
1375 "warn when the unix library is used",
1376 "Unix library may not be compatible with all platforms",
1380 FK_HELP, FK_NONE, plainFlag,
1383 "warn about bad command line flags",
1384 "A flag is not recognized or used in an incorrect way",
1388 FK_HELP, FK_NONE, plainFlag,
1391 "provide a hint for every warnings",
1392 "Provide a hint for every warning",
1396 FK_HELP, FK_NONE, globalExtraArgFlag,
1399 "-help <flags> will describe flags",
1404 FK_HELP, FK_FORMAT, plainFlag,
1407 "provide a hint the first time a particular warning appears",
1408 "Provide a hint the first time a particular warning appears",
1412 FK_IGNORERET, FK_NONE, specialFlag,
1415 "return value ignored (sets retvalint, retvalbool and retvalother)",
1416 "Result returned by function call is not used. If this is intended, "
1417 "cast result to (void) to eliminate message.",
1421 FK_IGNORERET, FK_BOOL, modeFlag,
1424 "return value of type other than bool or int ignored",
1425 "Result returned by function call is not used. If this is intended, "
1426 "can cast result to (void) to eliminate message.",
1430 FK_IGNORERET, FK_BOOL, modeFlag,
1433 "return value of manifest type bool ignored",
1434 "Result returned by function call is not used. If this is intended, "
1435 "can cast result to (void) to eliminate message.",
1439 FK_IGNORERET, FK_NONE, modeFlag,
1442 "return value of type int ignored",
1443 "Result returned by function call is not used. If this is intended, "
1444 "can cast result to (void) to eliminate message.",
1448 FK_INIT, FK_FILES, globalFileFlag,
1451 "read an options file (default ~/.splintrc not loaded)",
1452 "Read an options file (instead of loading default ~/.splintc)",
1456 FK_INIT, FK_FILES, globalFileFlag,
1459 "set LCL initilization file",
1463 FK_INIT, FK_FILES, globalFlag,
1466 "do not read options file",
1467 "Do not read the default options file (~/.splintrc)",
1471 FK_INIT, FK_SPEC, plainFlag,
1474 "information in specifications is not also included in syntactic comments",
1475 "There is information in the specification that is not duplicated "
1476 "in syntactic comments. Normally, this is not an "
1477 "error, but it may be useful to detect it to make "
1478 "sure checking incomplete systems without the specifications will "
1479 "still use this information.",
1483 FK_DECL, FK_LIBS, plainFlag,
1486 "report new global declarations in source files",
1487 "There is a new declaration that is not declared in a loaded library "
1488 "or earlier file. (Use this flag to check for consistency "
1489 "against a library.)",
1493 FK_ITER, FK_NONE, plainFlag,
1500 FK_ITER, FK_NONE, plainFlag,
1503 "iter declaration has no yield parameters",
1504 "An iterator has been declared with no parameters annotated with "
1505 "yield. This may be what you want, if the iterator is meant "
1506 "to do something a fixed number of times, but returns no "
1507 "information to the calling context. Probably, a parameter "
1508 "is missing the yield annotation to indicate that it is "
1509 "assigned a value in the calling context.",
1513 FK_LIBS, FK_FILES, globalStringFlag, ARG_FILE,
1516 "save state for merging (default suffix .lcd)",
1520 FK_LIBS, FK_FILES, globalStringFlag, ARG_FILE,
1523 "load state from dump file (default suffix .lcd)",
1527 FK_LIBS, FK_INIT, idemGlobalFlag,
1530 "do not load standard library",
1534 FK_LIBS, FK_INIT, globalFlag,
1537 "use normal standard library",
1538 "Library based on the ISO standard library specification is used.",
1542 FK_LIBS, FK_INIT, globalFlag,
1545 "interpret standard library strictly",
1546 "Stricter version of the standard library is used. (The default "
1547 "library is standard.lcd; strict library is strict.lcd.)",
1551 FK_LIBS, FK_INIT, globalFlag,
1554 "use UNIX (sort-of) standard library",
1555 "UNIX version of the standard library is used.",
1559 FK_LIBS, FK_INIT, globalFlag,
1562 "use strict version of UNIX (sort-of) library",
1563 "strict version of the UNIX library is used.",
1567 FK_LIBS, FK_INIT, globalFlag,
1570 "use POSIX standard library",
1571 "POSIX version of the standard library is used.",
1575 FK_LIBS, FK_INIT, globalFlag,
1578 "use strict POSIX standard library",
1579 "POSIX version of the strict standard library is used.",
1583 FK_LIBS, FK_INIT, globalFlag,
1586 "show standard library filename",
1590 FK_LIBS, FK_FILES, globalStringFlag, ARG_FILE,
1593 "load meta state declaration and corresponding xh file",
1597 FK_INIT, FK_COMMENTS, charFlag,
1600 "set marker character for syntactic comments (default is '@')",
1601 "Set the marker character for syntactic comments. Comments beginning "
1602 "with /*<char> are interpreted by Splint, where <char> is the "
1603 "comment marker character.",
1607 FK_MACROS, FK_NONE, plainSpecialFlag,
1610 "sets fcnmacros and constmacros",
1611 "All macros (not preceded by /*@notfunction@*/) are checked as functions or "
1612 "constants depending on whether or not they have parameter lists.",
1616 FK_MACROS, FK_NONE, plainFlag,
1619 "check all macros with declarations in library as functions",
1620 "Every macro declared in the load library is checked.",
1624 FK_MACROS, FK_NONE, plainFlag,
1627 "check all macros corresponding to specified functions or constants",
1628 "Every macro declared a specification file is checked.",
1632 FK_MACROS, FK_NONE, plainFlag,
1635 "check all macros with parameter lists as functions",
1636 "Every parameterized macro (not preceded by /*@notfunction@*/) "
1637 "is checked as a function.",
1641 FK_MACROS, FK_NONE, plainFlag,
1644 "check all macros without parameter lists as constants",
1645 "Every non-parameterized macro (not preceded by /*@notfunction@*/) "
1646 "is checked as a constant.",
1650 FK_MACROS, FK_NONE, modeFlag,
1653 "macro definition does not match iter or constant declaration",
1654 "A iter or constant macro is defined using a different name from the "
1655 "one used in the previous syntactic comment",
1659 FK_MACROS, FK_NONE, plainFlag,
1662 "the line after a constant or iter declaration must be a macro definition",
1663 "A constant or iter declaration is not immediately followed by a macro definition.",
1667 FK_MACROS, FK_NONE, modeFlag,
1670 "macro definition is syntactically not equivalent to function",
1671 "A macro is defined in a way that may cause syntactic problems. If the macro returns a value, use commas to separate expressions; otherwise, use do { <macro body> } while (FALSE) construct.",
1675 FK_MACROS, FK_NONE, modeFlag,
1678 "macro definition for is empty",
1679 "A macro definition has no body.",
1683 FK_MACROS, FK_PARAMS, modeFlag,
1686 "macro parameter not used exactly once",
1687 "A macro parameter is not used exactly once in all possible "
1688 "invocations of the macro. To behave like a function, "
1689 "each macro parameter must be used exactly once on all "
1690 "invocations of the macro so that parameters with "
1691 "side-effects are evaluated exactly once. Use /*@sef@*/ to "
1692 "denote parameters that must be side-effect free.",
1696 FK_MACROS, FK_PARAMS, modeFlag,
1699 "assignment to a macro parameter",
1700 "A macro parameter is used as the left side of an "
1701 "assignment expression. This exhibits behavior that "
1702 "could not be implemented by a function.",
1706 FK_MACROS, FK_PARAMS, modeFlag,
1709 "a parameter with side-effects is passed as a sef parameter",
1710 "An actual parameter corresponding to a sef parameter may have a side-effect.",
1714 FK_MACROS, FK_PARAMS, modeFlag,
1717 "a parameter with unconstrained side-effects is passed as a sef parameter",
1718 "An actual parameter corresponding to a sef parameter involves a call "
1719 "to a procedure with no modifies clause that may have a side-effect.",
1723 FK_MACROS, FK_NONE, modeFlag,
1726 "macro parameter used without parentheses (in potentially dangerous context)",
1727 "A macro parameter is used without parentheses. This could be "
1728 "dangerous if the macro is invoked with a complex expression "
1729 "and precedence rules will change the evaluation inside the macro.",
1733 FK_MACROS, FK_PROTOS, modeFlag,
1736 "macro without prototype or specification (sets macrofcndecl and macroconstdecl)",
1737 "Argument checking cannot be done well for macros without prototypes "
1738 "or specifications, since the types of the arguments are unknown.",
1742 FK_MACROS, FK_PROTOS, modeFlag,
1745 "parameterized macro without prototype or specification",
1746 "Function macro has no declaration.",
1750 FK_MACROS, FK_PROTOS, modeFlag,
1753 "non-parameterized macro without prototype or specification",
1754 "Macro constant has no declaration. Use /*@constant ...@*/ to "
1755 "declare the macro.",
1759 FK_MACROS, FK_NONE, modeFlag,
1763 "A macro is defined in more than one place.", 0, 0
1766 FK_MACROS, FK_UNRECOG, modeFlag,
1769 "unrecognized identifier in macro",
1770 "An unrecognized identifier appears in a macro. If the identifier "
1771 "is defined before the macro is used, then this is okay.",
1775 FK_MEMORY, FK_DEAD, modeFlag,
1778 "external reference to stack-allocated storage is created",
1779 "A stack reference is pointed to by an external reference when the "
1780 "function returns. The stack-allocated storage is destroyed "
1781 "after the call, leaving a dangling reference.",
1785 FK_MEMORY, FK_DEAD, modeFlag,
1788 "storage used after release",
1789 "Memory is used after it has been released (either by passing "
1790 "as an only param or assigning to an only global).",
1794 FK_MEMORY, FK_DEAD, modeFlag,
1795 "strictusereleased",
1796 FLG_STRICTUSERELEASED,
1797 "element used after it may have been released",
1798 "Memory (through fetch) is used after it may have been released "
1799 "(either by passing as an only param or assigning to an only global).",
1803 FK_MEMORY, FK_DEF, modeFlag,
1806 "parameter, return value or global completely defined",
1807 "Storage derivable from a parameter, return value or global is "
1808 "not defined. Use /*@out@*/ to denote passed or returned "
1809 "storage which need not be defined.",
1813 FK_MEMORY, FK_DEF, modeFlag,
1816 "actual parameter matches alias kind of formal parameter completely ",
1817 "Storage derivable from a parameter does not match the alias kind "
1818 "expected for the formal parameter.",
1822 FK_MEMORY, FK_DEF, modeFlag,
1825 "out storage not defined before return or scope exit",
1826 "An out parameter or global is not defined before control is transferred.",
1830 FK_MEMORY, FK_DEF, modeFlag,
1833 "at least one field of a union must be defined",
1834 "No field of a union is defined. Generally, one field of a union is "
1835 "expected to be defined.",
1839 FK_MEMORY, FK_IMPLICIT, modeFlag,
1842 "memory errors for unqualified storage",
1846 FK_MEMORY, FK_IMPLICIT, plainFlag,
1849 "assume unannotated parameter is temp",
1853 FK_MEMORY, FK_IMPLICIT, specialFlag,
1856 "sets globimponly, retimponly, structimponly, specglobimponly, "
1857 "specretimponly and specstructimponly",
1861 FK_MEMORY, FK_IMPLICIT, specialFlag,
1864 "sets globimponly, retimponly and structimponly",
1868 FK_MEMORY, FK_IMPLICIT, specialFlag,
1871 "sets specglobimponly, specretimponly and specstructimponly",
1875 FK_MEMORY, FK_IMPLICIT, plainFlag,
1878 "assume unannotated global storage is only",
1882 FK_MEMORY, FK_IMPLICIT, plainFlag,
1885 "assume unannotated returned storage is only",
1889 FK_MEMORY, FK_IMPLICIT, plainFlag,
1892 "assume unannotated structure field is only",
1896 FK_MEMORY, FK_IMPLICIT, plainFlag,
1898 FLG_SPECGLOBIMPONLY,
1899 "assume unannotated global storage is only",
1903 FK_MEMORY, FK_IMPLICIT, plainFlag,
1906 "assume unannotated returned storage is only",
1910 FK_MEMORY, FK_IMPLICIT, plainFlag,
1911 "specstructimponly",
1912 FLG_SPECSTRUCTIMPONLY,
1913 "assume unannotated structure field is only",
1917 FK_MEMORY, FK_ARRAY, modeFlag,
1920 "array elements are dependent storage",
1921 "When an element is fetched from an array, Splint analysis is "
1922 "not able to determine if the same element is reused. "
1923 "If +deparrays, Splint will mark local storage assigned from "
1924 "array fetches as dependent.",
1928 FK_MEMORY, FK_LEAK, modeFlag,
1931 "all only references derivable from void pointer out only parameter are released",
1932 "A storage leak due to incomplete deallocation of a structure or deep "
1933 "pointer is suspected. Unshared storage that is reachable from "
1934 "a reference that is being deallocated has not yet been deallocated. "
1935 "Splint assumes when an object is passed "
1936 "as an out only void pointer that the outer object will be "
1937 "deallocated, but the inner objects will not.",
1941 FK_MEMORY, FK_LEAK, modeFlag,
1944 "report complete destruction errors for array elements that "
1945 "may have been released",
1950 FK_MEMORY, FK_LEAK, modeFlag,
1953 "freshly allocated storage not released before return or scope exit",
1954 "A memory leak has been detected. Storage allocated locally "
1955 "is not released before the last reference to it is lost.",
1959 FK_MEMORY, FK_LEAK, modeFlag,
1962 "only storage not released before return or scope exit",
1963 "A memory leak has been detected. Only-qualified storage is not released before the last "
1964 "reference to it is lost.",
1968 FK_MEMORY, FK_LEAK, specialFlag,
1971 "fresh or only storage not released before return or scope exit (sets mustfreefresh and mustfreeonly)",
1972 "A memory leak has been detected.",
1976 FK_MEMORY, FK_NONE, modeFlag,
1979 "storage has inconsistent states of alternate paths through a branch",
1980 "The state of a variable is different depending on which branch "
1981 "is taken. This means no annotation can sensibly be applied "
1986 FK_MEMORY, FK_NONE, modeFlag,
1987 "strictbranchstate",
1988 FLG_STRICTBRANCHSTATE,
1989 "storage through array fetch has inconsistent states of alternate "
1990 "paths through a branch",
1991 "The state of a variable through an array fetch is different depending "
1992 "on which branch is taken. This means no annotation can sensibly be applied "
1997 FK_MEMORY, FK_NONE, specialFlag,
2000 "sets all dynamic memory checking flags (memimplicit, mustfree, mustdefine, "
2001 "mustnotalias, null, memtrans)",
2005 FK_MEMORY, FK_NONE, specialFlag,
2008 "memory transfer errors (sets all *trans flags)",
2009 "Memory is transferred in a way that violates annotations.",
2013 FK_MEMORY, FK_NONE, modeFlag,
2016 "exposure transfer errors",
2017 "Exposed storage is transferred to a non-exposed, non-observer reference.",
2021 FK_MEMORY, FK_NONE, modeFlag,
2024 "observer transfer errors",
2025 "Observer storage is transferred to a non-observer reference.",
2029 FK_MEMORY, FK_NONE, modeFlag,
2032 "dependent transfer errors",
2033 "Dependent storage is transferred to a non-dependent reference.",
2037 FK_MEMORY, FK_NONE, modeFlag,
2040 "new reference transfer to reference counted reference",
2041 "A new reference is transferred to a reference counted reference.",
2045 FK_MEMORY, FK_NONE, modeFlag,
2048 "only storage transferred to non-only reference (memory leak)",
2049 "The only reference to this storage is transferred to another "
2050 "reference (e.g., by returning it) that does not have the "
2051 "only annotation. This may lead to a memory leak, since the "
2052 "new reference is not necessarily released.",
2056 FK_MEMORY, FK_NONE, modeFlag,
2057 "onlyunqglobaltrans",
2058 FLG_ONLYUNQGLOBALTRANS,
2059 "only storage transferred to an unqualified global or "
2060 "static reference (memory leak)",
2061 "The only reference to this storage is transferred to another "
2062 "reference that does not have an aliasing annotation. "
2063 "This may lead to a memory leak, since the "
2064 "new reference is not necessarily released.",
2068 FK_MEMORY, FK_NONE, modeFlag,
2071 "owned storage transferred to non-owned reference (memory leak)",
2072 "The owned reference to this storage is transferred to another "
2073 "reference (e.g., by returning it) that does not have the "
2074 "owned annotation. This may lead to a memory leak, since the "
2075 "new reference is not necessarily released.",
2079 FK_MEMORY, FK_NONE, modeFlag,
2082 "fresh storage transferred to non-only reference (memory leak)",
2083 "Fresh storage (newly allocated in this function) is transferred "
2084 "in a way that the obligation to release storage is not "
2085 "propagated. Use the /*@only@*/ annotation to indicate "
2086 "the a return value is the only reference to the returned "
2091 FK_MEMORY, FK_NONE, modeFlag,
2094 "shared storage transferred to non-shared reference",
2095 "Shared storage is transferred to a non-shared reference. The other "
2096 "reference may release storage needed by this reference.",
2100 FK_MEMORY, FK_NONE, modeFlag,
2103 "temp storage transferred to non-temporary reference",
2104 "Temp storage (associated with a formal parameter) is transferred "
2105 "to a non-temporary reference. The storage may be released "
2106 "or new aliases created.",
2110 FK_MEMORY, FK_NONE, modeFlag,
2113 "kept storage transferred to non-temporary reference",
2114 "Kept storage is transferred "
2115 "to a non-temporary reference. The storage may be released "
2116 "or new aliases created.",
2120 FK_MEMORY, FK_NONE, modeFlag,
2123 "keep storage transferred inconsistently",
2124 "Keep storage is transferred inconsistently --- either in a way "
2125 "that may add a new alias to it, or release it.",
2129 FK_MEMORY, FK_NONE, modeFlag,
2132 "an immediate address (result of &) is transferred inconsistently",
2133 "An immediate address (result of & operator) is transferred "
2138 FK_MEMORY, FK_NONE, modeFlag,
2141 "reference counted storage is transferred in an inconsistent way",
2142 "Reference counted storage is transferred in a way that may not "
2143 "be consistent with the reference count.",
2147 FK_MEMORY, FK_NONE, modeFlag,
2150 "static storage is transferred in an inconsistent way",
2151 "Static storage is transferred in an inconsistent way.",
2155 FK_MEMORY, FK_NONE, modeFlag,
2158 "unqualified storage is transferred in an inconsistent way",
2159 "Unqualified storage is transferred in an inconsistent way.",
2163 FK_MEMORY, FK_NONE, modeFlag,
2165 FLG_STATICINITTRANS,
2166 "static storage is used as an initial value in an inconsistent way",
2167 "Static storage is used as an initial value in an inconsistent way.",
2171 FK_MEMORY, FK_NONE, modeFlag,
2172 "unqualifiedinittrans",
2173 FLG_UNKNOWNINITTRANS,
2174 "unqualified storage is used as an initial value in an inconsistent way",
2175 "Unqualified storage is used as an initial value in an inconsistent way.",
2179 FK_MEMORY, FK_NONE, modeFlag,
2181 FLG_READONLYSTRINGS,
2182 "string literals are read-only (error if one is modified or released)",
2183 "String literals are read-only. An error is reported "
2184 "if a string literal may be modified or released.",
2188 FK_MEMORY, FK_NONE, modeFlag,
2191 "report memory transfer errors for initializations to read-only string literals",
2192 "A read-only string literal is assigned to a non-observer reference.",
2196 FK_MEMORY, FK_PARAMS, modeFlag,
2199 "passing a value as an un-annotated parameter clears its annotation",
2203 FK_MODIFIES, FK_SPEC, plainFlag,
2206 "unspecified modification of caller-visible state",
2207 "An externally-visible object is modified by a function, but not "
2208 "listed in its modifies clause.",
2212 FK_MODIFIES, FK_SPEC, modeFlag,
2215 "specified modification is not detected",
2216 "An object listed in the modifies clause is not modified by the "
2217 "implementation of the function. The modification may not "
2218 "be detected if it is done through a call to an unspecified "
2223 FK_MODIFIES, FK_MEMORY, plainFlag,
2226 "possible modification of observer storage",
2227 "Storage declared with observer is possibly modified. Observer "
2228 "storage may not be modified.",
2232 FK_MODIFIES, FK_MEMORY, modeFlag,
2234 FLG_MODOBSERVERUNCON,
2235 "possible modification of observer storage through unconstrained call",
2236 "Storage declared with observer may be modified through a call to an "
2237 "unconstrained function.",
2241 FK_MODIFIES, FK_MEMORY, modeFlag,
2242 "modinternalstrict",
2243 FLG_MODINTERNALSTRICT,
2244 "possible modification of internal storage through function call",
2245 "A function that modifies internalState is called from a function that "
2246 "does not list internalState in its modifies clause",
2250 FK_MODIFIES, FK_UNSPEC, modeFlag,
2253 "report undocumented file system modifications (applies to unspecified "
2254 "functions if modnomods is set)",
2258 FK_MODIFIES, FK_UNSPEC, specialFlag,
2261 "modification in unspecified functions (sets modnomods, "
2262 "modglobunspec and modstrictglobsunspec)",
2266 FK_MODIFIES, FK_UNSPEC, modeFlag,
2269 "modification in a function with no modifies clause",
2270 "An externally-visible object is modified by a function with no "
2271 "/*@modifies@*/ comment. The /*@modifies ... @*/ control "
2272 "comment can be used to give a modifies list for an "
2273 "unspecified function.",
2277 FK_MODIFIES, FK_UNSPEC, modeFlag,
2280 "possible modification through a call to an unconstrained function",
2281 "An unconstrained function is called in a function body where "
2282 "modifications are checked. Since the unconstrained function "
2283 "may modify anything, there may be undetected modifications in "
2284 "the checked function.",
2288 FK_MODIFIES, FK_UNSPEC, modeFlag,
2291 "possible modification through a call to an unconstrained function in "
2292 "a function with no modifies clause",
2293 "An unconstrained function is called in a function body where "
2294 "modifications are checked. Since the unconstrained function "
2295 "may modify anything, there may be undetected modifications in "
2296 "the checked function.",
2300 FK_MODIFIES, FK_GLOBALS, modeFlag,
2301 "globsimpmodsnothing",
2302 FLG_GLOBALSIMPMODIFIESNOTHING,
2303 "functions declared with a globals list but no modifies clause are "
2304 "assumed to modify nothing",
2305 "An implicit modifies nothing clause is assumed for a function "
2306 "declared with a globals list but not modifies clause.",
2310 FK_MODIFIES, FK_GLOBALS, modeFlag,
2312 FLG_MODIFIESIMPNOGLOBALS,
2313 "functions declared with a modifies clause but no globals list "
2314 "are assumed to use no globals",
2315 "An implicit empty globals list is assumed for a function "
2316 "declared with a modifies clause but no globals list.",
2320 FK_NAMES, FK_ABSTRACT, plainFlag,
2323 "controls name checking without changing other settings",
2327 FK_NAMES, FK_ABSTRACT, specialFlag,
2330 "czech naming convention (sets accessczech, czechfunctions, czechvars, "
2331 "czechconstants, czechenums, and czechmacros)",
2332 "Name is not consistent with Czech naming convention.", 0, 0
2335 FK_NAMES, FK_ABSTRACT, plainFlag,
2338 "czech naming convention violated in a function or iterator declaration",
2339 "Function or iterator name is not consistent with Czech naming convention.", 0, 0
2342 FK_NAMES, FK_ABSTRACT, plainFlag,
2345 "czech naming convention violated in a variable declaration",
2346 "Variable name is not consistent with Czech naming convention.", 0, 0
2349 FK_NAMES, FK_ABSTRACT, plainFlag,
2352 "czech naming convention violated in an expanded macro name",
2353 "Expanded macro name is not consistent with Czech naming convention.", 0, 0
2356 FK_NAMES, FK_ABSTRACT, plainFlag,
2359 "czech naming convention violated in a constant declaration",
2360 "Constant name is not consistent with Czech naming convention.", 0, 0
2363 FK_NAMES, FK_ABSTRACT, plainFlag,
2366 "czech naming convention violated in a user-defined type definition",
2367 "Type name is not consistent with Czech naming convention. Czech type "
2368 "names must not use the underscore character.", 0, 0
2371 FK_NAMES, FK_ABSTRACT, specialFlag,
2374 "slovak naming convention violated",
2375 "Name is not consistent with Slovak naming convention.", 0, 0
2378 FK_NAMES, FK_ABSTRACT, plainFlag,
2380 FLG_SLOVAKFUNCTIONS,
2381 "slovak naming convention violated in a function or iterator declaration",
2382 "Function or iterator name is not consistent with Slovak naming convention.", 0, 0
2385 FK_NAMES, FK_ABSTRACT, plainFlag,
2388 "slovak naming convention violated in an expanded macro name",
2389 "Expanded macro name is not consistent with Slovak naming convention.", 0, 0
2392 FK_NAMES, FK_ABSTRACT, plainFlag,
2395 "slovak naming convention violated in a variable declaration",
2396 "Variable name is not consistent with Slovak naming convention.", 0, 0
2399 FK_NAMES, FK_ABSTRACT, plainFlag,
2401 FLG_SLOVAKCONSTANTS,
2402 "slovak naming convention violated in a constant declaration",
2403 "Constant name is not consistent with Slovak naming convention.", 0, 0
2406 FK_NAMES, FK_ABSTRACT, plainFlag,
2409 "slovak naming convention violated in a use-defined type definition",
2410 "Type name is not consistent with Slovak naming convention. Slovak type "
2411 "names may not include uppercase letters.", 0, 0
2414 FK_NAMES, FK_ABSTRACT, specialFlag,
2417 "czech or slovak naming convention violated",
2418 "Name is not consistent with either Czech or Slovak naming convention.", 0, 0
2421 FK_NAMES, FK_ABSTRACT, plainFlag,
2423 FLG_CZECHOSLOVAKFUNCTIONS,
2424 "czechoslovak naming convention violated in a function or iterator declaration",
2425 "Function name is not consistent with Czechoslovak naming convention.", 0, 0
2428 FK_NAMES, FK_ABSTRACT, plainFlag,
2429 "czechoslovakmacros",
2430 FLG_CZECHOSLOVAKMACROS,
2431 "czechoslovak naming convention violated in an expanded macro name",
2432 "Expanded macro name is not consistent with Czechoslovak naming convention.", 0, 0
2435 FK_NAMES, FK_ABSTRACT, plainFlag,
2437 FLG_CZECHOSLOVAKVARS,
2438 "czechoslovak naming convention violated in a variable declaration",
2439 "Variable name is not consistent with Czechoslovak naming convention.", 0, 0
2442 FK_NAMES, FK_ABSTRACT, plainFlag,
2443 "czechoslovakconsts",
2444 FLG_CZECHOSLOVAKCONSTANTS,
2445 "czechoslovak naming convention violated in a constant declaration",
2446 "Constant name is not consistent with Czechoslovak naming convention.", 0, 0
2449 FK_NAMES, FK_ABSTRACT, plainFlag,
2450 "czechoslovaktypes",
2451 FLG_CZECHOSLOVAKTYPES,
2452 "czechoslovak naming convention violated in a user-defined type definition",
2453 "Type name is not consistent with Czechoslovak naming convention. Czechoslovak "
2454 "type names may not include uppercase letters or the underscore character.", 0, 0
2457 FK_NAMES, FK_ANSI, modeFlag,
2460 "external name conflicts with name reserved for system or standard library",
2461 "External name is reserved for system use by ISO C99 standard.",
2465 FK_NAMES, FK_ANSI, modeFlag,
2468 "external or internal name is a C++ keyword or reserved word",
2469 "External name is a C++ keyword or reserved word. "
2470 "This could lead to problems if the "
2471 "code is compiled with a C++ compiler.",
2475 FK_NAMES, FK_ANSI, modeFlag,
2476 "isoreservedinternal",
2477 FLG_ANSIRESERVEDLOCAL,
2478 "internal name conflicts with name reserved for system or standard library",
2479 "Internal name is reserved for system in ISO C99 standard (this should not be necessary unless you are worried about C library implementations that violate the standard and use macros).",
2483 FK_NAMES, FK_ANSI, plainFlag,
2484 "distinctexternalnames",
2485 FLG_DISTINCTEXTERNALNAMES,
2486 "external name is not distinguishable from another external name using "
2487 "the number of significant characters",
2488 "An external name is not distinguishable from another external name "
2489 "using the number of significant characters. According to "
2490 "ANSI Standard (3.1), an implementation may only consider the first 6 "
2491 "characters significant, and ignore alphabetical case "
2492 "distinctions (ISO C99 requires 31). The "
2493 "+externalnamelen <n> flag may be used to change the number "
2494 "of significant characters, and -externalnamecaseinsensitive to make "
2495 "alphabetical case significant in external names.",
2499 FK_NAMES, FK_ANSI, specialValueFlag,
2501 FLG_EXTERNALNAMELEN,
2502 "set the number of significant characters in an external name",
2503 "Sets the number of significant characters in an external name (default is 6 for old "
2504 "ANSI89 limit, C99 requires 31). "
2505 "Sets +distinctexternalnames.",
2509 FK_NAMES, FK_ANSI, plainSpecialFlag,
2510 "externalnamecaseinsensitive",
2511 FLG_EXTERNALNAMECASEINSENSITIVE,
2512 "alphabetic comparisons for external names are case-insensitive",
2513 "Make alphabetic case insignificant in external names. By ANSI89 "
2514 "standard, case need not be significant in an external name. "
2515 "If +distinctexternalnames is not set, sets "
2516 "+distinctexternalnames with unlimited external name length.",
2520 FK_NAMES, FK_ANSI, plainFlag,
2521 "distinctinternalnames",
2522 FLG_DISTINCTINTERNALNAMES,
2523 "internal name is not distinguishable from another internal name using "
2524 "the number of significant characters",
2525 "An internal name is not distinguishable from another internal name "
2526 "using the number of significant characters. According to "
2527 "ANSI89 Standard (3.1), an implementation may only consider the first 31 "
2528 "characters significant (ISO C99 specified 63). The "
2529 "+internalnamelen <n> flag changes the number "
2530 "of significant characters, -internalnamecaseinsensitive to makes "
2531 "alphabetical case significant, and "
2532 "+internalnamelookalike to make similar-looking characters "
2537 FK_NAMES, FK_ANSI, specialValueFlag,
2539 FLG_INTERNALNAMELEN,
2540 "set the number of significant characters in an internal name",
2541 "Sets the number of significant characters in an internal name (ANSI89 "
2542 "default is 31.) Sets +distinctinternalnames.",
2546 FK_NAMES, FK_ANSI, plainSpecialFlag,
2547 "internalnamecaseinsensitive",
2548 FLG_INTERNALNAMECASEINSENSITIVE,
2549 "set whether case is significant an internal names "
2550 "(-internalnamecaseinsensitive means case is significant)" ,
2551 "Set whether case is significant an internal names "
2552 "(-internalnamecaseinsensitive "
2553 "means case is significant). By ANSI89 default, case is not "
2554 "significant. If +distinctinternalnames is not set, sets "
2555 "+distinctinternalnames with unlimited internal name length.",
2559 FK_NAMES, FK_ANSI, plainSpecialFlag,
2560 "internalnamelookalike",
2561 FLG_INTERNALNAMELOOKALIKE,
2562 "lookalike characters match in internal names",
2563 "Set whether similar looking characters (e.g., \"1\" and \"l\") "
2564 "match in internal names.",
2568 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2571 "set namespace prefix for variables declared in a macro body",
2572 "A variable declared in a macro body does not start with the macrovarprefix.",
2576 FK_NAMES, FK_PREFIX, plainFlag,
2577 "macrovarprefixexclude",
2578 FLG_MACROVARPREFIXEXCLUDE,
2579 "the macrovarprefix may not be used for non-macro variables",
2580 "A variable declared outside a macro body starts with the macrovarprefix.",
2584 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2587 "set namespace prefix for struct, union and enum tags",
2588 "A tag identifier does not start with the tagprefix.",
2592 FK_NAMES, FK_PREFIX, plainFlag,
2594 FLG_TAGPREFIXEXCLUDE,
2595 "the tagprefix may not be used for non-tag identifiers",
2596 "An identifier that is not a tag starts with the tagprefix.",
2600 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2603 "set namespace prefix for enum members",
2604 "An enum member does not start with the enumprefix.",
2608 FK_NAMES, FK_PREFIX, plainFlag,
2609 "enumprefixexclude",
2610 FLG_ENUMPREFIXEXCLUDE,
2611 "the enumprefix may not be used for non-enum member identifiers",
2612 "An identifier that is not an enum member starts with the enumprefix.",
2616 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2618 FLG_FILESTATICPREFIX,
2619 "set namespace prefix for file static declarations",
2620 "A file-static identifier does not start with the filestaticprefix.",
2624 FK_NAMES, FK_PREFIX, plainFlag,
2625 "filestaticprefixexclude",
2626 FLG_FILESTATICPREFIXEXCLUDE,
2627 "the filestaticprefix may not be used for identifiers that are not file static",
2628 "An identifier that is not file static starts with the filestaticprefix.",
2632 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2635 "set namespace prefix for global variables",
2636 "A global variable does not start with the globalprefix",
2640 FK_NAMES, FK_PREFIX, plainFlag,
2641 "globalprefixexclude",
2642 FLG_GLOBPREFIXEXCLUDE,
2643 "the globalprefix may not be used for non-global identifiers",
2644 "An identifier that is not a global variable starts with the globalprefix.",
2648 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2651 "set namespace prefix for user-defined types",
2652 "A user-defined type does not start with the typeprefix",
2656 FK_NAMES, FK_PREFIX, plainFlag,
2657 "typeprefixexclude",
2658 FLG_TYPEPREFIXEXCLUDE,
2659 "the typeprefix may not be used for identifiers that are not type names",
2660 "An identifier that is not a type name starts with the typeprefix.",
2664 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2667 "set namespace prefix for external identifiers",
2668 "An external identifier does not start with the externalprefix",
2672 FK_NAMES, FK_PREFIX, plainFlag,
2673 "externalprefixexclude",
2674 FLG_EXTERNALPREFIXEXCLUDE,
2675 "the externalprefix may not be used for non-external identifiers",
2676 "An identifier that is not external starts with the externalprefix.",
2680 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2683 "set namespace prefix for local variables",
2684 "A local variable does not start with the localprefix",
2688 FK_NAMES, FK_PREFIX, plainFlag,
2689 "localprefixexclude",
2690 FLG_LOCALPREFIXEXCLUDE,
2691 "the localprefix may not be used for non-local identifiers",
2692 "An identifier that is not a local variable starts with the localprefix.",
2696 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2697 "uncheckedmacroprefix",
2698 FLG_UNCHECKEDMACROPREFIX,
2699 "set namespace prefix for unchecked macros",
2700 "An unchecked macro name does not start with the uncheckedmacroprefix",
2704 FK_NAMES, FK_PREFIX, plainFlag,
2705 "uncheckedmacroprefixexclude",
2706 FLG_UNCHECKEDMACROPREFIXEXCLUDE,
2707 "the uncheckmacroprefix may not be used for identifiers that are not "
2709 "An identifier that is not the name of an unchecked macro "
2710 "starts with the uncheckedmacroprefix.",
2714 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2717 "set namespace prefix for constants",
2718 "A constant does not start with the constantprefix",
2722 FK_NAMES, FK_PREFIX, plainFlag,
2723 "constprefixexclude",
2724 FLG_CONSTPREFIXEXCLUDE,
2725 "the constprefix may not be used for non-constant identifiers",
2726 "An identifier that is not a constant starts with the constantprefix.",
2730 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2733 "set namespace prefix for iterators",
2734 "An iter does not start with the iterator prefix",
2738 FK_NAMES, FK_PREFIX, plainFlag,
2739 "iterprefixexclude",
2740 FLG_ITERPREFIXEXCLUDE,
2741 "the iterprefix may not be used for non-iter identifiers",
2742 "An identifier that is not a iter starts with the iterprefix.",
2746 FK_NAMES, FK_PREFIX, idemStringFlag, ARG_STRING,
2748 FLG_DECLPARAMPREFIX,
2749 "set namespace prefix for parameters in function prototype declarations",
2750 "A parameter name in a function prototype declaration does not start with the "
2751 "declaration parameter prefix",
2755 FK_NAMES, FK_PREFIX, modeFlag,
2758 "a parameter in a function prototype has a name",
2759 "A parameter in a function prototype has a name. This is dangerous, "
2760 "since a macro definition could be visible here.",
2764 FK_NAMES, FK_PREFIX, modeFlag,
2767 "the name of a parameter in a function prototype and corresponding "
2768 "declaration must match (after removing the protoparamprefix",
2769 "A parameter in a function definition does not have the same name as "
2770 "the corresponding in the declaration of the function after "
2771 "removing the protoparamprefix",
2775 FK_NAMES, FK_PREFIX, plainFlag,
2776 "protoparamprefixexclude",
2777 FLG_DECLPARAMPREFIXEXCLUDE,
2778 "the protoparamprefix may not be used for non-declaraction parameter identifiers",
2779 "An identifier that is not a parameter name in a function prototype "
2780 "starts with the protoparamprefix.",
2784 FK_LIMITS, FK_ANSI, modeValueFlag,
2786 FLG_CONTROLNESTDEPTH,
2787 "set maximum nesting depth of compound statements, iteration control "
2788 "structures, and selection control structures (ANSI89 minimum is 15; ISO99 is 63)",
2789 "Maximum number of control levels exceeded.",
2793 FK_LIMITS, FK_ANSI, modeValueFlag,
2795 FLG_STRINGLITERALLEN,
2796 "set maximum length of string literals (ANSI89 minimum is 509; ISO99 is 4095)",
2797 "Maximum length of string literal exceeded.",
2801 FK_LIMITS, FK_ANSI, modeValueFlag,
2803 FLG_NUMSTRUCTFIELDS,
2804 "set maximum number of fields in a struct or union (ANSI89 minimum is 127; ISO99 is 1023)",
2805 "Maximum number of fields in a struct or union exceeded.",
2809 FK_LIMITS, FK_ANSI, modeValueFlag,
2812 "set maximum number of members of an enum (ANSI89 minimum is 127; ISO99 is 1023)",
2813 "Limit on maximum number of members of an enum is exceeded.",
2817 FK_LIMITS, FK_ANSI, modeValueFlag,
2820 "set maximum number of nested #include files",
2821 "Maximum number of nested #include files exceeded.",
2825 FK_LIMITS, FK_ANSI, specialFlag,
2828 "check for violations of standard limits (controlnestdepth, "
2829 "stringliterallen, includenest, numstructfields, numenummembers) based on ANSI89 standard",
2834 FK_LIMITS, FK_ANSI, specialFlag,
2837 "check for violations of standard limits (controlnestdepth, "
2838 "stringliterallen, includenest, numstructfields, numenummembers) based on ISO99 standard",
2843 FK_NAMES, FK_NONE, plainFlag,
2847 "Naming convention is violated.",
2851 FK_NONE, FK_NONE, plainFlag,
2858 FK_NULL, FK_MEMORY, specialFlag,
2861 "misuses of null pointer",
2862 "A possibly null pointer is misused (sets nullderef, nullpass, "
2863 "nullref, nullassign, and nullstate).",
2867 FK_NT, FK_MEMORY, modeFlag,
2870 "misuse of nullterminated allocation",
2871 "A possibly non-nullterminated string/memory is used/referenced as a nullterminated one, ",
2875 FK_NT, FK_MEMORY, modeFlag,
2878 "possible out of bounds read",
2879 "An array or pointer access references memory beyond the array or buffer, ",
2883 FK_NT, FK_MEMORY, modeFlag,
2886 "possible buffer overflow from an out of bounds write",
2887 "Memory is set past the end of an array or or after the allocated buffer, ",
2892 FK_NT, FK_MEMORY, modeFlag,
2895 "Function has the post condition",
2896 "Splint has determined that the following statement is true after the function, ",
2901 FK_NT, FK_MEMORY, modeFlag,
2903 FLG_PARENCONSTRAINT,
2904 "parenthesize constraint term",
2905 "This flag is for debugging. This flag causes Splint to fully parentheses constraints, ",
2910 FK_NT, FK_MEMORY, modeFlag,
2911 "debugfcnconstraint",
2912 FLG_DEBUGFUNCTIONCONSTRAINT,
2913 "debuging constraint flas",
2914 "This flag is for debuging. It causes Splint to perform buffer overflow checking even if the errors would be surpressed. Normally buffer overflow checking will only be performed if the errors would be printed. ",
2919 FK_NT, FK_MEMORY, modeFlag,
2922 "Possible out-of-bounds store. Unable to resolve constraint:",
2923 "Splint was unable to resolve a constraint at the top of the function. If code is correct consider using explict annotation assertions, ",
2927 FK_NT, FK_MEMORY, modeFlag,
2929 FLG_ARRAYBOUNDSREAD,
2930 "Possible out-of-bounds read. Unable to resolve constraint:",
2931 "Splint was unable to resolve a constraint at the top of the function. If code is correct consider using explict annotation assertions, ",
2936 FK_NT, FK_MEMORY, modeFlag,
2938 FLG_FUNCTIONCONSTRAINT,
2939 "unresolved constraint",
2940 "Splint was unable to resolve a constraint at the top of the function. If code is correct consider using explict annotation assertions, ",
2943 /*drl7x added 6/18/01 */
2945 FK_NT, FK_MEMORY, modeFlag,
2948 "unable to verify ensures annotation",
2949 "Splint was unable to determine that the function satisfies a post condition given in an ensures annotation, ",
2954 FK_NT, FK_MEMORY, modeFlag,
2955 "constraintlocation",
2956 FLG_CONSTRAINTLOCATION,
2957 "display full c expression for every constraint generated",
2960 },/*drl added flag 4/26/01*/
2962 FK_NT, FK_MEMORY, modeFlag,
2963 "implictconstraint",
2964 FLG_IMPLICTCONSTRAINT,
2965 "Try to generate implicit constraints for functions",
2969 /*drl7x added 4/29/01 */
2971 FK_NT, FK_MEMORY, modeFlag,
2974 "Use limited OR expressions to resolve constraints",
2980 FK_NT, FK_MEMORY, modeFlag,
2982 FLG_NULLTERMINATEDWARNING,
2983 "misuse of nullterminated allocation",
2984 "WARNING:A user annotated non-nullterminated buffer is used/referenced as a nullterminated one, ",
2988 FK_NULL, FK_MEMORY, modeFlag,
2991 "possible dereferencce of null pointer",
2992 "A possibly null pointer is dereferenced. Value is "
2993 "either the result of a function which may return null "
2994 "(in which case, code should check it is not null), or a "
2995 "global, parameter or structure field declared with the "
3000 FK_TYPE, FK_NONE, modeFlag,
3003 "dereferencce of a function type",
3004 "A function type is dereferenced. The ANSI standard allows this "
3005 "because of implicit conversion of function designators, however the "
3006 "dereference is unnecessary.",
3010 FK_NULL, FK_MEMORY, modeFlag,
3013 "possibly null pointer passed as formal with no null annotation",
3014 "A possibly null pointer is passed as a parameter corresponding to "
3015 "a formal parameter with no /*@null@*/ annotation. If NULL "
3016 "may be used for this parameter, add a /*@null@*/ annotation "
3017 "to the function parameter declaration.",
3021 FK_NULL, FK_MEMORY, modeFlag,
3024 "possibly null pointer returned as result with no null annotation",
3025 "Function returns a possibly null pointer, but is not declared "
3026 "using /*@null@*/ annotation of result. If function may "
3027 "return NULL, add /*@null@*/ annotation to the return "
3028 "value declaration.",
3032 FK_NULL, FK_MEMORY, modeFlag,
3035 "possibly null pointer reachable from a reference with no null annotation",
3036 "A possibly null pointer is reachable from a parameter or global "
3037 "variable that is not declared using a /*@null@*/ annotation.",
3041 FK_NULL, FK_MEMORY, modeFlag,
3044 "inconsistent assignment or initialization involving null pointer",
3045 "A reference with no null annotation is assigned or initialized "
3046 "to NULL. Use /*@null@*/ to declare the reference as "
3047 "a possibly null pointer.",
3051 FK_OPS, FK_BOOL, modeFlag,
3054 "comparison between bools (dangerous because of multiple TRUE values)",
3055 "Two bool values are compared directly using a C primitive. This "
3056 "may produce unexpected results since all non-zero values are "
3057 "considered TRUE, so different TRUE values may not be equal. "
3058 "The file bool.h (included in splint/lib) provides bool_equal "
3059 "for safe bool comparisons.", 0, 0
3062 FK_OPS, FK_NONE, modeFlag,
3065 "dangerous comparison between reals (dangerous because of inexact "
3066 "floating point representations)",
3067 "Two real (float, double, or long double) values are compared "
3068 "directly using a C primitive. "
3069 "This may produce unexpected results since floating point "
3070 "representations are inexact. Instead, compare the difference to "
3071 "FLT_EPSILON or DBL_EPSILON.",
3075 FK_OPS, FK_NONE, modeFlag,
3077 FLG_UNSIGNEDCOMPARE,
3078 "comparison using <, <=, >= between an unsigned integral and zero constant",
3079 "An unsigned value is used in a comparison with zero in a way that is either a bug or confusing.",
3083 FK_OPS, FK_POINTER, modeFlag,
3086 "arithmetic involving pointer and integer",
3087 "Pointer arithmetic using pointer and integer.", 0, 0
3090 FK_OPS, FK_POINTER, modeFlag,
3092 FLG_NULLPOINTERARITH,
3093 "arithmetic involving possibly null pointer and integer",
3094 "Pointer arithmetic using a possibly null pointer and integer.", 0, 0
3097 FK_OPS, FK_POINTER, modeFlag,
3100 "comparison between pointer and number",
3101 "A pointer is compared to a number.", 0, 0
3104 FK_OPS, FK_TYPE, modeFlag,
3107 "primitive operation does not type check strictly",
3108 "A primitive operation does not type check strictly.", 0, 0
3111 FK_OPS, FK_TYPE, modeFlag,
3114 "a bitwise logical operator does not have unsigned operands",
3115 "An operand to a bitwise operator is not an unsigned values. This "
3116 "may have unexpected results depending on the signed "
3117 "representations.", 0, 0
3120 FK_OPS, FK_TYPE, modeFlag,
3123 "a shift right operand may be negative",
3124 "The right operand to a shift operator may be negative (behavior undefined).",
3128 FK_OPS, FK_TYPE, modeFlag,
3129 "shiftimplementation",
3130 FLG_SHIFTIMPLEMENTATION,
3131 "a shift left operand may be negative",
3132 "The left operand to a shift operator may be negative (behavior is implementation-defined).",
3136 FK_OPS, FK_BOOL, modeFlag,
3139 "primitive operation (!, && or ||) does not has a boolean argument",
3140 "The operand of a boolean operator is not a boolean. Use +ptrnegate "
3141 "to allow ! to be used on pointers.",
3145 FK_OPS, FK_POINTER, modeFlag,
3148 "allow ! to be used on pointer operand",
3149 "The operand of ! operator is a pointer.", 0, 0
3152 FK_OPS, FK_TYPE, modeFlag,
3155 "sizeof operator has a type argument",
3156 "Operand of sizeof operator is a type. (Safer to use expression, "
3157 "int *x = sizeof (*x); instead of sizeof (int).)",
3161 FK_OPS, FK_TYPE, plainFlag,
3162 "sizeofformalarray",
3163 FLG_SIZEOFFORMALARRAY,
3164 "sizeof operator has an array formal parameter argument",
3165 "Operand of a sizeof operator is a function parameter declared as "
3166 "an array. The value of sizeof will be the size of a pointer to the "
3167 "element type, not the number of elements in the array.",
3171 FK_DECL, FK_TYPE, plainFlag,
3173 FLG_FIXEDFORMALARRAY,
3174 "formal parameter of type array is declared with size",
3175 "A formal parameter is declared as an array with size. The size of the array "
3176 "is ignored in this context, since the array formal parameter is treated "
3181 FK_DECL, FK_TYPE, plainFlag,
3184 "formal parameter has an incomplete type",
3185 "A formal parameter is declared with an incomplete type.",
3189 FK_DECL, FK_TYPE, plainFlag,
3192 "formal parameter is an array",
3193 "A formal parameter is declared as an array. This can be confusing, since "
3194 "a formal array parameter is treated as a pointer.",
3198 FK_PRED, FK_BOOL, plainFlag,
3201 "condition test (if, while or for) is an assignment",
3202 "The condition test is an assignment expression. Probably, you mean "
3203 "to use == instead of =. If an assignment is intended, add an "
3204 "extra parentheses nesting (e.g., if ((a = b)) ...) to suppress "
3209 FK_PRED, FK_BOOL, specialFlag,
3212 "type of condition test (if, while or for) not bool (sets predboolint, "
3213 "predboolptr and predboolothers)",
3214 "Test expression type is not boolean.", 0, 0
3217 FK_PRED, FK_BOOL, modeFlag,
3220 "type of condition test (if, while or for) is an integral type",
3221 "Test expression type is not boolean or int.", 0, 0
3224 FK_PRED, FK_BOOL, modeFlag,
3227 "type of condition test (if, while or for) not bool, int or pointer",
3228 "Test expression type is not boolean.", 0, 0
3231 FK_PRED, FK_BOOL, modeFlag,
3234 "type of condition test (if, while or for) is a pointer",
3235 "Test expression type is not boolean.", 0, 0
3238 FK_PREPROC, FK_NONE, globalExtraArgFlag,
3241 "passed to pre-processor",
3245 FK_PREPROC, FK_NONE, globalExtraArgFlag,
3248 "passed to pre-processor",
3252 FK_PREPROC, FK_SYNTAX, plainFlag,
3254 FLG_UNRECOGDIRECTIVE,
3255 "unrecognized pre-processor directive",
3256 "Pre-processor directive is not recognized.",
3260 FK_GLOBALS, FK_NONE, modeFlag,
3263 "returns with global in inconsistent state (null or undefined)",
3264 "A global variable does not satisfy its annotations when control is transferred.",
3268 FK_SUPPRESS, FK_COMMENTS, globalFlag,
3271 "The number of errors detected does not match number in /*@i<n>@*/.",
3275 FK_SUPPRESS, FK_ERRORS, valueFlag,
3278 "limit <int> consecutive repeated errors",
3282 FK_SYNTAX, FK_NONE, plainFlag,
3285 "syntax error in parsing",
3286 "Code cannot be parsed. For help on parse errors, see splint -help parseerrors.",
3290 FK_SYNTAX, FK_NONE, plainFlag,
3293 "try to recover from parse error",
3294 "Try to recover from parse error. It really means try - this doesn't usually work.", 0, 0
3297 FK_SYNTAX, FK_PREPROC, plainFlag,
3304 FK_TYPE, FK_NONE, plainFlag,
3308 "Types are incompatible.",
3312 FK_TYPE, FK_NONE, plainFlag,
3315 "initializer sets all fields",
3316 "Initializer does not set every field in the structure.",
3320 FK_TYPE, FK_NONE, plainFlag,
3322 FLG_INITALLELEMENTS,
3323 "initializer defines all array elements",
3324 "Initializer does not define all elements of a declared array.",
3328 FK_TYPE, FK_NONE, plainFlag,
3331 "initializer defines extra array elements",
3332 "Initializer block contains more elements than the size of a declared array.",
3336 FK_TYPE, FK_NONE, plainFlag,
3337 "stringliteraltoolong",
3338 FLG_STRINGLITTOOLONG,
3339 "string literal too long for character array",
3340 "A string literal is assigned to a char array too small to hold it.",
3344 FK_TYPE, FK_NONE, modeFlag,
3345 "stringliteralnoroom",
3346 FLG_STRINGLITNOROOM,
3347 "string literal leaves no room for null terminator",
3348 "A string literal is assigned to a char array that is not big enough to hold the null terminator.",
3352 FK_TYPE, FK_NONE, modeFlag,
3353 "stringliteralsmaller",
3354 FLG_STRINGLITSMALLER,
3355 "string literal is smaller than the char array it is assigned to",
3356 "A string literal is assigned to a char array that smaller than the string literal needs.",
3360 FK_TYPE, FK_NONE, modeFlag,
3363 "enum members must be int values",
3364 "Type of initial values for enum members must be int.",
3369 FK_TYPE, FK_NONE, plainFlag,
3372 "type of main does not match expected type",
3373 "The function main does not match the expected type.",
3377 FK_TYPE, FK_NONE, plainFlag,
3380 "type-mismatch in parameter corresponding to format code in a printf or scanf-like function",
3381 "Type of parameter is not consistent with corresponding code in format string.",
3385 FK_TYPE, FK_NONE, modeFlag,
3388 "format parameter is not a string constant (hence variable arguments cannot be typechecked)",
3389 "Format parameter is not known at compile-time. This can lead to security vulnerabilities because the arguments cannot be type checked.",
3393 FK_TYPE, FK_NONE, plainFlag,
3396 "invalid format code in format string for printf or scanf-like function",
3397 "Format code in a format string is not valid.",
3401 FK_TYPEEQ, FK_ABSTRACT, modeFlag,
3404 "forward declarations of pointers to abstract representation match abstract type",
3408 FK_TYPEEQ, FK_ABSTRACT, modeFlag,
3411 "void * matches pointers to abstract types, casting ok (dangerous)",
3412 "A pointer to void is cast to a pointer to an abstract type (or vice versa).",
3416 FK_TYPEEQ, FK_POINTER, plainFlag,
3419 "a pointer to a function is cast to a pointer to void (or vice versa)",
3420 "A pointer to a function is cast to (or used as) a pointer to void (or vice versa).",
3424 FK_TYPEEQ, FK_ARRAY, modeFlag,
3427 "char can be used to index arrays",
3428 "To allow char types to index arrays, use +charindex.", 0, 0
3431 FK_TYPEEQ, FK_ARRAY, modeFlag,
3434 "enum can be used to index arrays",
3435 "To allow enum types to index arrays, use +enumindex.", 0, 0
3438 FK_TYPEEQ, FK_BOOL, modeFlag,
3441 "bool and int are equivalent",
3442 "To make bool and int types equivalent, use +boolint.",
3446 FK_TYPEEQ, FK_NONE, modeFlag,
3449 "char and int are equivalent",
3450 "To make char and int types equivalent, use +charint.",
3454 FK_TYPEEQ, FK_NONE, modeFlag,
3457 "enum and int are equivalent",
3458 "To make enum and int types equivalent, use +enumint.",
3462 FK_TYPEEQ, FK_NONE, modeFlag,
3465 "float and double are equivalent",
3466 "To make float and double types equivalent, use +floatdouble.",
3470 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3473 "ignore type qualifiers (long, short, unsigned)",
3474 "To ignore type qualifiers in type comparisons use +ignorequals.",
3478 FK_TYPEEQ, FK_SYNTAX, plainFlag,
3481 "report duplicate type qualifiers (e.g., long long)",
3482 "Duplicate type qualifiers not supported by ANSI. Some "
3483 "compilers (e.g., gcc) do support duplicate qualifiers.",
3487 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3490 "ignore signs in type comparisons (unsigned matches signed)",
3491 "To ignore signs in type comparisons use +ignoresigns",
3495 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3498 "int literals can be reals",
3499 "An int literal is used as any numeric type (including float and long long). Use +numliteral to "
3500 "allow int literals to be used as any numeric type.",
3504 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3507 "character constants (e.g., 'a') can be used as ints",
3508 "A character constant is used as an int. Use +charintliteral to "
3509 "allow character constants to be used as ints. (This is safe "
3510 "since the actual type of a char constant is int.)",
3514 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3517 "report qualifier mismatches only if dangerous",
3518 "To allow qualifier mismatches that are not dangerous, use +relaxquals.", 0, 0
3521 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3524 "allow all numeric types to match",
3525 "To allow all numeric types to match, use +relaxtypes.", 0, 0
3528 FK_TYPEEQ, FK_NONE, modeFlag,
3530 FLG_CHARUNSIGNEDCHAR,
3531 "allow char and unsigned char types to match",
3532 "To allow char and unsigned char types to match use +charunsignedchar.",
3536 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3538 FLG_MATCHANYINTEGRAL,
3539 "allow any intergral type to match an arbitrary integral type (e.g., dev_t)",
3540 "To allow arbitrary integral types to match any integral type, use +matchanyintegral.",
3544 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3545 "longunsignedintegral",
3546 FLG_LONGUNSIGNEDINTEGRAL,
3547 "allow long unsigned type to match an arbitrary integral type (e.g., dev_t)",
3548 "To allow arbitrary integral types to match long unsigned, use +longunsignedintegral.",
3552 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3555 "allow long type to match an arbitrary integral type (e.g., dev_t)",
3556 "To allow arbitrary integral types to match long unsigned, use +longintegral.",
3560 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3561 "longunsignedunsignedintegral",
3562 FLG_LONGUNSIGNEDUNSIGNEDINTEGRAL,
3563 "allow long unsigned type to match an arbitrary unsigned integral type (e.g., size_t)",
3564 "To allow arbitrary unsigned integral types to match long unsigned, "
3565 "use +longunsignedunsignedintegral.",
3569 FK_TYPEEQ, FK_NUMBERS, modeFlag,
3570 "longsignedintegral",
3571 FLG_LONGSIGNEDINTEGRAL,
3572 "allow long type to match an arbitrary signed integral type (e.g., ssize_t)",
3573 "To allow arbitrary signed integral types to match long unsigned, use +longsignedintegral.",
3577 FK_TYPEEQ, FK_POINTER, plainFlag,
3580 "0 is treated as a pointer",
3584 FK_TYPEEQ, FK_BOOL, modeFlag,
3587 "0 is treated as a boolean",
3591 FK_UNRECOG, FK_DISPLAY, plainFlag,
3594 "do not suppress repeated unrecognized identifier messages (instead of only reporting the first error)",
3595 "Identifier used in code has not been declared. (Message repeated for future uses in this file.)",
3599 FK_UNRECOG, FK_DISPLAY, plainFlag,
3602 "report unrecognized identifiers with system (__) prefix",
3603 "Identifier used in code has not been declared. (Message repeated for "
3604 "future uses in this file.) Use +gnuextensions to make Splint "
3605 "recognize some keywords that are gnu extensions.",
3609 FK_UNRECOG, FK_NONE, plainFlag,
3612 "unrecognized identifier",
3613 "Identifier used in code has not been declared.", 0, 0
3616 FK_USE, FK_COMPLETE, modeFlag,
3619 "declaration at top level not used",
3620 "An external declaration not used in any source file.", 0, 0
3623 FK_USE, FK_EXPORT, modeFlag,
3626 "a declaration is exported but not used outside this module",
3627 "A declaration is exported, but not used outside this module. "
3628 "Declaration can use static qualifier.",
3632 FK_USE, FK_EXPORT, modeFlag,
3635 "a declaration is exported but does not appear in a header file",
3636 "A declaration is exported, but does not appear in a header file.",
3640 FK_USE, FK_EXPORT, modeFlag,
3642 FLG_EXPORTHEADERVAR,
3643 "a variable declaration is exported but does not appear in a header file",
3644 "A variable declaration is exported, but does not appear in a header "
3645 "file. (Used with exportheader.)",
3649 FK_USE, FK_NONE, modeFlag,
3652 "field of structure type not used",
3653 "A field is present in a structure type but never used. Use /*@unused@*/ in front of field declaration to suppress message.",
3657 FK_USE, FK_NONE, modeFlag,
3660 "member of an enum type not used",
3661 "A member of an enum type is never used.",
3665 FK_USE, FK_NONE, modeFlag,
3668 "constant declared but not used",
3669 "A constant is declared but not used. Use unused in the constant declaration to suppress message.",
3673 FK_USE, FK_NONE, modeFlag,
3676 "function declared but not used",
3677 "A function is declared but not used. Use /*@unused@*/ in front of function header to suppress message.",
3681 FK_USE, FK_PARAMS, modeFlag,
3684 "function parameter not used ",
3685 "A function parameter is not used in the body of the function. If the argument is needed for type compatibility or future plans, use /*@unused@*/ in the argument declaration.",
3689 FK_USE, FK_TYPE, modeFlag,
3692 "type declared but not used",
3693 "A type is declared but not used. Use /*@unused@*/ in front of typedef to suppress messages.",
3697 FK_USE, FK_NONE, modeFlag,
3700 "variable declared but not used",
3701 "A variable is declared but never used. Use /*@unused@*/ in front "
3702 "of declaration to suppress message.",
3706 FK_USE, FK_COMPLETE, modeFlag,
3709 "unused declaration in special file (corresponding to .l or .y file)",
3713 FK_DECL, FK_TYPE, modeFlag,
3714 "redundantsharequal",
3715 FLG_REDUNDANTSHAREQUAL,
3716 "declaration uses observer qualifier that is always true",
3717 "A declaration of an immutable object uses a redundant observer qualifier.",
3721 FK_DECL, FK_TYPE, modeFlag,
3722 "misplacedsharequal",
3723 FLG_MISPLACEDSHAREQUAL,
3724 "declaration of unsharable storage uses sharing annotation",
3725 "A declaration of an unsharable object uses a sharing annotation.",
3729 FK_DECL, FK_TYPE, plainFlag,
3731 FLG_ANNOTATIONERROR,
3732 "annotation is used in inconsistent location",
3733 "A declaration uses an invalid annotation.",
3737 FK_DECL, FK_TYPE, plainFlag,
3740 "inconsistent syntactic comment",
3741 "A syntactic comment is used inconsistently.",
3745 FK_DEBUG, FK_NONE, debugFlag,
3752 FK_DEBUG, FK_NONE, valueFlag,
3755 "set maximum number of bugs detected before giving up",
3760 FK_HELP, FK_NONE, plainFlag,
3763 "warn when command line file does not have a recognized extension",
3767 FK_DECL, FK_NONE, plainFlag,
3770 "warn when declaration marked with warn is used",
3771 "Declaration marked with warn clause is used (can be suppresed by more specific flags).",
3775 FK_MEMORY, FK_DEF, modeFlag,
3778 "storage has been transfered with invalid state",
3779 "Transfer violates user-defined state rules.",
3783 FK_MEMORY, FK_DEF, modeFlag,
3786 "control paths merge with storage in incompatible states",
3787 "Control path merge violates user-defined state merge rules.",
3792 ** The its4 level flags must appear in order.
3796 FK_WARNUSE, FK_SECURITY, specialFlag,
3799 "most risky security vulnerabilities (from its4 database)",
3800 "Security vulnerability classified as most risky in its4 database.",
3804 FK_WARNUSE, FK_SECURITY, specialFlag,
3807 "very risky security vulnerabilities (from its4 database)",
3808 "Security vulnerability classified as very risky in its4 database.",
3812 FK_WARNUSE, FK_SECURITY, specialFlag,
3815 "risky security vulnerabilities (from its4 database)",
3816 "Security vulnerability classified as risky in its4 database.",
3820 FK_WARNUSE, FK_SECURITY, specialFlag,
3822 FLG_ITS4MODERATERISK,
3823 "moderately risky security vulnerabilities (from its4 database)",
3824 "Security vulnerability classified as moderate risk in its4 database.",
3828 FK_WARNUSE, FK_SECURITY, specialFlag,
3831 "risky security vulnerabilities (from its4 database)",
3832 "Security vulnerability classified as risky in its4 database.",
3837 ** End of its4 level flags
3841 FK_WARNUSE, FK_SECURITY, modeFlag,
3842 "bufferoverflowhigh",
3843 FLG_BUFFEROVERFLOWHIGH,
3844 "likely buffer overflow vulnerability",
3845 "Use of function that may lead to buffer overflow.",
3849 FK_WARNUSE, FK_SECURITY, modeFlag,
3852 "possible buffer overflow vulnerability",
3853 "Use of function that may lead to buffer overflow.",
3857 FK_WARNUSE, FK_SECURITY, modeFlag,
3860 "possible time of check, time of use vulnerability",
3861 "Possible time of check, time of use vulnerability.",
3865 FK_WARNUSE, FK_SECURITY, modeFlag,
3868 "function is not reentrant",
3869 "Non-reentrant function should not be used in multithreaded code.",
3873 FK_WARNUSE, FK_SECURITY, modeFlag,
3876 "function may have undefined behavior",
3877 "Use of function that may have implementation-dependent behavior.",
3881 FK_WARNUSE, FK_SECURITY, modeFlag,
3884 "function is not required in Standard UNIX Specification",
3885 "Use of function that need not be provided by UNIX implementations",
3889 FK_WARNUSE, FK_SECURITY, modeFlag,
3892 "function is restricted to superusers",
3893 "Call to function restricted to superusers.",
3897 FK_WARNUSE, FK_SECURITY, modeFlag,
3898 "implementationoptional",
3899 FLG_IMPLEMENTATIONOPTIONAL,
3900 "declarator is implementation optional (ISO99 does not require an implementation to provide it)",
3901 "Use of a declarator that is implementation optional, not required by ISO99.",
3905 FK_WARNUSE, FK_NONE, modeFlag,
3908 "legacy declaration in Unix Standard",
3909 "Use of a declarator that is marked as a legacy entry in the Unix Standard.",