]> andersk Git - splint.git/blame - test/Makefile
I'm trying to fix some of the problems with the Makefile.
[splint.git] / test / Makefile
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
15
16SHELL = /bin/sh
17
18srcdir = .
19top_srcdir = ..
20
21prefix = /usr/local
22exec_prefix = ${prefix}
23
24bindir = ${exec_prefix}/bin
25sbindir = ${exec_prefix}/sbin
26libexecdir = ${exec_prefix}/libexec
27datadir = ${prefix}/share
28sysconfdir = ${prefix}/etc
29sharedstatedir = ${prefix}/com
30localstatedir = ${prefix}/var
31libdir = ${exec_prefix}/lib
32infodir = ${prefix}/info
33mandir = ${prefix}/man
34includedir = ${prefix}/include
35oldincludedir = /usr/include
36pkgdatadir = $(datadir)/lclint
37pkglibdir = $(libdir)/lclint
38pkgincludedir = $(includedir)/lclint
39top_builddir = ..
40
914641fc 41ACLOCAL = ${SHELL} /tmp/LCLintDev/config/missing --run aclocal
42AUTOCONF = ${SHELL} /tmp/LCLintDev/config/missing --run autoconf
43AUTOMAKE = ${SHELL} /tmp/LCLintDev/config/missing --run automake
44AUTOHEADER = ${SHELL} /tmp/LCLintDev/config/missing --run autoheader
8fe44445 45
46INSTALL = /usr/bin/install -c
47INSTALL_PROGRAM = ${INSTALL}
48INSTALL_DATA = ${INSTALL} -m 644
49INSTALL_SCRIPT = ${INSTALL}
50INSTALL_HEADER = $(INSTALL_DATA)
51transform = s,x,x,
52NORMAL_INSTALL = :
53PRE_INSTALL = :
54POST_INSTALL = :
55NORMAL_UNINSTALL = :
56PRE_UNINSTALL = :
57POST_UNINSTALL = :
58host_alias =
59host_triplet = i686-pc-linux-gnu
914641fc 60AMTAR = ${SHELL} /tmp/LCLintDev/config/missing --run tar
61AWK = mawk
8fe44445 62BISON = bison
63CAT = cat
64CC = gcc
65CP = cp
66CPP = gcc -E
67CXX = g++
68DEPDIR = .deps
69DIFF = diff
70EXEEXT =
71GREP = grep
72INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
73LCLOBJ = $(lcl_OBJECTS)
74LEX = flex
75LN_S = ln -s
76MV = mv
77OBJEXT = o
78PACKAGE = lclint
79RM = rm
80VERSION = 3.0.0.19
81am__include = include
82am__quote =
914641fc 83install_sh = /tmp/LCLintDev/config/install-sh
8fe44445 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)
885824d3 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"
8fe44445 100LCLINTR = $(LCLINTRN) -exportlocal +debugfcnconstraint
1d239d69 101
a469ccf0 102LCLINTRNNEST = $(LCLINTPNEST) -nof -hints -booltype "bool"
103LCLINTRNEST = $(LCLINTRNNEST) -exportlocal +debugfcnconstraint
104
ed309918 105
15b3d2b2 106###
8fe44445 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))
885824d3 132
133INTEGTESTS = db1 db2 db3
8fe44445 134INTEGEXPECTS = $(addsuffix .expect, $(INTEGTESTS))
885824d3 135
136LCLINTTESTS = $(UNITTESTS) $(INTEGTESTS)
137
3120b462 138QUICKTESTS = db3
139
8fe44445 140CLEANOUTPUT = $(GREP) -v "LCLint 3." | $(GREP) -v "$(LCLINT)" | $(GREP) -v "^make.*\[[1-9]*\]:"
885824d3 141
8fe44445 142
a469ccf0 143### Rules for tests start here
b7b694d6 144
145###
8fe44445 146### Bugs fixed and new features since version 2.1b
b7b694d6 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
b7b694d6 159
8fe44445 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:
885824d3 172
885824d3 173
8fe44445 174DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
885824d3 175
8fe44445 176top_distdir = ..
177distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
885824d3 178
8fe44445 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
885824d3 198
8fe44445 199installdirs:
885824d3 200
8fe44445 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
885824d3 259
8fe44445 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
885824d3 273version:
274 -$(LCLINTP) -help version
275
8fe44445 276.PHONY: help
885824d3 277help:
278 -@$(LCLINTP)
a469ccf0 279 -@LARCH_PATH=/dev/null; $(LCLINT) empty.lcl
885824d3 280 -@$(LCLINTP) -help
281 -@$(LCLINTP) -asdf
282 -@$(LCLINTP) +boolint +boolint
283 -@$(LCLINTP) -help flags alpha
284 -@$(LCLINTP) -help flags all
285
8fe44445 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
885824d3 350abstptr:
351 $(LCLINTR) abstptr -expect 9
352 $(LCLINTR) abstptr +voidabstract -expect 6
353
8fe44445 354.PHONY: abstract
885824d3 355abstract:
356 $(LCLINTR) abst_t.lcl commentcmd.c -expect 15
357
8fe44445 358.PHONY: alias
885824d3 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
8fe44445 368.PHONY: alttypes
885824d3 369alttypes:
370 $(LCLINTR) alttypes.c -expect 2
371
80ee600a 372###
373### evans 2001-06-07 - updated nameCheck.c to reflect C9X.
8fe44445 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.
80ee600a 378###
379
8fe44445 380.PHONY: ansireserved
885824d3 381ansireserved:
80ee600a 382 $(LCLINTR) ansireserved.c +ansireserved -nolib -expect 9
885824d3 383 $(LCLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
80ee600a 384 $(LCLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 12
385 $(LCLINTR) ansireserved2.c +ansireserved -expect 1
885824d3 386
8fe44445 387.PHONY: argorder
885824d3 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
8fe44445 396.PHONY: args
885824d3 397args:
398 $(LCLINTR) args -noeffect -expect 12
399
8fe44445 400.PHONY: blocks
885824d3 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
8fe44445 409.PHONY: break
885824d3 410break:
411 $(LCLINTR) break.c -expect 4
412 $(LCLINTR) break.c +deepbreak -expect 6
413 $(LCLINTR) break.c +deepbreak -looploopbreak -expect 5
414
8fe44445 415.PHONY: cases
885824d3 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
8fe44445 422.PHONY: cast
885824d3 423cast:
424 $(LCLINTR) cast -accessmodule -expect 20
425 $(LCLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
426
cc78dedd 427### Two addition errors detected with 2.5 with -numliteral.
428
8fe44445 429.PHONY: charlit
885824d3 430charlit:
431 $(LCLINTR) +hints charlit.c -expect 4
cc78dedd 432 $(LCLINTR) +hints -numliteral charlit.c -expect 6
885824d3 433 $(LCLINTR) +hints charlit.c +charintliteral +ignoresigns
434
8fe44445 435.PHONY: clauses
885824d3 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
8fe44445 442.PHONY: commentchar
885824d3 443commentchar:
444 $(LCLINTR) commentchar.c -expect 4
445 $(LCLINTR) -commentchar '#' commentchar.c -expect 4
446
8fe44445 447.PHONY: controldepth
885824d3 448controldepth:
449 $(LCLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
450 $(LCLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
451
8fe44445 452.PHONY: compdestroy
885824d3 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
8fe44445 459.PHONY: constannot
b9904f57 460constannot:
4109ede4 461 ${LCLINTRN} constannot.c +arraybounds -exportlocal -expect 2
b9904f57 462
8fe44445 463.PHONY: csyntax
885824d3 464csyntax:
cc78dedd 465 $(LCLINTR) +quiet -incondefs csyntax.c -expect 1
466 $(LCLINTR) +quiet csyntax2.c -expect 2
467 $(LCLINTR) +quiet csyntax3.c -expect 1
885824d3 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
cc78dedd 477 $(LCLINTR) +quiet csyntax13.c -expect 1
885824d3 478 $(LCLINTR) +quiet csyntax14.c
479 $(LCLINTR) +quiet csyntax15.c
cc78dedd 480 $(LCLINTR) +quiet csyntax16.c -expect 2
481 $(LCLINTR) +quiet csyntax17.c -expect 3
885824d3 482
8fe44445 483.PHONY: czechnames
885824d3 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
8fe44445 490.PHONY: czechoslovaknames
885824d3 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
80ee600a 496###
497### deadparam added 2001-05-27
498###
499
8fe44445 500.PHONY: deadparam
80ee600a 501deadparam:
502 ${LCLINTR} deadparam.c -expect 3
503
885824d3 504#
505# Was expect 3 before 2.4. Earlier versions did not handle implicit
506# function pointers correctly.
507#
508
8fe44445 509.PHONY: decl
885824d3 510decl:
511 $(LCLINTR) decl.c -expect 2
512 $(LCLINTRN) decl.c +strict -exportlocal -expect 5
513 $(LCLINTR) decl2 -expect 4
514
8fe44445 515.PHONY: enum
885824d3 516enum:
517 $(LCLINTR) enum -expect 16
518 $(LCLINTR) enum -misscase -expect 14
519
8fe44445 520.PHONY: exports
885824d3 521exports:
522 $(LCLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
523 $(LCLINTR) exports.c +exportany -expect 3
524 $(LCLINTR) exports.c
525
8fe44445 526.PHONY: external
885824d3 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
8fe44445 534.PHONY: fields
885824d3 535fields:
536 $(LCLINTR) fields.c +memchecks -expect 6
537 $(LCLINTR) fields2.c +memchecks -expect 5
538 $(LCLINTR) fields3.c +memchecks
539
8fe44445 540.PHONY: flags
885824d3 541flags:
542 $(LCLINTR) flags.c -expect 8
543 $(LCLINTR) +nocomments flags.c -expect 2
544
80ee600a 545### Added 2001-06-02
546
8fe44445 547.PHONY: forbody
80ee600a 548forbody:
549 ${LCLINTR} forbody.c -expect 2
550
551### Added 2001-06-03
8fe44445 552.PHONY: format
80ee600a 553format:
554 ${LCLINTR} format.c -expect 3
555 ${LCLINTR} format.c -formatconst
556
885824d3 557# two new errors (invalid lhs)
558
8fe44445 559.PHONY: funcpointer
885824d3 560funcpointer:
561 $(LCLINTR) +memchecks +noparams funcpointer.c -expect 18
562
8fe44445 563.PHONY: glob
885824d3 564glob:
565 $(LCLINTR) glob -expect 4
566 $(LCLINTR) glob -globuse -expect 3
567 $(LCLINTR) glob +globunspec -expect 6
568
8fe44445 569.PHONY: globals
885824d3 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
80ee600a 578# Was -accessfile
8fe44445 579.PHONY: impabstract
80ee600a 580impabstract:
581 $(LCLINTR) -accessmodule impabstract.c
582 $(LCLINTR) -accessmodule +hints +impabstract impabstract.c -expect 2
583 $(LCLINTR) -accessmodule +hints +impabstract impabstract -expect 4
885824d3 584
8fe44445 585### evans 2001-10-14: Expected errors updated
586.PHONY: init
885824d3 587init:
7534721d 588 $(LCLINTR) init.c -expect 14
589 $(LCLINTRN) init.c +checks -exportlocal -exportheadervar -expect 17
885824d3 590
8fe44445 591.PHONY: inparam
885824d3 592inparam:
593 $(LCLINTR) inparam.c -expect 2
594 $(LCLINTR) +impouts inparam.c -expect 1
595
8fe44445 596.PHONY: internal
885824d3 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
80ee600a 604###
605### iter
606### 2001-06-06: Error message for iter.lcl:3,6 fixed to iter.lcl:3:6
607###
608
8fe44445 609.PHONY: iter
885824d3 610iter:
611 $(LCLINTR) iter -expect 14 -lclexpect 1
612 $(LCLINTR) iter2.c -expect 12
613
8fe44445 614.PHONY: keep
885824d3 615keep:
616 $(LCLINTR) keep.c +memchecks -expect 6
617
80ee600a 618### libs
619### 2001-05-22: 2 new errors found (fixed spec of signal)
620### 2001-05-30: 3 new errors found (formatconst)
885824d3 621
8fe44445 622.PHONY: libs
885824d3 623libs:
80ee600a 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
885824d3 628
8fe44445 629.PHONY: lintcomments
885824d3 630lintcomments:
631 $(LCLINTR) lintcomments.c -expect 4
632 $(LCLINTR) lintcomments.c -warnlintcomments -expect 1
633 $(LCLINTR) lintcomments.c -lintcomments -expect 4
634
8fe44445 635.PHONY: list
885824d3 636list:
637 $(LCLINTR) list.c -expect 3
638
8fe44445 639.PHONY: macros
885824d3 640macros:
641 $(LCLINTR) macros -expect 17
642 $(LCLINTR) macros.c +allmacros -expect 34
643 $(LCLINTR) macros.c +fcnmacros -expect 31
644
8fe44445 645.PHONY: macrosef
885824d3 646macrosef:
647 $(LCLINTR) macrosef -expect 4
648 $(LCLINTR) macrosef.c +allmacros -expect 3
649 $(LCLINTR) macrosef.c +allmacros +sefuncon -expect 4
650
8fe44445 651.PHONY: merge
885824d3 652merge:
653 $(LCLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
654
8fe44445 655.PHONY: modifies
885824d3 656modifies:
657 $(LCLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
658
8fe44445 659.PHONY: modtest
885824d3 660modtest:
661 $(LCLINTR) modtest -expect 10
662 $(LCLINTR) modtest +modunspec -expect 13
663 $(LCLINTR) modtest +mustmod -expect 14
664
8fe44445 665.PHONY: moduncon
885824d3 666moduncon:
667 $(LCLINTR) moduncon.c +moduncon -memchecks -expect 4
668 $(LCLINTRN) moduncon.c +strict -exportlocal -expect 22
669
8fe44445 670.PHONY: mongoincludes
885824d3 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
8fe44445 678.PHONY: mystrncat
3120b462 679mystrncat:
4109ede4 680 $(LCLINTR) mystrncat.c +arraybounds +arrayboundsread -expect 4
3120b462 681
8fe44445 682.PHONY: noeffect
ccf0a4a8 683noeffect:
b7b694d6 684 ${LCLINT} -nof noeffect.c +allmacros +checks -expect 3
ccf0a4a8 685
8fe44445 686.PHONY: null
885824d3 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
80ee600a 699### Added for 3.0 (bugs reported by Kevin Broady)
700
8fe44445 701.PHONY: nullret
80ee600a 702nullret:
703 $(LCLINTR) nullret.c -expect 2
704 $(LCLINTR) -nullret nullret.c -expect 1
705
8fe44445 706.PHONY: nullassign
80ee600a 707nullassign:
708 $(LCLINTR) nullassign.c -expect 2
709 $(LCLINTR) -nullassign nullassign.c -expect 1
710
885824d3 711#
712# Before 2.4, expected one more because error was reported both as
713# dependent and observer.
714#
715
8fe44445 716.PHONY: observer
885824d3 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
8fe44445 722.PHONY: oldstyle
885824d3 723oldstyle:
724 $(LCLINTR) oldstyle -expect 3
725
8fe44445 726.PHONY: outglob
885824d3 727outglob:
728 $(LCLINTR) outglob -expect 10
729
8fe44445 730.PHONY: outparam
885824d3 731outparam:
732 $(LCLINTR) outparam -expect 12
733
1d239d69 734### evans 2001-08-26: postnotnull new
735
8fe44445 736.PHONY: postnotnull
1d239d69 737postnotnull:
738 ${LCLINTR} postnotnull.c -expect 1
efd360a3 739#
740# Four new +fcnuse errors for -strict (evans 2001-07-22)
741#
742
8fe44445 743.PHONY: preds
885824d3 744preds:
745 $(LCLINTR) +hints preds.c -expect 6
746 $(LCLINTRN) +hints preds.c -weak -expect 1
efd360a3 747 $(LCLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 12
885824d3 748
8fe44445 749.PHONY: prefixes
885824d3 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
8fe44445 768.PHONY: printflike
885824d3 769printflike:
770 $(LCLINTR) printflike.c -expect 6
771 $(LCLINTR) printflike.c -warnlintcomments -expect 5
772
8fe44445 773.PHONY: rc
885824d3 774rc:
cc78dedd 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
885824d3 780
8fe44445 781.PHONY: refcounts
885824d3 782refcounts:
783 $(LCLINTR) refcounts.c -expect 7
784
8fe44445 785.PHONY: release
885824d3 786release:
787 $(LCLINTR) release.c +memchecks -expect 1
788
8fe44445 789.PHONY: repexpose
885824d3 790repexpose:
791 $(LCLINTR) +lh repexpose +memchecks -expect 12
792 $(LCLINTR) repexpose +memchecks +retalias -expect 15
793 $(LCLINTRN) repexpose +checks -exportlocal -expect 27
794
80ee600a 795### returned added 2001-05-27
796### (Bug discovered checking lclint sources.)
797
8fe44445 798.PHONY: returned
80ee600a 799returned:
800 ${LCLINTR} returned.c -expect 1
801
8fe44445 802.PHONY: sharing
885824d3 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
8fe44445 810.PHONY: slovaknames
885824d3 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
8fe44445 818.PHONY: specclauses
885824d3 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
8fe44445 826.PHONY: special
885824d3 827special:
828 $(LCLINTR) special -expect 20
829 $(LCLINTR) special -relaxquals -expect 22
830
8fe44445 831.PHONY: stack
885824d3 832stack:
833 $(LCLINTR) stack.c -expect 5
834 $(LCLINTR) stack.c -stackref
835
8fe44445 836.PHONY: staticarray
885824d3 837staticarray:
838 $(LCLINTR) staticarray.c -expect 3
839
8fe44445 840.PHONY: strings
885824d3 841strings:
842 $(LCLINTR) strings.c -expect 3
843 $(LCLINTR) -readonlystrings -expect 1 strings.c
844 $(LCLINTR) +modobserverstrict -maintype -expect 4 strings.c
845
8fe44445 846.PHONY: structassign
885824d3 847structassign:
848 $(LCLINTR) structassign.c -expect 4
849
8fe44445 850.PHONY: typequals
885824d3 851typequals:
852 $(LCLINTR) typequals.c tq.lcl -expect 5
853 $(LCLINTR) typequals.c -expect 2
854
8fe44445 855.PHONY: ud
885824d3 856ud:
857 $(LCLINTR) ud.c -expect 9
858 $(LCLINTR) ud2 -specundef -expect 3
859
8fe44445 860.PHONY: ulstypes
885824d3 861ulstypes:
862 $(LCLINTR) ulstypes.c -expect 8
863 $(LCLINTR) ulstypes.c +ignorequals
864 $(LCLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
cc78dedd 865# 3 more detected with version 2.5 (change in -numliteral setting)
885824d3 866
8fe44445 867.PHONY: union
885824d3 868union:
869 $(LCLINTR) +memchecks union.c -expect 8
870
8fe44445 871.PHONY: unreachable
885824d3 872unreachable:
873 $(LCLINTR) unreachable.c -expect 5
874 $(LCLINTR) -unreachable unreachable.c -expect 2
875 $(LCLINTR) switch.c -expect 4
876
8fe44445 877.PHONY: unsignedcompare
1d239d69 878unsignedcompare:
f828bc63 879 ${LCLINTR} +posixlib unsignedcompare.c -expect 4
1d239d69 880
80ee600a 881###
882### 2001-06-08 evans: 2 new errors after fixing ansireserved name checks
883###
884
8fe44445 885.PHONY: unused
885824d3 886unused:
80ee600a 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
8fe44445 894.PHONY: ullint
80ee600a 895ullint:
896 ${LCLINTRN} ullint.c -expect 5
897 ${LCLINTRN} ullint.c +charint +charintliteral -expect 2
898
8fe44445 899.PHONY: void
80ee600a 900void:
901 ${LCLINTRN} void.c -expect 2
902
903###
904### New since 2.5q:
905###
906
8fe44445 907.PHONY: linked
80ee600a 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
8fe44445 916.PHONY: freearray
80ee600a 917freearray:
918 ${LCLINTR} freearray.c -expect 1
885824d3 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.209205 seconds and 5 git commands to generate.