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