]> andersk Git - splint.git/blob - test/Makefile.in
*** empty log message ***
[splint.git] / test / Makefile.in
1 # Makefile.in generated automatically by automake 1.5 from Makefile.am.
2
3 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4 # Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 SHELL = @SHELL@
17
18 srcdir = @srcdir@
19 top_srcdir = @top_srcdir@
20 VPATH = @srcdir@
21 prefix = @prefix@
22 exec_prefix = @exec_prefix@
23
24 bindir = @bindir@
25 sbindir = @sbindir@
26 libexecdir = @libexecdir@
27 datadir = @datadir@
28 sysconfdir = @sysconfdir@
29 sharedstatedir = @sharedstatedir@
30 localstatedir = @localstatedir@
31 libdir = @libdir@
32 infodir = @infodir@
33 mandir = @mandir@
34 includedir = @includedir@
35 oldincludedir = /usr/include
36 pkgdatadir = $(datadir)/@PACKAGE@
37 pkglibdir = $(libdir)/@PACKAGE@
38 pkgincludedir = $(includedir)/@PACKAGE@
39 top_builddir = ..
40
41 ACLOCAL = @ACLOCAL@
42 AUTOCONF = @AUTOCONF@
43 AUTOMAKE = @AUTOMAKE@
44 AUTOHEADER = @AUTOHEADER@
45
46 INSTALL = @INSTALL@
47 INSTALL_PROGRAM = @INSTALL_PROGRAM@
48 INSTALL_DATA = @INSTALL_DATA@
49 INSTALL_SCRIPT = @INSTALL_SCRIPT@
50 INSTALL_HEADER = $(INSTALL_DATA)
51 transform = @program_transform_name@
52 NORMAL_INSTALL = :
53 PRE_INSTALL = :
54 POST_INSTALL = :
55 NORMAL_UNINSTALL = :
56 PRE_UNINSTALL = :
57 POST_UNINSTALL = :
58 host_alias = @host_alias@
59 host_triplet = @host@
60 BISON = @BISON@
61 CAT = @CAT@
62 CC = @CC@
63 CP = @CP@
64 CPP = @CPP@
65 CXX = @CXX@
66 DIFF = @DIFF@
67 GREP = @GREP@
68 LCLOBJ = @LCLOBJ@
69 LEX = @LEX@
70 LN_S = @LN_S@
71 MV = @MV@
72 PACKAGE = @PACKAGE@
73 RM = @RM@
74 VERSION = @VERSION@
75
76 AUTOMAKE_OPTIONS = 1.5 foreign
77
78 DIFFFLAGS = -u
79
80 LCLINT = $(top_builddir)/src/lclint$(EXEEXT)
81
82 ### This is horrible!  Can't we make top_builddir absolute?
83 LCLINTNEST = ../$(top_builddir)/src/lclint$(EXEEXT)
84
85 LCLINTPNEST = @$(LCLINTNEST)
86 LCLINTP = @$(LCLINT)
87
88 # Make sure .lclintrc files are not used so test results do not
89 # depend on local settings.
90 LCLINTRN = $(LCLINTP) -nof -hints -booltype "bool"
91 LCLINTR = $(LCLINTRN) -exportlocal +debugfcnconstraint
92
93 LCLINTRNNEST = $(LCLINTPNEST) -nof -hints -booltype "bool"
94 LCLINTRNEST = $(LCLINTRNNEST) -exportlocal +debugfcnconstraint
95
96
97 ###
98 ### !!! 
99 ### These tests have been temporarily removed because of problems with the new build process:
100 ###   fileio tainted mergestate metastate \
101 ###   tests2.2 tests2.2a tests2.4 tests2.5 
102 ###  
103 ###   maxset strchr for
104 UNITTESTS = \
105   help \
106   fileio tainted mergestate metastate sizeof buffertest \
107   tests2.2 tests2.4 tests2.5  \
108   simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
109   maxset strchr for \
110   abstptr abstract alias alttypes ansireserved argorder \
111   args blocks break cases cast charlit clauses commentchar compdestroy \
112   constannot controldepth csyntax czechnames czechoslovaknames deadparam \
113   decl enum exports external fields flags forbody format freearray \
114   funcpointer glob globals impabstract init inparam internal iter keep libs \
115   linked lintcomments list macros macrosef merge modifies modtest moduncon \
116   mongoincludes mystrncat noeffect null observer oldstyle outglob outparam \
117   postnotnull preds prefixes printflike rc refcounts release repexpose \
118   returned sharing slovaknames specclauses special stack staticarray strings \
119   structassign typequals ud ulstypes union unreachable unsignedcompare \
120   unused ullint void
121
122 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
123
124 INTEGTESTS = db1 db2 db3
125 INTEGEXPECTS = $(addsuffix .expect, $(INTEGTESTS))
126
127 LCLINTTESTS = $(UNITTESTS) $(INTEGTESTS)
128
129 QUICKTESTS = db3
130
131 CLEANOUTPUT = $(GREP) -v "LCLint 3." | $(GREP) -v "$(LCLINT)" | $(GREP) -v "^make.*\[[1-9]*\]:"
132
133
134 ### Rules for tests start here
135
136 ###
137 ### Bugs fixed and new features since version 2.1b
138 ###
139 SUBDIRTESTS = metastate mergestate tainted fileio warnuse ensuresclauses \
140    simplebufferConstraintTests moreBufferTests moreBufferTests2 globalbufferannotation \
141    maxset strchr for \
142 tests2.2 tests2.2a tests2.4 tests2.5 db1 db2 db3
143 subdir = test
144 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
145 CONFIG_HEADER = $(top_builddir)/config.h
146 CONFIG_CLEAN_FILES =
147 DIST_SOURCES =
148 DIST_COMMON = Makefile.am Makefile.in
149 all: all-am
150
151 .SUFFIXES:
152 .SUFFIXES: .c .diff .expect
153 $(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
154         cd $(top_srcdir) && \
155           $(AUTOMAKE) --foreign  test/Makefile
156 Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
157         cd $(top_builddir) && \
158           CONFIG_HEADERS= CONFIG_LINKS= \
159           CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
160 uninstall-info-am:
161 tags: TAGS
162 TAGS:
163
164
165 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
166
167 top_distdir = ..
168 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
169
170 distdir: $(DISTFILES)
171         @for file in $(DISTFILES); do \
172           if test -f $$file; then d=.; else d=$(srcdir); fi; \
173           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
174           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
175             $(mkinstalldirs) "$(distdir)/$$dir"; \
176           fi; \
177           if test -d $$d/$$file; then \
178             cp -pR $$d/$$file $(distdir) \
179             || exit 1; \
180           else \
181             test -f $(distdir)/$$file \
182             || cp -p $$d/$$file $(distdir)/$$file \
183             || exit 1; \
184           fi; \
185         done
186 check-am: all-am
187 check: check-am
188 all-am: Makefile
189
190 installdirs:
191
192 install: install-am
193 install-exec: install-exec-am
194 install-data: install-data-am
195 uninstall: uninstall-am
196
197 install-am: all-am
198         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
199
200 installcheck: installcheck-am
201 install-strip:
202         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
203           `test -z '$(STRIP)' || \
204             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
205 mostlyclean-generic:
206
207 clean-generic:
208
209 distclean-generic:
210         -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
211
212 maintainer-clean-generic:
213         @echo "This command is intended for maintainers to use"
214         @echo "it deletes files that may require special tools to rebuild."
215 clean: clean-am
216
217 clean-am: clean-generic clean-local mostlyclean-am
218
219 distclean: distclean-am
220
221 distclean-am: clean-am distclean-generic
222
223 dvi: dvi-am
224
225 dvi-am:
226
227 info: info-am
228
229 info-am:
230
231 install-data-am:
232
233 install-exec-am:
234
235 install-info: install-info-am
236
237 install-man:
238
239 installcheck-am:
240
241 maintainer-clean: maintainer-clean-am
242
243 maintainer-clean-am: distclean-am maintainer-clean-generic
244
245 mostlyclean: mostlyclean-am
246
247 mostlyclean-am: mostlyclean-generic
248
249 uninstall-am: uninstall-info-am
250
251 .PHONY: all all-am check check-am clean clean-generic clean-local \
252         distclean distclean-generic distdir dvi dvi-am info info-am \
253         install install-am install-data install-data-am install-exec \
254         install-exec-am install-info install-info-am install-man \
255         install-strip installcheck installcheck-am installdirs \
256         maintainer-clean maintainer-clean-generic mostlyclean \
257         mostlyclean-generic uninstall uninstall-am uninstall-info-am
258
259
260 .PHONY: all check
261 all check: fulltest
262
263 .PHONY: version
264 version:
265         -$(LCLINTP) -help version
266
267 .PHONY: help
268 help:
269         -@$(LCLINTP)
270         -@LARCH_PATH=/dev/null; $(LCLINT) empty.lcl
271         -@$(LCLINTP) -help
272         -@$(LCLINTP) -asdf
273         -@$(LCLINTP) +boolint +boolint 
274         -@$(LCLINTP) -help flags alpha
275         -@$(LCLINTP) -help flags all
276
277 .PHONY: clean-local
278 clean-local:
279         -rm -f *~ #*# *.o *.lcs a.out
280         -cd db1; $(MAKE) clean
281         -cd db2; $(MAKE) clean
282         -cd db3; $(MAKE) clean
283
284 $(LCLINTTESTS): $(LCLINT)
285
286 $(LCLINT):
287         cd $(top_builddir)/src; $(MAKE)
288
289 .c.expect:
290         $(MAKE) $* |& $(CLEANOUTPUT) >$*.expect && cat $*.expect
291
292 .c.diff:
293         $(MAKE) $* |& $(CLEANOUTPUT) >$*.out && diff $*.expect $*.out
294
295 .PHONY: expects
296 expects:
297         @echo "Saving old expects..."; \
298          cat *.expect >expects-`date +"%y-%m-%d-%H"`
299         @for TEST in $(UNITTESTS) $(INTEGTESTS); do \
300            echo "Making $$TEST.expect..."; \
301            $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.expect; \
302            cat $$TEST.expect; \
303          done
304
305 .PHONY: quicktest
306 quicktest:
307         @for TEST in $(QUICKTESTS); do \
308            echo "Checking $$TEST..."; \
309            $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
310              $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
311                echo "*** FAIL ***"; \
312          done
313
314 .PHONY: fulltest
315 fulltest:
316         @echo "Testing $(PACKAGE) $(VERSION)..."
317         @echo
318         @echo "Version Info:"
319         @$(LCLINTP) -help version
320         @$(LCLINTP) -help vars
321         @echo ""
322         @echo "Unit tests:"
323         @echo ""
324         @for TEST in $(UNITTESTS); do \
325            echo "Checking $$TEST..."; \
326            $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
327              $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
328                echo "*** FAIL ***"; \
329          done
330         @echo ""
331         @echo "Integration tests:"
332         @echo ""
333         @for TEST in $(INTEGTESTS); do \
334            echo "Checking $$TEST..."; \
335            $(MAKE) $$TEST 2>&1 | $(CLEANOUTPUT) >$$TEST.out && \
336              $(DIFF) $(DIFFFLAGS) $$TEST.expect $$TEST.out || \
337                echo "*** FAIL ***"; \
338          done
339
340 .PHONY: abstptr
341 abstptr:
342         $(LCLINTR) abstptr -expect 9
343         $(LCLINTR) abstptr +voidabstract -expect 6
344
345 .PHONY: abstract
346 abstract:
347         $(LCLINTR) abst_t.lcl commentcmd.c -expect 15
348
349 .PHONY: alias
350 alias:
351         $(LCLINTR) +lh mut
352         $(LCLINTR) mut alias +globalias -expect 19
353         $(LCLINTR) mut alias2 +globalias -expect 17
354         $(LCLINTR) +lh alias3 -expect 14 
355         $(LCLINTR) +lh alias4 +boolint
356         $(LCLINTR) alias4 -pred +retalias -expect 6
357         $(LCLINTR) +lh alias5 +memchecks -null -specundef -expect 5
358
359 .PHONY: alttypes
360 alttypes:
361         $(LCLINTR) alttypes.c -expect 2
362
363 ###
364 ### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
365 ### Reports one new errors for ansireserved.c - wctomb is bad even as a local
366 ###    variable (could be a macro?)
367 ### Reports 3 additional errors for +checks; no longer suppresses name errors
368 ###    in the presense of other errors.
369 ###
370
371 .PHONY: ansireserved
372 ansireserved:
373         $(LCLINTR) ansireserved.c +ansireserved -nolib -expect 9
374         $(LCLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
375         $(LCLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
376         $(LCLINTR) ansireserved2.c +ansireserved -expect 1
377
378 .PHONY: argorder
379 argorder:
380         $(LCLINTR) argorder.c -expect 4
381         $(LCLINTR) argorder2  -expect 5
382         $(LCLINTR) argorder3.c -expect 8
383         $(LCLINTR) argorder4 -expect 9
384         $(LCLINTR) argorder4 -evalorder -expect 1
385         $(LCLINTR) argorder5.c +evalorderuncon -expect 3
386
387 .PHONY: args
388 args:
389         $(LCLINTR) args -noeffect -expect 12
390
391 .PHONY: blocks
392 blocks:
393         $(LCLINTR) blocks.c -expect 4
394         $(LCLINTR) blocks.c +ifblock +elseifcomplete -expect 7
395         $(LCLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
396         $(LCLINTR) blocks.c -ifempty +forempty +forblock -expect 3
397         $(LCLINTR) blocks.c +allempty -expect 6
398         $(LCLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
399
400 .PHONY: break
401 break:
402         $(LCLINTR) break.c -expect 4
403         $(LCLINTR) break.c +deepbreak -expect 6
404         $(LCLINTR) break.c +deepbreak -looploopbreak -expect 5
405
406 .PHONY: cases
407 cases: 
408         $(LCLINTR) cases.c -expect 5
409         $(LCLINTR) cases2.c -expect 2
410         $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
411         $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
412
413 .PHONY: cast
414 cast:
415         $(LCLINTR) cast -accessmodule -expect 20
416         $(LCLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
417
418 ### Two addition errors detected with 2.5 with -numliteral.
419
420 .PHONY: charlit
421 charlit:
422         $(LCLINTR) +hints charlit.c -expect 4
423         $(LCLINTR) +hints -numliteral charlit.c -expect 6
424         $(LCLINTR) +hints charlit.c +charintliteral +ignoresigns
425
426 .PHONY: clauses
427 clauses: 
428         $(LCLINTR) clauses.c +memchecks -expect 4
429         $(LCLINTR) clauses2.c +memchecks 
430         $(LCLINTR) clauses3.c +memchecks -expect 2
431         $(LCLINTR) clauses3.c +memchecks +unixlib -expect 3
432
433 .PHONY: commentchar
434 commentchar:
435         $(LCLINTR) commentchar.c -expect 4
436         $(LCLINTR) -commentchar '#' commentchar.c -expect 4
437
438 .PHONY: controldepth
439 controldepth:
440         $(LCLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
441         $(LCLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
442
443 .PHONY: compdestroy
444 compdestroy:
445         $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
446         $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
447         $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
448         $(LCLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
449
450 .PHONY: constannot
451 constannot:
452         ${LCLINTRN} constannot.c +arraybounds  -exportlocal -expect 2
453
454 .PHONY: csyntax
455 csyntax:
456         $(LCLINTR) +quiet -incondefs csyntax.c -expect 1 
457         $(LCLINTR) +quiet csyntax2.c -expect 2
458         $(LCLINTR) +quiet csyntax3.c -expect 1
459         $(LCLINTR) +quiet -incondefs csyntax4.c
460         $(LCLINTR) +quiet csyntax5.c
461         $(LCLINTR) +quiet csyntax6.c
462         $(LCLINTR) +quiet csyntax7.c
463         $(LCLINTR) +quiet csyntax8.c
464         $(LCLINTR) +quiet csyntax9.c
465         $(LCLINTR) +quiet csyntax10.c
466         $(LCLINTR) +quiet csyntax11.c
467         $(LCLINTR) +quiet csyntax12.c
468         $(LCLINTR) +quiet csyntax13.c -expect 1
469         $(LCLINTR) +quiet csyntax14.c
470         $(LCLINTR) +quiet csyntax15.c
471         $(LCLINTR) +quiet csyntax16.c -expect 2
472         $(LCLINTR) +quiet csyntax17.c -expect 3
473
474 .PHONY: czechnames
475 czechnames:
476         $(LCLINTR) czechnames.c
477         $(LCLINTR) +hints +czech czechnames.c -expect 2
478         $(LCLINTR) +hints +czech -czechvars czechnames.c -expect 1
479         $(LCLINTR) +hints +czech -accessczech czechnames.c -expect 6
480
481 .PHONY: czechoslovaknames
482 czechoslovaknames:
483         $(LCLINTR) +hints +czechoslovak czechnames.c -expect 1
484         $(LCLINTR) +hints +czechoslovak slovaknames.c -expect 1
485         $(LCLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
486
487 ###
488 ### deadparam added 2001-05-27
489 ###
490
491 .PHONY: deadparam
492 deadparam:
493         ${LCLINTR} deadparam.c -expect 3
494
495 #
496 # Was expect 3 before 2.4.  Earlier versions did not handle implicit
497 # function pointers correctly.
498 #
499
500 .PHONY: decl
501 decl:
502         $(LCLINTR) decl.c -expect 2
503         $(LCLINTRN) decl.c +strict -exportlocal -expect 5
504         $(LCLINTR) decl2 -expect 4
505
506 .PHONY: enum
507 enum:
508         $(LCLINTR) enum -expect 16
509         $(LCLINTR) enum -misscase -expect 14
510
511 .PHONY: exports
512 exports:
513         $(LCLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
514         $(LCLINTR) exports.c +exportany -expect 3
515         $(LCLINTR) exports.c
516
517 .PHONY: external
518 external:
519         $(LCLINTR) external.c +partial
520         $(LCLINTR) external.c +partial +distinctexternalnames -expect 2
521         $(LCLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
522         $(LCLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
523         $(LCLINTR) external.c +partial -externalnamelength 3 -expect 4
524
525 .PHONY: fields
526 fields:
527         $(LCLINTR) fields.c +memchecks -expect 6
528         $(LCLINTR) fields2.c +memchecks -expect 5
529         $(LCLINTR) fields3.c +memchecks
530
531 .PHONY: flags
532 flags:
533         $(LCLINTR) flags.c -expect 8
534         $(LCLINTR) +nocomments flags.c -expect 2
535
536 ### Added 2001-06-02
537
538 .PHONY: forbody
539 forbody:
540         ${LCLINTR} forbody.c -expect 2
541
542 ### Added 2001-06-03
543 .PHONY: format
544 format:
545         ${LCLINTR} format.c -expect 3
546         ${LCLINTR} format.c -formatconst 
547
548 # two new errors (invalid lhs)
549
550 .PHONY: funcpointer
551 funcpointer:
552         $(LCLINTR) +memchecks +noparams funcpointer.c -expect 18
553
554 .PHONY: glob
555 glob:
556         $(LCLINTR) glob -expect 4
557         $(LCLINTR) glob -globuse -expect 3
558         $(LCLINTR) glob +globunspec -expect 6
559
560 .PHONY: globals
561 globals:
562         $(LCLINTR) -modifies globals.c -expect 5
563         $(LCLINTR) -modifies globals.c +allglobals -expect 6
564         $(LCLINTR) -modifies globals.c +impcheckedglobals -expect 6
565         $(LCLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
566         $(LCLINTR) -modifies globals.c +globunspec -expect 6
567         $(LCLINTR) -modifies globals.c +globunspec +allglobals -expect 8
568
569 # Was -accessfile
570 .PHONY: impabstract
571 impabstract: 
572         $(LCLINTR) -accessmodule impabstract.c 
573         $(LCLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
574         $(LCLINTR) -accessmodule +hints +impabstract impabstract -expect 4
575
576 ### evans 2001-10-14: Expected errors updated
577 .PHONY: init
578 init:
579         $(LCLINTR) init.c -expect 14
580         $(LCLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
581
582 .PHONY: inparam
583 inparam:
584         $(LCLINTR) inparam.c -expect 2
585         $(LCLINTR) +impouts inparam.c -expect 1
586
587 .PHONY: internal
588 internal:
589         $(LCLINTR) internal.c -expect 1
590         $(LCLINTR) internal.c +distinctinternalnames -expect 2
591         $(LCLINTR) internal.c -internalnamelen 28 -expect 3
592         $(LCLINTR) internal.c +internalnamecaseinsensitive -expect 3
593         $(LCLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
594
595 ###
596 ### iter
597 ### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
598 ### 
599
600 .PHONY: iter
601 iter:
602         $(LCLINTR) iter -expect 14 -lclexpect 1
603         $(LCLINTR) iter2.c -expect 12
604
605 .PHONY: keep
606 keep:
607         $(LCLINTR) keep.c +memchecks -expect 6
608
609 ### libs
610 ### 2001-05-22: 2 new errors found (fixed spec of signal)
611 ### 2001-05-30: 3 new errors found (formatconst)
612
613 .PHONY: libs
614 libs:
615         $(LCLINTR) libs.c +longunsignedunsignedintegral -expect 18
616         $(LCLINTR) libs.c -expect 22
617         $(LCLINTR) libs.c +globunspec +modunspec -expect 25
618         $(LCLINTR) libs.c +strictlib +globunspec +modunspec -expect 42
619
620 .PHONY: lintcomments
621 lintcomments:
622         $(LCLINTR) lintcomments.c -expect 4
623         $(LCLINTR) lintcomments.c -warnlintcomments -expect 1
624         $(LCLINTR) lintcomments.c -lintcomments -expect 4
625
626 .PHONY: list
627 list:
628         $(LCLINTR) list.c -expect 3
629
630 .PHONY: macros
631 macros:
632         $(LCLINTR) macros -expect 17 
633         $(LCLINTR) macros.c +allmacros -expect 34
634         $(LCLINTR) macros.c +fcnmacros -expect 31
635
636 .PHONY: macrosef
637 macrosef:
638         $(LCLINTR) macrosef -expect 4
639         $(LCLINTR) macrosef.c +allmacros -expect 3
640         $(LCLINTR) macrosef.c +allmacros +sefuncon -expect 4
641
642 .PHONY: merge
643 merge:
644         $(LCLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
645
646 .PHONY: modifies
647 modifies:
648         $(LCLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
649
650 .PHONY: modtest
651 modtest:
652         $(LCLINTR) modtest -expect 10
653         $(LCLINTR) modtest +modunspec -expect 13
654         $(LCLINTR) modtest +mustmod -expect 14
655
656 .PHONY: moduncon
657 moduncon:
658         $(LCLINTR) moduncon.c +moduncon -memchecks -expect 4
659         $(LCLINTRN) moduncon.c +strict -exportlocal -expect 22
660
661 .PHONY: mongoincludes
662 mongoincludes:
663         $(LCLINTR) mongoincludes.c -includenest 1 -expect 19
664         $(LCLINTR) mongoincludes.c -includenest 2 -expect 10
665         $(LCLINTR) mongoincludes.c -includenest 3 -expect 4
666         $(LCLINTR) mongoincludes.c -includenest 4 -expect 1
667         $(LCLINTR) mongoincludes.c -includenest 5 -expect 0
668
669 .PHONY: mystrncat
670 mystrncat:
671         $(LCLINTR) mystrncat.c +arraybounds  +arrayboundsread -expect 4 
672
673 .PHONY: noeffect
674 noeffect:
675         ${LCLINT} -nof noeffect.c +allmacros +checks -expect 3
676
677 .PHONY: null
678 null: 
679         $(LCLINTR) null1.c -expect 14
680         $(LCLINTR) null1.c -null -expect 4
681         $(LCLINTR) null2.c -expect 10
682         $(LCLINTR) null3.c -expect 15
683         $(LCLINTR) null3.c -warnunixlib +unixlib -expect 16
684         $(LCLINTR) null4.c -expect 1
685         $(LCLINTR) null5.c -expect 4
686         $(LCLINTR) null6 -expect 4
687         $(LCLINTR) +quiet null6.lcl -dump null6
688         $(LCLINTR) null6.c -load null6 -expect 4
689
690 ### Added for 3.0 (bugs reported by Kevin Broady)
691
692 .PHONY: nullret
693 nullret:
694         $(LCLINTR) nullret.c -expect 2
695         $(LCLINTR) -nullret nullret.c -expect 1
696
697 .PHONY: nullassign
698 nullassign:
699         $(LCLINTR) nullassign.c -expect 2
700         $(LCLINTR) -nullassign nullassign.c -expect 1
701
702 #
703 # Before 2.4, expected one more because error was reported both as 
704 # dependent and observer.
705 #
706
707 .PHONY: observer
708 observer:
709         $(LCLINTRN) observer +checks -exportlocal -exportheader -expect 9
710         $(LCLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
711         $(LCLINTR) observer.c -expect 7
712
713 .PHONY: oldstyle
714 oldstyle:
715         $(LCLINTR) oldstyle -expect 3
716
717 .PHONY: outglob
718 outglob:
719         $(LCLINTR) outglob -expect 10
720
721 .PHONY: outparam
722 outparam:
723         $(LCLINTR) outparam -expect 12
724
725 ### evans 2001-08-26: postnotnull new
726
727 .PHONY: postnotnull
728 postnotnull:
729         ${LCLINTR} postnotnull.c -expect 1
730 #
731 # Four new +fcnuse errors for -strict (evans 2001-07-22)
732
733
734 .PHONY: preds
735 preds:
736         $(LCLINTR) +hints preds.c -expect 6
737         $(LCLINTRN) +hints preds.c -weak -expect 1
738         $(LCLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
739
740 .PHONY: prefixes
741 prefixes:
742         $(LCLINTR) prefixes.c +partial
743         $(LCLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
744         $(LCLINTR) prefixes.c -typeprefix "T" -expect 2
745         $(LCLINTR) prefixes.c -typeprefix "^" -expect 1
746         $(LCLINTR) prefixes.c -typeprefix "^*" -expect 2
747         $(LCLINTR) prefixes.c -typeprefix "^%*" -expect 2
748         $(LCLINTR) prefixes.c -typeprefix "^~*" -expect 2
749         $(LCLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
750         $(LCLINTR) prefixes.c -filestaticprefix "^^" -expect 4
751         $(LCLINTR) prefixes.c -filestaticprefix "^#" -expect 5
752         $(LCLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
753         $(LCLINTR) prefixes.c -globalprefix "G" -expect 1
754         $(LCLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
755         $(LCLINTR) prefixes.c -externalprefix "G" -expect 5
756         $(LCLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
757         $(LCLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
758
759 .PHONY: printflike
760 printflike:
761         $(LCLINTR) printflike.c -expect 6
762         $(LCLINTR) printflike.c -warnlintcomments -expect 5
763
764 .PHONY: rc
765 rc:
766         $(LCLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
767         $(LCLINTR) -DMYSTERY=12 rc.c -expect 1
768         $(LCLINTR) -f rc1.lclintrc rc.c -expect 1
769         $(LCLINTR) -UMYSTERY -f rc1.lclintrc rc.c -expect 1
770         $(LCLINTR) -f rc3.lclintrc rc.c -expect 1
771
772 .PHONY: refcounts
773 refcounts:
774         $(LCLINTR) refcounts.c -expect 7 
775
776 .PHONY: release
777 release:
778         $(LCLINTR) release.c +memchecks -expect 1
779
780 .PHONY: repexpose
781 repexpose:
782         $(LCLINTR) +lh repexpose +memchecks -expect 12
783         $(LCLINTR) repexpose +memchecks +retalias -expect 15
784         $(LCLINTRN) repexpose +checks -exportlocal -expect 27
785
786 ### returned added 2001-05-27
787 ### (Bug discovered checking lclint sources.)
788
789 .PHONY: returned
790 returned:
791         ${LCLINTR} returned.c -expect 1
792
793 .PHONY: sharing
794 sharing: 
795         $(LCLINTR) sharing1.c -expect 21
796         $(LCLINTR) sharing3.c -expect  3
797         $(LCLINTR) sharing4.c -expect 13
798         $(LCLINTR) sharing4.c -paramimptemp -expect 12
799         $(LCLINTR) sharing5.c -expect 6
800
801 .PHONY: slovaknames
802 slovaknames:
803         $(LCLINTR) +hints slovaknames.c -expect 1
804         $(LCLINTR) +hints slovaknames.c +accessslovak 
805         $(LCLINTR) +hints +slovak slovaknames.c -expect 3
806         $(LCLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
807         $(LCLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
808
809 .PHONY: specclauses
810 specclauses:
811         $(LCLINTR) specclauses.c -expect 6
812         $(LCLINTR) specclauses2.c -expect 8
813         $(LCLINTR) specclauses3.c -expect 6
814         $(LCLINTR) specclauses4.c -expect 3
815         $(LCLINTR) specclauses5.c -expect 3
816
817 .PHONY: special
818 special:
819         $(LCLINTR) special -expect 20
820         $(LCLINTR) special -relaxquals -expect 22
821
822 .PHONY: stack
823 stack:
824         $(LCLINTR) stack.c -expect 5
825         $(LCLINTR) stack.c -stackref
826
827 .PHONY: staticarray
828 staticarray:
829         $(LCLINTR) staticarray.c -expect 3
830
831 .PHONY: strings
832 strings:
833         $(LCLINTR) strings.c -expect 3
834         $(LCLINTR) -readonlystrings -expect 1 strings.c
835         $(LCLINTR) +modobserverstrict -maintype -expect 4 strings.c
836
837 .PHONY: structassign
838 structassign:
839         $(LCLINTR) structassign.c -expect 4
840
841 .PHONY: typequals
842 typequals:
843         $(LCLINTR) typequals.c tq.lcl -expect 5
844         $(LCLINTR) typequals.c -expect 2
845
846 .PHONY: ud
847 ud:
848         $(LCLINTR) ud.c -expect 9
849         $(LCLINTR) ud2 -specundef -expect 3
850
851 .PHONY: ulstypes
852 ulstypes:
853         $(LCLINTR) ulstypes.c -expect 8
854         $(LCLINTR) ulstypes.c +ignorequals 
855         $(LCLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
856 # 3 more detected with version 2.5 (change in -numliteral setting)
857
858 .PHONY: union
859 union:
860         $(LCLINTR) +memchecks union.c -expect 8
861
862 .PHONY: unreachable
863 unreachable:
864         $(LCLINTR) unreachable.c -expect 5
865         $(LCLINTR) -unreachable unreachable.c -expect 2
866         $(LCLINTR) switch.c -expect 4
867
868 .PHONY: unsignedcompare
869 unsignedcompare:
870         ${LCLINTR} +posixlib unsignedcompare.c -expect 4
871
872 ###
873 ### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
874 ###
875
876 .PHONY: unused
877 unused:
878         $(LCLINTRN) unused.c +checks -exportlocal -expect 5
879         $(LCLINTRN) unused.c +checks -exportlocal +topuse -expect 8
880
881 ###
882 ### 2001-06-10: Provided by Jim Zalenka
883 ###
884
885 .PHONY: ullint
886 ullint:
887         ${LCLINTRN} ullint.c -expect 5
888         ${LCLINTRN} ullint.c +charint +charintliteral -expect 2
889
890 .PHONY: void
891 void:
892         ${LCLINTRN} void.c -expect 2
893
894 ###
895 ### New since 2.5q:
896 ###
897
898 .PHONY: linked
899 linked:
900         ${LCLINTR} linked.c -expect 4
901         ${LCLINTR} linked2.c -expect 3
902         ${LCLINTR} linked3.c -expect 5
903         ${LCLINTR} linked4.c -expect 6
904         ${LCLINTR} linked5.c -expect 4
905         ${LCLINTR} linked6.c -expect 4
906
907 .PHONY: freearray
908 freearray:
909         ${LCLINTR} freearray.c -expect 1
910
911 .PHONY: sizeof
912 sizeof:
913         $(LCLINTR) +arraybounds +arrayboundsread sizeof.c -expect 1
914
915 .PHONY: buffertest
916 buffertest:
917         $(LCLINTR) +arraybounds +arrayboundsread buffertest1.c -expect 5
918
919 .PHONY: $(SUBDIRTESTS)
920 $(SUBDIRTESTS):
921         cd $@; $(MAKE) LCLINT="$(LCLINTRNNEST)"
922 # Tell versions [3.59,3.63) of GNU make to not export all variables.
923 # Otherwise a system limit (for SysV at least) may be exceeded.
924 .NOEXPORT:
This page took 0.100983 seconds and 5 git commands to generate.