From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 42BCAA04 for ; Tue, 14 Jul 2015 11:59:38 +0000 (UTC) Received: from lists.s-osg.org (lists.s-osg.org [54.187.51.154]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id A352515B for ; Tue, 14 Jul 2015 11:59:37 +0000 (UTC) Date: Tue, 14 Jul 2015 08:59:28 -0300 From: Mauro Carvalho Chehab To: Julia Lawall Message-ID: <20150714085928.25a90f17@recife.lan> In-Reply-To: References: <201507130038.01474.PeterHuewe@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ksummit-discuss@lists.linuxfoundation.org, Dan Carpenter Subject: Re: [Ksummit-discuss] [CORE-TOPIC] Documentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Em Sun, 12 Jul 2015 19:15:32 -0400 (EDT) Julia Lawall escreveu: > > So this leads me to following questions: > > - How can we easily identify missing documentation? > > -- Maybe Julia can come up with some coccinelle magic? > > -- Maybe even mark non-extractable documentation and convert it. > > -- In the document it mentions scripts/basic/doproc.c checks for missing > > documentation, but this file does not exist anymore :/ > > Interesting idea. I had not thought of this. Coccinelle doesn't really > process comments, but one can always use grep. So the idea would be to > find function definitions that don't have anything that looks like a > comment in the lines above (ie, the lines since the end of the previous > function definition). One could furthermore rank the results by the > number of non-local calls to the function. I guess there would be a lot > of reports, and it would be most productive to start with functions that > are commonly used, I guess it should first try to classify the type of the exported symbols, in order to check either if they're used only internally inside a subsystem or global wide, and report, by default, just the global wide undocumented ones, sorted by number of occurrences. Maybe the tool could be based on LXR[1] or use some output of it. [1] http://free-electrons.com/pub/source/lxr-0.3.1-fe1.tar.bz2 Regards, Mauro