]> andersk Git - splint.git/blame - test/help.expect
Added manual test cases.
[splint.git] / test / help.expect
CommitLineData
885824d3 1
2Source files are .c, .h and .lcl files. If there is no suffix,
11db3170 3 Splint will look for <file>.c and <file>.lcl.
885824d3 4
11db3170 5Use splint -help <topic or flag name> for more information
885824d3 6
7Topics:
8
9 annotations (describes source-code annotations)
10 comments (describes control comments)
11 flags (describes flag categories)
12 flags <category> (describes flags in category)
13 flags all (short description of all flags)
14 flags alpha (list all flags alphabetically)
15 flags full (full description of all flags)
16 mail (information on mailing lists)
17 modes (show mode settings)
18 parseerrors (help on handling parser errors)
19 prefixcodes (character codes in namespace prefixes)
20 references (sources for more information)
21 vars (environment variables)
22 version (information on compilation, maintainer)
23
24
11db3170 25Finished checking --- no code processed
885824d3 26
27Source files are .c, .h and .lcl files. If there is no suffix,
11db3170 28 Splint will look for <file>.c and <file>.lcl.
885824d3 29
11db3170 30Use splint -help <topic or flag name> for more information
885824d3 31
32Topics:
33
34 annotations (describes source-code annotations)
35 comments (describes control comments)
36 flags (describes flag categories)
37 flags <category> (describes flags in category)
38 flags all (short description of all flags)
39 flags alpha (list all flags alphabetically)
40 flags full (full description of all flags)
41 mail (information on mailing lists)
42 modes (show mode settings)
43 parseerrors (help on handling parser errors)
44 prefixcodes (character codes in namespace prefixes)
45 references (sources for more information)
46 vars (environment variables)
47 version (information on compilation, maintainer)
48
49
60868d40 50
15b3d2b2 51Command Line: Unrecognized option: asdf
2e127cb8 52 A flag is not recognized or used in an incorrect way (Use -badflag to inhibit
53 warning)
885824d3 54
11db3170 55Finished checking --- no code processed
885824d3 56
57Warning: setting +boolint redundant with current value
58
11db3170 59Finished checking --- no code processed
885824d3 60
61 D<initializer>
62 I<directory>
63 S<directory>
64 U<initializer>
65 abstract
66 accessall
67 accessczech
68 accessczechoslovak
69 accessfile
70 accessmodule
71 accessslovak
72 aliasunique
73 allblock
74 allempty
75 allglobs
76 allimponly
77 allmacros
15b3d2b2 78 annotationerror
27c9e640 79 ansi89limits
15b3d2b2 80 arraybounds
81 arrayboundsread
8e349e11 82 arrayread
83 arraywrite
885824d3 84 assignexpose
85 badflag
86 bitwisesigned
885824d3 87 boolcompare
88 boolfalse
89 boolint
90 boolops
91 booltrue
92 booltype
93 branchstate
8e349e11 94 bufferoverflow
15b3d2b2 95 bufferoverflowhigh
96 bugslimit
885824d3 97 casebreak
98 castexpose
99 castfcnptr
100 charindex
101 charint
102 charintliteral
103 charunsignedchar
104 checkedglobalias
105 checkmodglobalias
15b3d2b2 106 checkpost
885824d3 107 checkstrictglobalias
108 checkstrictglobs
109 codeimponly
110 commentchar
15b3d2b2 111 commenterror
885824d3 112 compdef
113 compdestroy
114 compmempass
115 constmacros
116 constprefix
117 constprefixexclude
15b3d2b2 118 constraintlocation
885824d3 119 constuse
120 continuecomment
121 controlnestdepth
122 cppnames
123 czech
124 czechconsts
125 czechfcns
126 czechmacros
127 czechoslovak
128 czechoslovakconsts
129 czechoslovakfcns
130 czechoslovakmacros
131 czechoslovaktypes
132 czechoslovakvars
133 czechtypes
134 czechvars
15b3d2b2 135 debugfcnconstraint
885824d3 136 declundef
137 deepbreak
138 deparrays
139 dependenttrans
140 distinctexternalnames
141 distinctinternalnames
142 dump
143 duplicatequals
144 elseifcomplete
145 enumindex
146 enumint
147 enummembers
148 enummemuse
149 enumprefix
150 enumprefixexclude
151 evalorder
152 evalorderuncon
153 exitarg
154 expect
155 exportany
156 exportconst
157 exportfcn
158 exportheader
159 exportheadervar
160 exportiter
161 exportlocal
162 exportmacro
163 exporttype
164 exportvar
165 exposetrans
166 externalnamecaseinsensitive
167 externalnamelen
168 externalprefix
169 externalprefixexclude
170 f
8e349e11 171 fcnconstraint
885824d3 172 fcnderef
173 fcnmacros
8e349e11 174 fcnpost
885824d3 175 fcnuse
176 fielduse
15b3d2b2 177 fileextensions
885824d3 178 filestaticprefix
179 filestaticprefixexclude
180 firstcase
181 fixedformalarray
182 floatdouble
183 forblock
184 forcehints
185 forempty
3e3ec469 186 forloopexec
885824d3 187 formalarray
188 formatcode
15b3d2b2 189 formatconst
885824d3 190 formattype
191 forwarddecl
192 freshtrans
193 fullinitblock
194 globalias
195 globalprefix
196 globalprefixexclude
197 globimponly
198 globnoglobs
199 globs
200 globsimpmodsnothing
201 globstate
202 globuse
203 gnuextensions
204 hasyield
205 help
206 hints
207 i
208 ifblock
209 ifempty
210 ignorequals
211 ignoresigns
212 immediatetrans
213 impabstract
214 impcheckedglobs
215 impcheckedspecglobs
216 impcheckedstatics
217 impcheckedstrictglobs
218 impcheckedstrictspecglobs
219 impcheckedstrictstatics
220 impcheckmodglobs
221 impcheckmodinternals
222 impcheckmodspecglobs
223 impcheckmodstatics
224 impconj
15b3d2b2 225 implementationoptional
226 implictconstraint
885824d3 227 impouts
228 imptype
229 includenest
230 incompletetype
231 incondefs
232 incondefslib
15b3d2b2 233 indentspaces
885824d3 234 infloops
235 infloopsuncon
8fe44445 236 initallelements
237 initsize
885824d3 238 internalglobs
239 internalglobsnoglobs
240 internalnamecaseinsensitive
241 internalnamelen
242 internalnamelookalike
27c9e640 243 iso99limits
244 isolib
245 isoreserved
246 isoreservedinternal
3e3ec469 247 iterloopexec
885824d3 248 iterprefix
249 iterprefixexclude
15b3d2b2 250 its4low
251 its4moderate
252 its4mostrisky
253 its4risky
254 its4veryrisky
885824d3 255 keeptrans
256 kepttrans
257 larchpath
258 lclexpect
259 lclimportdir
260 lcs
79127b5d 261 legacy
885824d3 262 lh
263 libmacros
264 likelybool
265 limit
266 linelen
267 lintcomments
268 load
269 localprefix
270 localprefixexclude
271 longintegral
272 longsignedintegral
273 longunsignedintegral
274 longunsignedunsignedintegral
275 loopexec
276 looploopbreak
277 looploopcontinue
278 loopswitchbreak
279 macroassign
280 macroconstdecl
281 macrodecl
282 macroempty
283 macrofcndecl
284 macromatchname
285 macroparams
286 macroparens
287 macroredef
288 macrostmt
289 macrounrecog
290 macrovarprefix
291 macrovarprefixexclude
292 maintype
293 matchanyintegral
294 matchfields
295 mayaliasunique
296 memchecks
297 memimp
298 memtrans
15b3d2b2 299 misplacedsharequal
885824d3 300 misscase
301 modfilesys
302 modglobs
303 modglobsnomods
304 modglobsunchecked
305 modinternalstrict
306 modnomods
307 modobserver
308 modobserveruncon
309 mods
310 modsimpnoglobs
311 modstrictglobsnomods
312 moduncon
313 modunconnomods
314 modunspec
15b3d2b2 315 mts
316 multithreaded
885824d3 317 mustdefine
318 mustfree
2e127cb8 319 mustfreefresh
320 mustfreeonly
885824d3 321 mustmod
322 mustnotalias
323 mutrep
324 namechecks
325 needspec
326 nestcomment
327 nestedextern
328 neverinclude
329 newdecl
330 newreftrans
331 nextlinemacros
332 noaccess
333 nocomments
334 noeffect
335 noeffectuncon
336 nof
337 nolib
338 noparams
339 noret
340 null
341 nullassign
342 nullderef
343 nullpass
344 nullptrarith
345 nullret
346 nullstate
8e349e11 347 nullterminated
348 nullterminated
885824d3 349 numenummembers
350 numliteral
351 numstructfields
352 observertrans
3e3ec469 353 obviousloopexec
885824d3 354 oldstyle
355 onlytrans
356 onlyunqglobaltrans
15b3d2b2 357 orconstraint
885824d3 358 overload
359 ownedtrans
360 paramimptemp
361 paramuse
15b3d2b2 362 parenconstraint
885824d3 363 parenfileformat
364 partial
365 passunknown
1d239d69 366 portability
885824d3 367 posixlib
368 posixstrictlib
369 predassign
370 predbool
371 predboolint
372 predboolothers
373 predboolptr
374 protoparammatch
375 protoparamname
376 protoparamprefix
377 protoparamprefixexclude
378 ptrarith
379 ptrcompare
380 ptrnegate
381 quiet
382 readonlystrings
383 readonlytrans
384 realcompare
385 redecl
386 redef
15b3d2b2 387 redundantsharequal
885824d3 388 refcounttrans
389 relaxquals
390 relaxtypes
391 repeatunrecog
392 repexpose
393 retalias
394 retexpose
395 retimponly
396 retval
397 retvalbool
398 retvalint
399 retvalother
400 sefparams
401 sefuncon
402 shadow
403 sharedtrans
a956d444 404 shiftimplementation
405 shiftnegative
885824d3 406 showallconjs
407 showalluses
408 showcolumn
409 showfunc
410 showscan
411 showsummary
412 singleinclude
413 sizeofformalarray
414 sizeoftype
415 skipansiheaders
416 skipposixheaders
417 skipsysheaders
1f11dead 418 slashslashcomment
885824d3 419 slovak
420 slovakconsts
421 slovakfcns
422 slovakmacros
423 slovaktypes
424 slovakvars
425 specglobimponly
426 specimponly
427 specmacros
428 specretimponly
429 specstructimponly
430 specundecl
431 specundef
432 stackref
15b3d2b2 433 statemerge
434 statetransfer
885824d3 435 staticinittrans
436 statictrans
437 stats
438 strictbranchstate
439 strictdestroy
440 strictlib
441 strictops
442 strictusereleased
443 stringliterallen
8fe44445 444 stringliteralnoroom
445 stringliteralsmaller
446 stringliteraltoolong
885824d3 447 structimponly
448 supcounts
15b3d2b2 449 superuser
885824d3 450 switchloopbreak
451 switchswitchbreak
452 syntax
453 sysdirerrors
454 sysdirexpandmacros
455 sysdirs
456 sysunrecog
457 tagprefix
458 tagprefixexclude
459 temptrans
460 timedist
461 tmpcomments
462 tmpdir
15b3d2b2 463 toctou
885824d3 464 topuse
465 trytorecover
466 type
467 typeprefix
468 typeprefixexclude
469 typeuse
470 uncheckedglobalias
471 uncheckedmacroprefix
472 uncheckedmacroprefixexclude
473 uniondef
474 unixlib
1d239d69 475 unixstandard
885824d3 476 unixstrictlib
477 unqualifiedinittrans
478 unqualifiedtrans
479 unreachable
480 unrecog
481 unrecogcomments
15b3d2b2 482 unrecogflagcomments
4c9767b3 483 unrecognizeddirective
1d239d69 484 unsignedcompare
885824d3 485 unusedspecial
486 usedef
487 usereleased
488 usestderr
489 usevarargs
490 varuse
491 voidabstract
492 warnflags
493 warnlintcomments
494 warnmissingglobs
495 warnmissingglobsnoglobs
496 warnposixheaders
60868d40 497 warnrc
885824d3 498 warnunixlib
15b3d2b2 499 warnuse
885824d3 500 whichlib
501 whileblock
502 whileempty
3e3ec469 503 whileloopexec
cc78dedd 504 zerobool
885824d3 505
506
885824d3 507likelybool --- type name is probably a boolean type but does not match default
508boolean type name, "bool", and alternate name is not set
509impabstract --- assume user type definitions are abstract (unless
510/*@concrete@*/ is used)
511accessall --- set accessmodule, accessfile and accessczech
512accessmodule --- allow access to abstract types in definition module
513accessfile --- allow access to abstract types by file name convention
514accessczech --- allow access to abstract types by czech naming convention
515accessslovak --- allow access to abstract types by slovak naming convention
516accessczechoslovak --- allow access to abstract types by czechoslovak naming
517convention
518abstract --- data abstraction barriers
519mutrep --- representation of mutable type has sharing semantics
520globalias --- function returns with global aliasing external state (sets
521checkstrictglobalias, checkedglobalias, checkmodglobalias and
522uncheckedglobalias)
523checkstrictglobalias --- function returns with a checkstrict global aliasing
524external state
525checkedglobalias --- function returns with a checked global aliasing external
526state
527checkmodglobalias --- function returns with a checkmod global aliasing external
528state
529uncheckedglobalias --- function returns with an unchecked global aliasing
530external state
531aliasunique --- unique parameter is aliased
532mayaliasunique --- unique parameter may be aliased
533mustnotalias --- temp storage aliased at return point or scope exit
534retalias --- function returns alias to parameter or global
535noparams --- function declaration has no parameter list
536oldstyle --- old style function definition
537gnuextensions --- support some gnu (gcc) language extensions
538usevarargs --- non-standard <varargs.h> included
539warnposixheaders --- a POSIX header is included, but the POSIX library is not
540used
541exitarg --- argument to exit has implementation defined behavior
542evalorder --- code has unspecified or implementation-dependent behavior because
543of order of evaluation
544evalorderuncon --- code involving call to unspecified function has undefined or
545implementation-dependent behavior
546boolfalse --- set name of boolean false (default FALSE)
547booltype --- set name of boolean type (default bool)
548booltrue --- set name of boolean true (default TRUE)
549noaccess --- ignore access comments
550nocomments --- ignore all stylized comments
551unrecogcomments --- stylized comment is unrecognized
15b3d2b2 552unrecogflagcomments --- stylized flag comment uses an unrecognized flag
885824d3 553continuecomment --- line continuation marker (\) in comment before */ on same
554line
1f11dead 555slashslashcomment --- C++ style // comment
885824d3 556nestcomment --- comment begins inside comment
557tmpcomments --- interpret t comments (ignore errors in lines marked with
558/*@t<n>@*/
559lintcomments --- interpret traditional lint comments (/*FALLTHROUGH*/,
560/*NOTREACHED*/)
561warnlintcomments --- print a warning and suggest an alternative when a
562traditional lint comment is used
563declundef --- function or variable declared but never defined
564specundef --- function or variable specified but never defined
565specundecl --- function or variable specified but never declared in a source
566file
3e3ec469 567loopexec --- assume all loops execute at least once (sets forloopexec,
568whileloopexec and iterloopexec)
569forloopexec --- assume all for loops execute at least once
570whileloopexec --- assume all while loops execute at least once
571iterloopexec --- assume all iterator loops execute at least once
572obviousloopexec --- assume loop that can be determined to always execute always
573does
885824d3 574infloops --- likely infinite loop is detected
575infloopsuncon --- likely infinite loop is detected (may result from
576unconstrained function)
577deepbreak --- break inside nested while or for or switch
578looploopbreak --- break inside nested while or for
579switchloopbreak --- break in loop inside switch
580loopswitchbreak --- break in switch inside loop
581switchswitchbreak --- break in switch inside switch
582looploopcontinue --- continue inside nested loop
583unreachable --- unreachable code detected
584whileempty --- a while statement has no body
585whileblock --- the body of a while statement is not a block
586forempty --- a for statement has no body
587forblock --- the body of a for statement is not a block
588ifempty --- an if statement has no body
589ifblock --- the body of an if statement is not a block
590allempty --- an if, while or for statement has no body (sets ifempty,
591whileempty and forempty
592allblock --- the body of an if, while or for statement is not a block (sets
593ifblock, whileblock and forblock)
594elseifcomplete --- if ... else if chains must have final else
595noret --- path with no return detected in non-void function
596casebreak --- non-empty case in a switch without preceding break
597misscase --- switch on enum type missing case for some value
598firstcase --- first statement in switch is not a case
599shadow --- declaration reuses name visible in outer scope
600incondefslib --- function, variable or constant defined in a library is
601redefined with inconsistent type
602overload --- library function overloaded
603nestedextern --- an extern declaration is inside a function scope
604redecl --- function or variable redeclared
605redef --- function or variable redefined
606incondefs --- function, variable or constant redefined with inconsistent type
607imptype --- variable declaration has unknown (implicitly int) type
608matchfields --- struct or enum type redefined with inconsistent fields or
609members
610usedef --- use before definition
611impouts --- pointer parameters to unspecified functions may be implicit out
612parameters
613tmpdir --- set directory for writing temp files
614larchpath --- set path for searching for library files (overrides LARCH_PATH
615environment variable)
616lclimportdir --- set directory to search for LCL import files (overrides
617LCLIMPORTDIR)
618sysdirs --- set directories for system files (default /usr/include). Separate
15b3d2b2 619directories with path separator (colons in Unix, semi-colons in Windows). Flag
620settings propagate to files in a system directory. If -sysdirerrors is set, no
621errors are reported for files in system directories.
885824d3 622skipansiheaders --- prevent inclusion of header files in a system directory
623with names that match standard ANSI headers. The symbolic information in the
624standard library is used instead. Flag in effect only if a library including
625the ANSI library is loaded. The ANSI headers are:
626assert, ctype, errno, float, limits, locale, math, setjmp, signal, stdarg,
627stddef, stdio, stdlib, strings, string, time, and wchar.
628skipposixheaders --- prevent inclusion of header files in a system directory
629with names that match standard POSIX headers. The symbolic information in the
630posix library is used instead. The POSIX headers are:
631dirent, fcntl, grp, pwd, termios, sys/stat, sys/times, sys/types, sys/utsname,
632sys/wait, unistd, and utime.
633sysdirerrors --- report errors in files in system directories (set by -sysdirs)
634sysdirexpandmacros --- expand macros in system directories regardless of other
635settings, except for macros corresponding to names defined in a load library
636I<directory> --- add to C include path
637S<directory> --- add to spec path
638quiet --- suppress herald and error count
639usestderr --- send error messages to standard error (instead of standard out)
640showsummary --- show summary of all errors reported and suppressed
641showscan --- show file names are they are processed
642stats --- display lines processed and time
643timedist --- display time distribution
644showalluses --- show sorted list of uses of all globals
645noeffect --- statement with no effect
646noeffectuncon --- statement with no effect (except possibly through call to
647unconstrained function)
648exportany --- variable, function or type exported but not specified
649exportfcn --- function exported but not specified
650exportmacro --- expanded macro exported but not specified
651exporttype --- type definition exported but not specified
652exportvar --- variable exported but not specified
653exportconst --- constant exported but not specified
654exportiter --- constant exported but not specified
655repexpose --- abstract representation is exposed (sets assignexpose, retexpose,
656and castexpose)
657retexpose --- abstract representation is exposed (return values only)
658assignexpose --- abstract representation is exposed (assignments only)
659castexpose --- abstract representation is exposed through a cast
660linelen --- set length of messages (number of chars)
15b3d2b2 661indentspaces --- set number of spaces to indent sub-messages
885824d3 662showcolumn --- show column number where error is found
663parenfileformat --- show column number where error is found
664showfunc --- show name of function containing error
665showallconjs --- show all possible types
666impconj --- make all alternate types implicit (useful for making system
667libraries
668expect --- expect <int> code errors
669lclexpect --- expect <int> spec errors
670partial --- check as partial system (-specundef, -declundef, -exportlocal,
671don't check macros in headers without corresponding .c files)
672globs --- undocumented use of a checked global variable
673globuse --- global listed for a function not used
674internalglobs --- use of internalState
675internalglobsnoglobs --- use of internalState (in function with no globals
676list)
677warnmissingglobs --- global variable used in modifies clause is not listed in
678globals list
679warnmissingglobsnoglobs --- global variable used in modifies clause in a
680function with no globals list
681globnoglobs --- use of checked global in a function with no globals list or
682specification
683allglobs --- report use and modification errors for globals not annotated with
684unchecked
685checkstrictglobs --- report use and modification errors for checkedstrict
686globals
687impcheckedspecglobs --- assume checked qualifier for unqualified global
688declarations in .lcl files
689impcheckmodspecglobs --- assume checkmod qualifier for unqualified global
690declarations in .lcl files
691impcheckedstrictspecglobs --- assume checkmod qualifier for unqualified global
692declarations in .lcl files
693impcheckedglobs --- assume checked qualifier for unqualified global
694declarations
695impcheckmodglobs --- assume checkmod qualifier for unqualified global
696declarations
697impcheckedstrictglobs --- assume checkedstrict qualifier for unqualified global
698declarations
699impcheckedstatics --- assume checked qualifier for unqualified file static
700declarations
701impcheckmodstatics --- assume checkmod qualifier for unqualified file static
702declarations
703impcheckmodinternals --- assume checkmod qualifier for unqualified local static
704declarations (for internal state modifications)
705impcheckedstrictstatics --- assume checkedstrict qualifier for unqualified file
706static declarations
707modglobs --- undocumented modification of a checked global variable
708modglobsnomods --- undocumented modification of a checked global variable in a
709function declared with no modifies clause
710modstrictglobsnomods --- undocumented modification of a strict checked global
711variable in a function declared with no modifies clause
712modglobsunchecked --- undocumented modification of an unchecked checked global
713variable
714lh --- generate .lh files
715lcs --- generate .lcs files
716singleinclude --- optimize header inclusion to eliminate redundant includes
717neverinclude --- optimize header inclusion to not include any header files
718skipsysheaders --- do not include header files in system directories (set by
719-sysdirs)
60868d40 720warnflags --- warn when command line sets flag in abnormal way
721warnrc --- warn when there are problems with reading the initialization files
885824d3 722warnunixlib --- warn when the unix library is used
15b3d2b2 723badflag --- warn about bad command line flags
60868d40 724forcehints --- provide a hint for every warnings
885824d3 725help --- -help <flags> will describe flags
60868d40 726hints --- provide a hint the first time a particular warning appears
885824d3 727retval --- return value ignored (sets retvalint, retvalbool and retvalother)
728retvalother --- return value of type other than bool or int ignored
cc78dedd 729retvalbool --- return value of manifest type bool ignored
885824d3 730retvalint --- return value of type int ignored
60868d40 731f --- read an options file (default ~/.splintrc not loaded)
885824d3 732i --- set LCL initilization file
733nof --- do not read options file
734needspec --- information in specifications is not also included in syntactic
735comments
736newdecl --- report new global declarations in source files
737hasyield --- iter declaration has no yield parameters
738dump --- save state for merging (default suffix .lcd)
739load --- load state from dump file (default suffix .lcd)
740nolib --- do not load standard library
27c9e640 741isolib --- use normal standard library
885824d3 742strictlib --- interpret standard library strictly
743unixlib --- use UNIX (sort-of) standard library
744unixstrictlib --- use strict version of UNIX (sort-of) library
745posixlib --- use POSIX standard library
746posixstrictlib --- use strict POSIX standard library
747whichlib --- show standard library filename
15b3d2b2 748mts --- load meta state declaration and corresponding xh file
885824d3 749commentchar --- set marker character for syntactic comments (default is '@')
750allmacros --- sets fcnmacros and constmacros
751libmacros --- check all macros with declarations in library as functions
752specmacros --- check all macros corresponding to specified functions or
753constants
754fcnmacros --- check all macros with parameter lists as functions
755constmacros --- check all macros without parameter lists as constants
756macromatchname --- macro definition does not match iter or constant declaration
757nextlinemacros --- the line after a constant or iter declaration must be a
758macro definition
759macrostmt --- macro definition is syntactically not equivalent to function
760macroempty --- macro definition for is empty
761macroparams --- macro parameter not used exactly once
762macroassign --- assignment to a macro parameter
763sefparams --- a parameter with side-effects is passed as a sef parameter
764sefuncon --- a parameter with unconstrained side-effects is passed as a sef
765parameter
766macroparens --- macro parameter used without parentheses (in potentially
767dangerous context)
768macrodecl --- macro without prototype or specification (sets macrofcndecl and
769macroconstdecl)
770macrofcndecl --- parameterized macro without prototype or specification
771macroconstdecl --- non-parameterized macro without prototype or specification
772macroredef --- macro redefined
773macrounrecog --- unrecognized identifier in macro
774stackref --- external reference to stack-allocated storage is created
775usereleased --- storage used after release
776strictusereleased --- element used after it may have been released
777compdef --- parameter, return value or global completely defined
778compmempass --- actual parameter matches alias kind of formal parameter
779completely
780mustdefine --- out storage not defined before return or scope exit
781uniondef --- at least one field of a union must be defined
782memimp --- memory errors for unqualified storage
783paramimptemp --- assume unannotated parameter is temp
784allimponly --- sets globimponly, retimponly, structimponly, specglobimponly,
785specretimponly and specstructimponly
786codeimponly --- sets globimponly, retimponly and structimponly
787specimponly --- sets specglobimponly, specretimponly and specstructimponly
788globimponly --- assume unannotated global storage is only
789retimponly --- assume unannotated returned storage is only
790structimponly --- assume unannotated structure field is only
791specglobimponly --- assume unannotated global storage is only
792specretimponly --- assume unannotated returned storage is only
793specstructimponly --- assume unannotated structure field is only
794deparrays --- array elements are dependent storage
795compdestroy --- all only references derivable from void pointer out only
796parameter are released
797strictdestroy --- report complete destruction errors for array elements that
798may have been released
2e127cb8 799mustfreefresh --- freshly allocated storage not released before return or scope
800exit
801mustfreeonly --- only storage not released before return or scope exit
802mustfree --- fresh or only storage not released before return or scope exit
803(sets mustfreefresh and mustfreeonly)
885824d3 804branchstate --- storage has inconsistent states of alternate paths through a
805branch
806strictbranchstate --- storage through array fetch has inconsistent states of
807alternate paths through a branch
808memchecks --- sets all dynamic memory checking flags (memimplicit, mustfree,
809mustdefine, mustnotalias, null, memtrans)
810memtrans --- memory transfer errors (sets all *trans flags)
811exposetrans --- exposure transfer errors
812observertrans --- observer transfer errors
813dependenttrans --- dependent transfer errors
814newreftrans --- new reference transfer to reference counted reference
815onlytrans --- only storage transferred to non-only reference (memory leak)
816onlyunqglobaltrans --- only storage transferred to an unqualified global or
817static reference (memory leak)
818ownedtrans --- owned storage transferred to non-owned reference (memory leak)
819freshtrans --- fresh storage transferred to non-only reference (memory leak)
820sharedtrans --- shared storage transferred to non-shared reference
821temptrans --- temp storage transferred to non-temporary reference
822kepttrans --- kept storage transferred to non-temporary reference
823keeptrans --- keep storage transferred inconsistently
824immediatetrans --- an immediate address (result of &) is transferred
825inconsistently
826refcounttrans --- reference counted storage is transferred in an inconsistent
827way
828statictrans --- static storage is transferred in an inconsistent way
829unqualifiedtrans --- unqualified storage is transferred in an inconsistent way
830staticinittrans --- static storage is used as an initial value in an
831inconsistent way
832unqualifiedinittrans --- unqualified storage is used as an initial value in an
833inconsistent way
834readonlystrings --- string literals are read-only (error if one is modified or
835released)
836readonlytrans --- report memory transfer errors for initializations to
837read-only string literals
838passunknown --- passing a value as an un-annotated parameter clears its
839annotation
840mods --- unspecified modification of caller-visible state
841mustmod --- specified modification is not detected
842modobserver --- possible modification of observer storage
843modobserveruncon --- possible modification of observer storage through
844unconstrained call
845modinternalstrict --- possible modification of internal storage through
846function call
847modfilesys --- report undocumented file system modifications (applies to
848unspecified functions if modnomods is set)
849modunspec --- modification in unspecified functions (sets modnomods,
850modglobunspec and modstrictglobsunspec)
851modnomods --- modification in a function with no modifies clause
852moduncon --- possible modification through a call to an unconstrained function
853modunconnomods --- possible modification through a call to an unconstrained
854function in a function with no modifies clause
855globsimpmodsnothing --- functions declared with a globals list but no modifies
856clause are assumed to modify nothing
857modsimpnoglobs --- functions declared with a modifies clause but no globals
858list are assumed to use no globals
859namechecks --- controls name checking without changing other settings
860czech --- czech naming convention (sets accessczech, czechfunctions, czechvars,
861czechconstants, czechenums, and czechmacros)
862czechfcns --- czech naming convention violated in a function or iterator
863declaration
864czechvars --- czech naming convention violated in a variable declaration
865czechmacros --- czech naming convention violated in an expanded macro name
866czechconsts --- czech naming convention violated in a constant declaration
867czechtypes --- czech naming convention violated in a user-defined type
868definition
869slovak --- slovak naming convention violated
870slovakfcns --- slovak naming convention violated in a function or iterator
871declaration
872slovakmacros --- slovak naming convention violated in an expanded macro name
873slovakvars --- slovak naming convention violated in a variable declaration
874slovakconsts --- slovak naming convention violated in a constant declaration
875slovaktypes --- slovak naming convention violated in a use-defined type
876definition
877czechoslovak --- czech or slovak naming convention violated
878czechoslovakfcns --- czechoslovak naming convention violated in a function or
879iterator declaration
880czechoslovakmacros --- czechoslovak naming convention violated in an expanded
881macro name
882czechoslovakvars --- czechoslovak naming convention violated in a variable
883declaration
884czechoslovakconsts --- czechoslovak naming convention violated in a constant
885declaration
886czechoslovaktypes --- czechoslovak naming convention violated in a user-defined
887type definition
27c9e640 888isoreserved --- external name conflicts with name reserved for system or
885824d3 889standard library
890cppnames --- external or internal name is a C++ keyword or reserved word
27c9e640 891isoreservedinternal --- internal name conflicts with name reserved for system
885824d3 892or standard library
893distinctexternalnames --- external name is not distinguishable from another
894external name using the number of significant characters
895externalnamelen --- set the number of significant characters in an external
896name
897externalnamecaseinsensitive --- alphabetic comparisons for external names are
898case-insensitive
899distinctinternalnames --- internal name is not distinguishable from another
900internal name using the number of significant characters
901internalnamelen --- set the number of significant characters in an internal
902name
903internalnamecaseinsensitive --- set whether case is significant an internal
904names (-internalnamecaseinsensitive means case is significant)
905internalnamelookalike --- lookalike characters match in internal names
906macrovarprefix --- set namespace prefix for variables declared in a macro body
907macrovarprefixexclude --- the macrovarprefix may not be used for non-macro
908variables
909tagprefix --- set namespace prefix for struct, union and enum tags
910tagprefixexclude --- the tagprefix may not be used for non-tag identifiers
911enumprefix --- set namespace prefix for enum members
912enumprefixexclude --- the enumprefix may not be used for non-enum member
913identifiers
914filestaticprefix --- set namespace prefix for file static declarations
915filestaticprefixexclude --- the filestaticprefix may not be used for
916identifiers that are not file static
917globalprefix --- set namespace prefix for global variables
918globalprefixexclude --- the globalprefix may not be used for non-global
919identifiers
920typeprefix --- set namespace prefix for user-defined types
921typeprefixexclude --- the typeprefix may not be used for identifiers that are
922not type names
923externalprefix --- set namespace prefix for external identifiers
924externalprefixexclude --- the externalprefix may not be used for non-external
925identifiers
926localprefix --- set namespace prefix for local variables
927localprefixexclude --- the localprefix may not be used for non-local
928identifiers
929uncheckedmacroprefix --- set namespace prefix for unchecked macros
930uncheckedmacroprefixexclude --- the uncheckmacroprefix may not be used for
931identifiers that are not unchecked macros
932constprefix --- set namespace prefix for constants
933constprefixexclude --- the constprefix may not be used for non-constant
934identifiers
935iterprefix --- set namespace prefix for iterators
936iterprefixexclude --- the iterprefix may not be used for non-iter identifiers
937protoparamprefix --- set namespace prefix for parameters in function prototype
938declarations
939protoparamname --- a parameter in a function prototype has a name
940protoparammatch --- the name of a parameter in a function prototype and
941corresponding declaration must match (after removing the protoparamprefix
942protoparamprefixexclude --- the protoparamprefix may not be used for
943non-declaraction parameter identifiers
944controlnestdepth --- set maximum nesting depth of compound statements,
27c9e640 945iteration control structures, and selection control structures (ANSI89 minimum
946is 15; ISO99 is 63)
947stringliterallen --- set maximum length of string literals (ANSI89 minimum is
948509; ISO99 is 4095)
949numstructfields --- set maximum number of fields in a struct or union (ANSI89
950minimum is 127; ISO99 is 1023)
951numenummembers --- set maximum number of members of an enum (ANSI89 minimum is
952127; ISO99 is 1023)
885824d3 953includenest --- set maximum number of nested #include files
27c9e640 954ansi89limits --- check for violations of standard limits (controlnestdepth,
955stringliterallen, includenest, numstructfields, numenummembers) based on ANSI89
956standard
957iso99limits --- check for violations of standard limits (controlnestdepth,
958stringliterallen, includenest, numstructfields, numenummembers) based on ISO99
959standard
885824d3 960null --- misuses of null pointer
8e349e11 961nullterminated --- misuse of nullterminated allocation
8e349e11 962arrayread --- possible out of bounds read
963arraywrite --- possible buffer overflow from an out of bounds write
964fcnpost --- Function has the post condition
15b3d2b2 965parenconstraint --- parenthesize constraint term
966debugfcnconstraint --- debuging constraint flas
967arraybounds --- Possible out-of-bounds store. Unable to resolve constraint:
968arrayboundsread --- Possible out-of-bounds read. Unable to resolve constraint:
8e349e11 969fcnconstraint --- unresolved constraint
15b3d2b2 970checkpost --- unable to verify ensures annotation
971constraintlocation --- display full c expression for every constraint generated
972implictconstraint --- Try to generate implicit constraints for functions
973orconstraint --- Use limited OR expressions to resolve constraints
8e349e11 974nullterminated --- misuse of nullterminated allocation
885824d3 975nullderef --- possible dereferencce of null pointer
976fcnderef --- dereferencce of a function type
977nullpass --- possibly null pointer passed as formal with no null annotation
978nullret --- possibly null pointer returned as result with no null annotation
979nullstate --- possibly null pointer reachable from a reference with no null
980annotation
981nullassign --- inconsistent assignment or initialization involving null pointer
982boolcompare --- comparison between bools (dangerous because of multiple TRUE
983values)
984realcompare --- dangerous comparison between reals (dangerous because of
985inexact floating point representations)
1d239d69 986unsignedcompare --- comparison using <, <=, >= between an unsigned integral and
987zero constant
885824d3 988ptrarith --- arithmetic involving pointer and integer
989nullptrarith --- arithmetic involving possibly null pointer and integer
990ptrcompare --- comparison between pointer and number
991strictops --- primitive operation does not type check strictly
992bitwisesigned --- a bitwise logical operator does not have unsigned operands
a956d444 993shiftnegative --- a shift right operand may be negative
994shiftimplementation --- a shift left operand may be negative
885824d3 995boolops --- primitive operation (!, && or ||) does not has a boolean argument
996ptrnegate --- allow ! to be used on pointer operand
997sizeoftype --- sizeof operator has a type argument
998sizeofformalarray --- sizeof operator has an array formal parameter argument
999fixedformalarray --- formal parameter of type array is declared with size
1000incompletetype --- formal parameter has an incomplete type
1001formalarray --- formal parameter is an array
1002predassign --- condition test (if, while or for) is an assignment
1003predbool --- type of condition test (if, while or for) not bool (sets
1004predboolint, predboolptr and predboolothers)
1005predboolint --- type of condition test (if, while or for) is an integral type
1006predboolothers --- type of condition test (if, while or for) not bool, int or
1007pointer
1008predboolptr --- type of condition test (if, while or for) is a pointer
1009D<initializer> --- passed to pre-processor
1010U<initializer> --- passed to pre-processor
4c9767b3 1011unrecognizeddirective --- unrecognized pre-processor directive
885824d3 1012globstate --- returns with global in inconsistent state (null or undefined)
1013supcounts --- The number of errors detected does not match number in
1014/*@i<n>@*/.
1015limit --- limit <int> consecutive repeated errors
1016syntax --- syntax error in parsing
1017trytorecover --- try to recover from parse error
1018type --- type mismatch
1019fullinitblock --- initializer sets all fields
8fe44445 1020initallelements --- initializer defines all array elements
1021initsize --- initializer defines extra array elements
1022stringliteraltoolong --- string literal too long for character array
1023stringliteralnoroom --- string literal leaves no room for null terminator
1024stringliteralsmaller --- string literal is smaller than the char array it is
1025assigned to
885824d3 1026enummembers --- enum members must be int values
1027maintype --- type of main does not match expected type
1028formattype --- type-mismatch in parameter corresponding to format code in a
1029printf or scanf-like function
15b3d2b2 1030formatconst --- format parameter is not a string constant (hence variable
1031arguments cannot be typechecked)
885824d3 1032formatcode --- invalid format code in format string for printf or scanf-like
1033function
1034forwarddecl --- forward declarations of pointers to abstract representation
1035match abstract type
1036voidabstract --- void * matches pointers to abstract types, casting ok
1037(dangerous)
1038castfcnptr --- a pointer to a function is cast to a pointer to void (or vice
1039versa)
1040charindex --- char can be used to index arrays
1041enumindex --- enum can be used to index arrays
1042boolint --- bool and int are equivalent
1043charint --- char and int are equivalent
1044enumint --- enum and int are equivalent
1045floatdouble --- float and double are equivalent
1046ignorequals --- ignore type qualifiers (long, short, unsigned)
1047duplicatequals --- report duplicate type qualifiers (e.g., long long)
1048ignoresigns --- ignore signs in type comparisons (unsigned matches signed)
1049numliteral --- int literals can be reals
1050charintliteral --- character constants (e.g., 'a') can be used as ints
1051relaxquals --- report qualifier mismatches only if dangerous
1052relaxtypes --- allow all numeric types to match
1053charunsignedchar --- allow char and unsigned char types to match
1054matchanyintegral --- allow any intergral type to match an arbitrary integral
1055type (e.g., dev_t)
1056longunsignedintegral --- allow long unsigned type to match an arbitrary
1057integral type (e.g., dev_t)
1058longintegral --- allow long type to match an arbitrary integral type (e.g.,
1059dev_t)
1060longunsignedunsignedintegral --- allow long unsigned type to match an arbitrary
1061unsigned integral type (e.g., size_t)
1062longsignedintegral --- allow long type to match an arbitrary signed integral
1063type (e.g., ssize_t)
1064zeroptr --- 0 is treated as a pointer
cc78dedd 1065zerobool --- 0 is treated as a boolean
885824d3 1066repeatunrecog --- do not suppress repeated unrecognized identifier messages
1067(instead of only reporting the first error)
1068sysunrecog --- report unrecognized identifiers with system (__) prefix
1069unrecog --- unrecognized identifier
1070topuse --- declaration at top level not used
1071exportlocal --- a declaration is exported but not used outside this module
1072exportheader --- a declaration is exported but does not appear in a header file
1073exportheadervar --- a variable declaration is exported but does not appear in a
1074header file
1075fielduse --- field of structure type not used
1076enummemuse --- member of an enum type not used
1077constuse --- constant declared but not used
1078fcnuse --- function declared but not used
1079paramuse --- function parameter not used
1080typeuse --- type declared but not used
1081varuse --- variable declared but not used
1082unusedspecial --- unused declaration in special file (corresponding to .l or .y
1083file)
15b3d2b2 1084redundantsharequal --- declaration uses observer qualifier that is always true
1085misplacedsharequal --- declaration of unsharable storage uses sharing
1086annotation
1087annotationerror --- annotation is used in inconsistent location
1088commenterror --- inconsistent syntactic comment
1089bugslimit --- set maximum number of bugs detected before giving up
1090fileextensions --- warn when command line file does not have a recognized
1091extension
1092warnuse --- warn when declaration marked with warn is used
1093statetransfer --- storage has been transfered with invalid state
1094statemerge --- control paths merge with storage in incompatible states
1095its4mostrisky --- most risky security vulnerabilities (from its4 database)
1096its4veryrisky --- very risky security vulnerabilities (from its4 database)
1097its4risky --- risky security vulnerabilities (from its4 database)
1098its4moderate --- moderately risky security vulnerabilities (from its4 database)
1099its4low --- risky security vulnerabilities (from its4 database)
1100bufferoverflowhigh --- likely buffer overflow vulnerability
1101bufferoverflow --- possible buffer overflow vulnerability
1102toctou --- possible time of check, time of use vulnerability
1103multithreaded --- function is not reentrant
1d239d69 1104portability --- function may have undefined behavior
1105unixstandard --- function is not required in Standard UNIX Specification
15b3d2b2 1106superuser --- function is restricted to superusers
1107implementationoptional --- declarator is implementation optional (ISO99 does
1108not require an implementation to provide it)
79127b5d 1109legacy --- legacy declaration in Unix Standard
885824d3 1110
This page took 0.280234 seconds and 5 git commands to generate.