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