1 ## This file currently uses GNU Make features; those should really be replaced
2 ## by configure-time handling.
4 AUTOMAKE_OPTIONS = 1.5 foreign
6 ## Use this to configure diff output
9 ## Set up the lclint commands
11 LCLINT = $(top_builddir)/src/lclint$(EXEEXT)
17 ### This is horrible! Can't we make top_builddir absolute?
18 LCLINTNEST = ../$(top_builddir)/src/lclint$(EXEEXT)
20 LCLINTPNEST = @$(LCLINTNEST)
23 # Make sure .lclintrc files are not used so test results do not
24 # depend on local settings.
25 LCLINTRN = $(LCLINTP) -nof -hints -booltype "bool"
26 LCLINTR = $(LCLINTRN) -exportlocal +debugfcnconstraint
28 LCLINTRNNEST = $(LCLINTPNEST) -nof -hints -booltype "bool"
29 LCLINTRNEST = $(LCLINTRNNEST) -exportlocal +debugfcnconstraint
31 ## Currently disabled tests:
32 ## fileio tainted mergestate nullret nullassign warnuse metastate \
33 ## nullret nullassign warnuse
37 ### These tests have been temporarily removed because of problems with the new build process:
38 ### fileio tainted mergestate metastate \
39 ### tests2.2 tests2.2a tests2.4 tests2.5
45 fileio tainted mergestate metastate sizeof buffertest \
46 tests2.2 tests2.4 tests2.5 \
47 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
49 abstptr abstract alias alttypes ansireserved argorder \
50 args blocks break cases cast charlit clauses commentchar compdestroy \
51 constannot controldepth csyntax czechnames czechoslovaknames deadparam \
52 decl enum exports external fields flags forbody format freearray \
53 funcpointer glob globals impabstract init inparam internal iter keep libs \
54 linked lintcomments list macros macrosef merge modifies modtest moduncon \
55 mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
56 postnotnull preds prefixes printflike rc refcounts release repexpose \
57 returned sharing slovaknames specclauses special stack staticarray strings \
58 structassign typequals ud ulstypes union unreachable unsignedcompare \
60 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
62 INTEGTESTS = db1 db2 db3
63 INTEGEXPECTS = $(addsuffix .expect, $(INTEGTESTS))
65 LCLINTTESTS = $(UNITTESTS) $(INTEGTESTS)
74 -$(LCLINTP) -help version
79 -@LARCH_PATH=/dev/null; $(LCLINT) empty.lcl
82 -@$(LCLINTP) +boolint +boolint
83 -@$(LCLINTP) -help flags alpha
84 -@$(LCLINTP) -help flags all
88 -rm -f *~ #*# *.o *.lcs a.out
89 -cd db1; $(MAKE) clean
90 -cd db2; $(MAKE) clean
91 -cd db3; $(MAKE) clean
93 ## All tests need lclint to be built
95 $(LCLINTTESTS): $(LCLINT)
98 cd $(top_builddir)/src; $(MAKE)
100 ## This is a kludgey way of processing the output to make it match exactly
101 ## The last matcher is the most annoying, as it can differ (the first two are
102 ## pretty much fixed); usually, you'll have 'make[1]:', but on DOS it is
103 ## 'make.exe[1]:' (it might even be 'c:/path/to/make.exe[1]:', but that's
105 ## The tests should really be re-done as shell-scripts or something... maybe
106 ## autotest could be used once it's finished.
107 CLEANOUTPUT = $(GREP) -v "LCLint 3." | $(GREP) -v "$(LCLINT)" | $(GREP) -v "^make.*\[[1-9]*\]:"
112 $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
115 $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
117 #drl temporally take this out.
120 # @echo "Saving old expects..."; \
121 # cat *.expect >expects-`date +"%y-%m-%d-%H"`
122 # @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
123 # echo "Making $$TEST.expect..."; \
124 # $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
125 # cat $$TEST.expect; \
130 @for TEST in $(QUICKTESTS); do \
131 echo "Checking $$TEST..."; \
132 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
133 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
134 echo "*** FAIL ***"; \
139 @echo "Testing $(PACKAGE) $(VERSION)..."
141 @echo "Version Info:"
142 @$(LCLINTP) -help version
143 @$(LCLINTP) -help vars
147 @for TEST in $(UNITTESTS); do \
148 echo "Checking $$TEST..."; \
149 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
150 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
151 echo "*** FAIL ***"; \
154 @echo "Integration tests:"
156 @for TEST in $(INTEGTESTS); do \
157 echo "Checking $$TEST..."; \
158 $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
159 $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
160 echo "*** FAIL ***"; \
163 ### Rules for tests start here
165 SUBDIRTESTS = metastate mergestate tainted fileio warnuse ensuresclauses \
166 simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
171 $(LCLINTR) abstptr -expect 9
172 $(LCLINTR) abstptr +voidabstract -expect 6
176 $(LCLINTR) abst_t.lcl commentcmd.c -expect 15
181 $(LCLINTR) mut alias +globalias -expect 19
182 $(LCLINTR) mut alias2 +globalias -expect 17
183 $(LCLINTR) +lh alias3 -expect 14
184 $(LCLINTR) +lh alias4 +boolint
185 $(LCLINTR) alias4 -pred +retalias -expect 6
186 $(LCLINTR) +lh alias5 +memchecks -null -specundef -expect 5
190 $(LCLINTR) alttypes.c -expect 2
193 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
194 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
195 ### variable (could be a macro?)
196 ### Reports 3 additional errors for +checks; no longer suppresses name errors
197 ### in the presense of other errors.
202 $(LCLINTR) ansireserved.c +ansireserved -nolib -expect 9
203 $(LCLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
204 $(LCLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
205 $(LCLINTR) ansireserved2.c +ansireserved -expect 1
209 $(LCLINTR) argorder.c -expect 4
210 $(LCLINTR) argorder2 -expect 5
211 $(LCLINTR) argorder3.c -expect 8
212 $(LCLINTR) argorder4 -expect 9
213 $(LCLINTR) argorder4 -evalorder -expect 1
214 $(LCLINTR) argorder5.c +evalorderuncon -expect 3
218 $(LCLINTR) args -noeffect -expect 12
222 $(LCLINTR) blocks.c -expect 4
223 $(LCLINTR) blocks.c +ifblock +elseifcomplete -expect 7
224 $(LCLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
225 $(LCLINTR) blocks.c -ifempty +forempty +forblock -expect 3
226 $(LCLINTR) blocks.c +allempty -expect 6
227 $(LCLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
231 $(LCLINTR) break.c -expect 4
232 $(LCLINTR) break.c +deepbreak -expect 6
233 $(LCLINTR) break.c +deepbreak -looploopbreak -expect 5
237 $(LCLINTR) cases.c -expect 5
238 $(LCLINTR) cases2.c -expect 2
239 $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
240 $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
244 $(LCLINTR) cast -accessmodule -expect 20
245 $(LCLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
247 ### Two addition errors detected with 2.5 with -numliteral.
251 $(LCLINTR) +hints charlit.c -expect 4
252 $(LCLINTR) +hints -numliteral charlit.c -expect 6
253 $(LCLINTR) +hints charlit.c +charintliteral +ignoresigns
257 $(LCLINTR) clauses.c +memchecks -expect 4
258 $(LCLINTR) clauses2.c +memchecks
259 $(LCLINTR) clauses3.c +memchecks -expect 2
260 $(LCLINTR) clauses3.c +memchecks +unixlib -expect 3
264 $(LCLINTR) commentchar.c -expect 4
265 $(LCLINTR) -commentchar '#' commentchar.c -expect 4
269 $(LCLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
270 $(LCLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
274 $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
275 $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
276 $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
277 $(LCLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
281 ${LCLINTRN} constannot.c +arraybounds -exportlocal -expect 2
285 $(LCLINTR) +quiet -incondefs csyntax.c -expect 1
286 $(LCLINTR) +quiet csyntax2.c -expect 2
287 $(LCLINTR) +quiet csyntax3.c -expect 1
288 $(LCLINTR) +quiet -incondefs csyntax4.c
289 $(LCLINTR) +quiet csyntax5.c
290 $(LCLINTR) +quiet csyntax6.c
291 $(LCLINTR) +quiet csyntax7.c
292 $(LCLINTR) +quiet csyntax8.c
293 $(LCLINTR) +quiet csyntax9.c
294 $(LCLINTR) +quiet csyntax10.c
295 $(LCLINTR) +quiet csyntax11.c
296 $(LCLINTR) +quiet csyntax12.c
297 $(LCLINTR) +quiet csyntax13.c -expect 1
298 $(LCLINTR) +quiet csyntax14.c
299 $(LCLINTR) +quiet csyntax15.c
300 $(LCLINTR) +quiet csyntax16.c -expect 2
301 $(LCLINTR) +quiet csyntax17.c -expect 3
305 $(LCLINTR) czechnames.c
306 $(LCLINTR) +hints +czech czechnames.c -expect 2
307 $(LCLINTR) +hints +czech -czechvars czechnames.c -expect 1
308 $(LCLINTR) +hints +czech -accessczech czechnames.c -expect 6
310 .PHONY: czechoslovaknames
312 $(LCLINTR) +hints +czechoslovak czechnames.c -expect 1
313 $(LCLINTR) +hints +czechoslovak slovaknames.c -expect 1
314 $(LCLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
317 ### deadparam added 2001-05-27
322 ${LCLINTR} deadparam.c -expect 3
325 # Was expect 3 before 2.4. Earlier versions did not handle implicit
326 # function pointers correctly.
331 $(LCLINTR) decl.c -expect 2
332 $(LCLINTRN) decl.c +strict -exportlocal -expect 5
333 $(LCLINTR) decl2 -expect 4
337 $(LCLINTR) enum -expect 16
338 $(LCLINTR) enum -misscase -expect 14
342 $(LCLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
343 $(LCLINTR) exports.c +exportany -expect 3
348 $(LCLINTR) external.c +partial
349 $(LCLINTR) external.c +partial +distinctexternalnames -expect 2
350 $(LCLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
351 $(LCLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
352 $(LCLINTR) external.c +partial -externalnamelength 3 -expect 4
356 $(LCLINTR) fields.c +memchecks -expect 6
357 $(LCLINTR) fields2.c +memchecks -expect 5
358 $(LCLINTR) fields3.c +memchecks
362 $(LCLINTR) flags.c -expect 8
363 $(LCLINTR) +nocomments flags.c -expect 2
369 ${LCLINTR} forbody.c -expect 2
374 ${LCLINTR} format.c -expect 3
375 ${LCLINTR} format.c -formatconst
377 # two new errors (invalid lhs)
381 $(LCLINTR) +memchecks +noparams funcpointer.c -expect 18
385 $(LCLINTR) glob -expect 4
386 $(LCLINTR) glob -globuse -expect 3
387 $(LCLINTR) glob +globunspec -expect 6
391 $(LCLINTR) -modifies globals.c -expect 5
392 $(LCLINTR) -modifies globals.c +allglobals -expect 6
393 $(LCLINTR) -modifies globals.c +impcheckedglobals -expect 6
394 $(LCLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
395 $(LCLINTR) -modifies globals.c +globunspec -expect 6
396 $(LCLINTR) -modifies globals.c +globunspec +allglobals -expect 8
401 $(LCLINTR) -accessmodule impabstract.c
402 $(LCLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
403 $(LCLINTR) -accessmodule +hints +impabstract impabstract -expect 4
405 ### evans 2001-10-14: Expected errors updated
408 $(LCLINTR) init.c -expect 14
409 $(LCLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
414 $(LCLINTR) inparam.c -expect 2
415 $(LCLINTR) +impouts inparam.c -expect 1
419 $(LCLINTR) internal.c -expect 1
420 $(LCLINTR) internal.c +distinctinternalnames -expect 2
421 $(LCLINTR) internal.c -internalnamelen 28 -expect 3
422 $(LCLINTR) internal.c +internalnamecaseinsensitive -expect 3
423 $(LCLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
427 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
432 $(LCLINTR) iter -expect 14 -lclexpect 1
433 $(LCLINTR) iter2.c -expect 12
437 $(LCLINTR) keep.c +memchecks -expect 6
440 ### 2001-05-22: 2 new errors found (fixed spec of signal)
441 ### 2001-05-30: 3 new errors found (formatconst)
445 $(LCLINTR) libs.c +longunsignedunsignedintegral -expect 18
446 $(LCLINTR) libs.c -expect 22
447 $(LCLINTR) libs.c +globunspec +modunspec -expect 25
448 $(LCLINTR) libs.c +strictlib +globunspec +modunspec -expect 42
452 $(LCLINTR) lintcomments.c -expect 4
453 $(LCLINTR) lintcomments.c -warnlintcomments -expect 1
454 $(LCLINTR) lintcomments.c -lintcomments -expect 4
458 $(LCLINTR) list.c -expect 3
462 $(LCLINTR) macros -expect 17
463 $(LCLINTR) macros.c +allmacros -expect 34
464 $(LCLINTR) macros.c +fcnmacros -expect 31
469 $(LCLINTR) macrosef -expect 4
470 $(LCLINTR) macrosef.c +allmacros -expect 3
471 $(LCLINTR) macrosef.c +allmacros +sefuncon -expect 4
475 $(LCLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
479 $(LCLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
483 $(LCLINTR) modtest -expect 10
484 $(LCLINTR) modtest +modunspec -expect 13
485 $(LCLINTR) modtest +mustmod -expect 14
489 $(LCLINTR) moduncon.c +moduncon -memchecks -expect 4
490 $(LCLINTRN) moduncon.c +strict -exportlocal -expect 22
492 .PHONY: mongoincludes
494 $(LCLINTR) mongoincludes.c -includenest 1 -expect 19
495 $(LCLINTR) mongoincludes.c -includenest 2 -expect 10
496 $(LCLINTR) mongoincludes.c -includenest 3 -expect 4
497 $(LCLINTR) mongoincludes.c -includenest 4 -expect 1
498 $(LCLINTR) mongoincludes.c -includenest 5 -expect 0
502 $(LCLINTR) mystrncat.c +arraybounds +arrayboundsread -expect 4
506 ${LCLINT} -nof noeffect.c +allmacros +checks -expect 3
510 $(LCLINTR) null1.c -expect 14
511 $(LCLINTR) null1.c -null -expect 4
512 $(LCLINTR) null2.c -expect 10
513 $(LCLINTR) null3.c -expect 15
514 $(LCLINTR) null3.c -warnunixlib +unixlib -expect 16
515 $(LCLINTR) null4.c -expect 1
516 $(LCLINTR) null5.c -expect 4
517 $(LCLINTR) null6 -expect 4
518 $(LCLINTR) +quiet null6.lcl -dump null6
519 $(LCLINTR) null6.c -load null6 -expect 4
521 ### Added for 3.0 (bugs reported by Kevin Broady)
525 $(LCLINTR) nullret.c -expect 2
526 $(LCLINTR) -nullret nullret.c -expect 1
530 $(LCLINTR) nullassign.c -expect 2
531 $(LCLINTR) -nullassign nullassign.c -expect 1
535 # Before 2.4, expected one more because error was reported both as
536 # dependent and observer.
541 $(LCLINTRN) observer +checks -exportlocal -exportheader -expect 9
542 $(LCLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
543 $(LCLINTR) observer.c -expect 7
547 $(LCLINTR) oldstyle -expect 3
551 $(LCLINTR) outglob -expect 10
555 $(LCLINTR) outparam -expect 12
557 ### evans 2001-08-26: postnotnull new
561 ${LCLINTR} postnotnull.c -expect 1
563 # Four new +fcnuse errors for -strict (evans 2001-07-22)
568 $(LCLINTR) +hints preds.c -expect 6
569 $(LCLINTRN) +hints preds.c -weak -expect 1
570 $(LCLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
574 $(LCLINTR) prefixes.c +partial
575 $(LCLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
576 $(LCLINTR) prefixes.c -typeprefix "T" -expect 2
577 $(LCLINTR) prefixes.c -typeprefix "^" -expect 1
578 $(LCLINTR) prefixes.c -typeprefix "^*" -expect 2
579 $(LCLINTR) prefixes.c -typeprefix "^%*" -expect 2
580 $(LCLINTR) prefixes.c -typeprefix "^~*" -expect 2
581 $(LCLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
582 $(LCLINTR) prefixes.c -filestaticprefix "^^" -expect 4
583 $(LCLINTR) prefixes.c -filestaticprefix "^#" -expect 5
584 $(LCLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
585 $(LCLINTR) prefixes.c -globalprefix "G" -expect 1
586 $(LCLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
587 $(LCLINTR) prefixes.c -externalprefix "G" -expect 5
588 $(LCLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
589 $(LCLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
593 $(LCLINTR) printflike.c -expect 6
594 $(LCLINTR) printflike.c -warnlintcomments -expect 5
598 $(LCLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
599 $(LCLINTR) -DMYSTERY=12 rc.c -expect 1
600 $(LCLINTR) -f rc1.lclintrc rc.c -expect 1
601 $(LCLINTR) -UMYSTERY -f rc1.lclintrc rc.c -expect 1
602 $(LCLINTR) -f rc3.lclintrc rc.c -expect 1
606 $(LCLINTR) refcounts.c -expect 7
610 $(LCLINTR) release.c +memchecks -expect 1
614 $(LCLINTR) +lh repexpose +memchecks -expect 12
615 $(LCLINTR) repexpose +memchecks +retalias -expect 15
616 $(LCLINTRN) repexpose +checks -exportlocal -expect 27
618 ### returned added 2001-05-27
619 ### (Bug discovered checking lclint sources.)
623 ${LCLINTR} returned.c -expect 1
627 $(LCLINTR) sharing1.c -expect 21
628 $(LCLINTR) sharing3.c -expect 3
629 $(LCLINTR) sharing4.c -expect 13
630 $(LCLINTR) sharing4.c -paramimptemp -expect 12
631 $(LCLINTR) sharing5.c -expect 6
635 $(LCLINTR) +hints slovaknames.c -expect 1
636 $(LCLINTR) +hints slovaknames.c +accessslovak
637 $(LCLINTR) +hints +slovak slovaknames.c -expect 3
638 $(LCLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
639 $(LCLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
643 $(LCLINTR) specclauses.c -expect 6
644 $(LCLINTR) specclauses2.c -expect 8
645 $(LCLINTR) specclauses3.c -expect 6
646 $(LCLINTR) specclauses4.c -expect 3
647 $(LCLINTR) specclauses5.c -expect 3
651 $(LCLINTR) special -expect 20
652 $(LCLINTR) special -relaxquals -expect 22
656 $(LCLINTR) stack.c -expect 5
657 $(LCLINTR) stack.c -stackref
661 $(LCLINTR) staticarray.c -expect 3
665 $(LCLINTR) strings.c -expect 3
666 $(LCLINTR) -readonlystrings -expect 1 strings.c
667 $(LCLINTR) +modobserverstrict -maintype -expect 4 strings.c
671 $(LCLINTR) structassign.c -expect 4
675 $(LCLINTR) typequals.c tq.lcl -expect 5
676 $(LCLINTR) typequals.c -expect 2
680 $(LCLINTR) ud.c -expect 9
681 $(LCLINTR) ud2 -specundef -expect 3
685 $(LCLINTR) ulstypes.c -expect 8
686 $(LCLINTR) ulstypes.c +ignorequals
687 $(LCLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
688 # 3 more detected with version 2.5 (change in -numliteral setting)
692 $(LCLINTR) +memchecks union.c -expect 8
696 $(LCLINTR) unreachable.c -expect 5
697 $(LCLINTR) -unreachable unreachable.c -expect 2
698 $(LCLINTR) switch.c -expect 4
700 .PHONY: unsignedcompare
702 ${LCLINTR} +posixlib unsignedcompare.c -expect 4
706 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
711 $(LCLINTRN) unused.c +checks -exportlocal -expect 5
712 $(LCLINTRN) unused.c +checks -exportlocal +topuse -expect 8
715 ### 2001-06-10: Provided by Jim Zalenka
720 ${LCLINTRN} ullint.c -expect 5
721 ${LCLINTRN} ullint.c +charint +charintliteral -expect 2
725 ${LCLINTRN} void.c -expect 2
733 ${LCLINTR} linked.c -expect 4
734 ${LCLINTR} linked2.c -expect 3
735 ${LCLINTR} linked3.c -expect 5
736 ${LCLINTR} linked4.c -expect 6
737 ${LCLINTR} linked5.c -expect 4
738 ${LCLINTR} linked6.c -expect 4
742 ${LCLINTR} freearray.c -expect 1
745 ### Bugs fixed and new features since version 2.1b
748 SUBDIRTESTS += tests2.2
749 SUBDIRTESTS += tests2.2a
750 SUBDIRTESTS += tests2.4
754 $(LCLINTR) +arraybounds +arrayboundsread sizeof.c -expect 1
758 $(LCLINTR) +arraybounds +arrayboundsread buffertest1.c -expect 5
760 SUBDIRTESTS += tests2.5
765 ## db2: 2 errors are no longer reported, since eref is immutable.
766 ## Need to clarify what it means for an object to be immutable;
767 ## there should be 2 types with different storage requirements.
769 SUBDIRTESTS += db1 db2 db3
771 .PHONY: $(SUBDIRTESTS)
773 cd $@; $(MAKE) LCLINT="$(LCLINTRNNEST)"
775 #drl 11/29/2001 This is a very ugly hack to get make dist to work
776 EXTRA_DIST = ./abst_t.lcl ./abst_t.lcs \
777 ./abstptr.lcl ./abstptr.lcs \
778 ./alias.lcl ./alias.lcs \
779 ./alias2.lcl ./alias2.lcs \
850 ./repexpose.lh.expect \
867 ./globalbufferannotation/.lclintrc \
870 ./tests2.2/bool.lcl \
871 ./tests2.2/bool.lcs \
872 ./tests2.2/libraries.lcd \
873 ./tests2.2/obsolete.lcd \
874 ./tests2.2/oldversion.lcd \
875 ./tests2.4/subdir/main.lcl \
876 ./tests2.4/subdir/main.lcs \
877 ./tests2.5/newlint.lcd \
878 ./warnuse/warnuse.lcd \
938 ./czechoslovaknames.c \
1054 ./unsignedcompare.c \
1057 ./conditions/miroslaw.c \
1058 ./conditions/releases.c \
1060 ./fileio/filebranch.c \
1063 ./globalbufferannotation/globalvariable.c \
1064 ./maxset/maxsetannotations.c \
1065 ./maxset/maxsetnoannotations.c \
1066 ./mergestate/taintednm.c \
1067 ./metastate/file.c \
1068 ./metastate/file1.c \
1069 ./metastate/file2.c \
1070 ./metastate/file3.c \
1071 ./metastate/file4.c \
1072 ./metastate/file5.c \
1073 ./metastate/file6.c \
1074 ./metastate/file7.c \
1075 ./metastate/filebad.c \
1076 ./metastate/global.c \
1077 ./metastate/nullbranch.c \
1078 ./metastate/nullbranch2.c \
1079 ./metastate/nullret.c \
1081 ./metastate/sockets.c \
1082 ./metastate/sockets2.c \
1083 ./metastate/struct.c \
1084 ./metastate/test.c \
1085 ./metastate/voidptr.c \
1086 ./moreBufferTests/initialization.c \
1087 ./moreBufferTests/simplifyTest.c \
1088 ./moreBufferTests/strncatNotReallyGood.c \
1089 ./moreBufferTests/strncatReallyGood.c \
1090 ./moreBufferTests/strrchr.c \
1091 ./moreBufferTests/unrecogCall.c \
1092 ./nullterminatedtest/buggy1.c \
1093 ./nullterminatedtest/buggy_support1.c \
1094 ./nullterminatedtest/buggy_support_fmakeword.c \
1095 ./nullterminatedtest/test1.c \
1096 ./nullterminatedtest/test3.c \
1097 ./simplebufferConstraintTests/m.c \
1098 ./simplebufferConstraintTests/sizeof.c \
1099 ./simplebufferConstraintTests/test3.c \
1100 ./simplebufferConstraintTests/test7.c \
1101 ./sizeoftest/sizeof.c \
1103 ./suppressfile/test.c \
1104 ./tainted/sprintf.c \
1106 ./tainted/tainted.c \
1107 ./tainted/tainted2.c \
1108 ./tainted/tainted3.c \
1109 ./tainted/tainted4.c \
1110 ./tainted/tainted5.c \
1111 ./tainted/taintedimplicit.c \
1112 ./tainted/taintedmerge.c \
1113 ./tainted/taintedx.c \
1115 ./tclauses/globals.c \
1117 ./tclauses/modifies.c \
1118 ./tclauses/struct.c \
1119 ./tclauses/undef.c \
1120 ./tests2.2/arbints.c \
1121 ./tests2.2/arrayfcn.c \
1122 ./tests2.2/booldef.c \
1123 ./tests2.2/boolenum.c \
1124 ./tests2.2/boolops.c \
1125 ./tests2.2/break.c \
1126 ./tests2.2/bstring.c \
1128 ./tests2.2/enumbool.c \
1129 ./tests2.2/extension.c \
1130 ./tests2.2/libraries.c \
1131 ./tests2.2/modarray.c \
1132 ./tests2.2/nestext.c \
1133 ./tests2.2/offsetof.c \
1134 ./tests2.2/posix.c \
1135 ./tests2.2/realloc.c \
1137 ./tests2.2/sizeofarray.c \
1138 ./tests2.2/struct.c \
1139 ./tests2.2a/addassign.c \
1140 ./tests2.2a/arrayparam.c \
1141 ./tests2.2a/bitops.c \
1142 ./tests2.2a/boolcomp.c \
1143 ./tests2.2a/boolenum.c \
1144 ./tests2.2a/dobb.c \
1145 ./tests2.2a/duff.c \
1146 ./tests2.2a/erik.c \
1147 ./tests2.2a/floatdouble.c \
1148 ./tests2.2a/florian.c \
1149 ./tests2.2a/fred.c \
1150 ./tests2.2a/isalpha.c \
1151 ./tests2.2a/notreached.c \
1152 ./tests2.2a/obviousloop.c \
1153 ./tests2.2a/popik.c \
1154 ./tests2.2a/sizeof.c \
1155 ./tests2.2a/toralf.c \
1156 ./tests2.4/subdir/main.c \
1157 ./tests2.4/alignof.c \
1158 ./tests2.4/array.c \
1159 ./tests2.4/bitfields.c \
1164 ./tests2.4/cpptest.c \
1165 ./tests2.4/driverstub.c \
1166 ./tests2.4/duffs.c \
1167 ./tests2.4/emptycase.c \
1168 ./tests2.4/enumtest.c \
1169 ./tests2.4/error.c \
1171 ./tests2.4/flagequal.c \
1172 ./tests2.4/forward.c \
1174 ./tests2.4/hexconstants.c \
1175 ./tests2.4/innercomment.c \
1176 ./tests2.4/komazi.c \
1177 ./tests2.4/longlong.c \
1179 ./tests2.4/nothing.c \
1180 ./tests2.4/offsetof.c \
1181 ./tests2.4/print.c \
1183 ./tests2.4/syncomment.c \
1184 ./tests2.4/syslog.c \
1185 ./tests2.4/test0.c \
1186 ./tests2.4/test1.c \
1187 ./tests2.4/test2.c \
1188 ./tests2.4/timecard.c \
1189 ./tests2.4/toothman.c \
1190 ./tests2.4/ulrich.c \
1191 ./tests2.5/badcomment.c \
1192 ./tests2.5/boolbad.c \
1193 ./tests2.5/boolt.c \
1194 ./tests2.5/booltest.c \
1195 ./tests2.5/dummyfile.c \
1197 ./tests2.5/immutable.c \
1198 ./tests2.5/impabsmodule.c \
1199 ./tests2.5/literals.c \
1200 ./tests2.5/quals.c \
1202 ./tests2.5/testalt.c \
1203 ./tests2.5/testimmutable.c \
1204 ./tests2.5/uconstants.c \
1206 ./warnuse/warnflags.c \
1207 ./warnuse/warngets.c \
1208 ./warnuse/warnuse.c \
1209 ./moreBufferTests2/unknownsize.c \
1210 ./moreBufferTests2/arrayConstExpr.c \
1215 ansireserved.expect \
1220 branchstate.expect \
1227 commentchar.expect \
1228 compdestroy.expect \
1230 controldepth.expect \
1233 czechoslovaknames.expect \
1249 funcpointer.expect \
1251 globalbufferannotation.expect \
1254 impabstract.expect \
1262 lintcomments.expect \
1264 longconstants.expect \
1274 mongoincludes.expect \
1275 moreBufferTests.expect \
1276 moreBufferTests2.expect \
1281 nullterminatedtest.expect \
1286 postnotnull.expect \
1294 repexpose.lh.expect \
1297 simplebufferConstraintTests.expect \
1300 slovaknames.expect \
1301 specclauses.expect \
1304 staticarray.expect \
1307 structassign.expect \
1319 unreachable.expect \
1320 unsignedcompare.expect \
1359 ./metastate/global.h \
1360 ./suppressfile/test.h \
1361 ./tests2.2/Makefile.hide \
1362 ./tests2.2/mbool.h \
1363 ./tests2.4/forward.h \
1365 ./tests2.4/timecard.h \
1367 ./tests2.5/bimbim.h \
1368 ./tests2.5/immutable.h \
1369 ./tests2.5/impabsmodule.h \
1370 ./tests2.5/socket.h \
1371 ./Makefile-test.os2 \
1375 ./conditions/Makefile \
1378 ./globalbufferannotation/Makefile \
1380 ./mergestate/Makefile \
1381 ./metastate/Makefile \
1382 ./moreBufferTests/Makefile \
1383 ./simplebufferConstraintTests/Makefile \
1385 ./tainted/Makefile \
1387 ./tests2.2/Makefile.hide \
1388 ./tests2.2/Makefile \
1389 ./tests2.2/Makefile-tests2.2.os2 \
1390 ./tests2.2a/Makefile \
1391 ./tests2.4/Makefile \
1392 ./tests2.4/Makefile-tests2.4.os2 \
1393 ./tests2.5/Makefile \
1394 ./warnuse/Makefile \
1397 ./moreBufferTests2/Makefile \
1398 ./fileio/eof.mts ./fileio/file.mts ./fileio/filerw.mts ./mergestate/tainted.mts ./mergestate/taintednm.mts ./metastate/file.mts ./metastate/nullterminated.mts ./metastate/sockets.mts ./tainted/tainted-bad.mts ./tainted/tainted.mts ./fileio/file.xh ./fileio/filerw.xh ./mergestate/tainted.xh ./mergestate/taintednm.xh ./metastate/file.xh ./tainted/tainted.xh \
1399 alias alttypes ansireserved \
1400 db2.old-expect outglob outparam preds union.pp warnuse.old-expect \
1401 ./tests2.5/badcomment ./tests2.5/boolbad ./tests2.5/booltest ./tests2.5/uconstants