From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrOPH-00043z-4v for qemu-devel@nongnu.org; Tue, 25 Jun 2013 04:15:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrOPA-0002kf-T4 for qemu-devel@nongnu.org; Tue, 25 Jun 2013 04:15:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrOPA-0002kX-L6 for qemu-devel@nongnu.org; Tue, 25 Jun 2013 04:15:12 -0400 Message-ID: <51C9520E.2040302@redhat.com> Date: Tue, 25 Jun 2013 10:17:18 +0200 From: Laszlo Ersek MIME-Version: 1.0 References: <20130606150618.10486.60669.stgit@hds.com> <20130606150634.10486.29571.stgit@hds.com> In-Reply-To: <20130606150634.10486.29571.stgit@hds.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 03/10] checkpatch.pl: check .cpp files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tomoki Sekiyama Cc: libaiqing@huawei.com, mdroth@linux.vnet.ibm.com, stefanha@gmail.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, vrozenfe@redhat.com, pbonzini@redhat.com, seiji.aguchi@hds.com, areis@redhat.com On 06/06/13 17:06, Tomoki Sekiyama wrote: > Enable checkpatch.pl to apply the same checks as C source files for > C++ files with .cpp extensions. It also adds some exceptions for C++ > sources to suppress errors for: > - <> used in C++ template arguments (e.g. template ) > - :: used to represent namespaces (e.g. SomeClass::method()) > - : used in class declaration (e.g. class T : public Super) > - ~ used in destructor method name (e.g. T::~T()) > > Signed-off-by: Tomoki Sekiyama > --- > scripts/checkpatch.pl | 34 ++++++++++++++++++++++++++-------- > 1 file changed, 26 insertions(+), 8 deletions(-) It's Perl, enough said. Reviewed-by: Laszlo Ersek