Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!mimsy!aplcen!osiris!phil From: phil@osiris.UUCP (Philip Kos) Newsgroups: comp.sources.wanted Subject: looking for C scope checker Message-ID: <1469@osiris.UUCP> Date: Tue, 1-Dec-87 15:26:33 EST Article-I.D.: osiris.1469 Posted: Tue Dec 1 15:26:33 1987 Date-Received: Fri, 4-Dec-87 22:50:01 EST Lines: 17 Keywords: C scope lint I am looking for a program that will check the scope of declarations in C code, and report declarations with unnecessarily broad scope. Something like lint (i.e. it could be run on a single file or on all the modules which are linked into a given program) would be great, but I could stand something that could only handle local stuff, although automatically reporting unnecessary externs would be nice. Doing this manually with nm and grep, as I do now, is pretty tedious. Any pointers will be appreciated. Also, if anyone knows of patches to lint to do scope checking, I would prefer that to a separate implementa- tion. (We have the 4.2 Berkeley lint source.) ...!decvax!decuac!\ Phil Kos ...!uunet!mimsy!aplcen!osiris!phil The Johns Hopkins Hospital ...!allegra!/ Baltimore, MD