|
From: | Laszlo Ersek |
Subject: | Re: [Qemu-devel] [PATCH v4 03/10] checkpatch.pl: check .cpp files |
Date: | Tue, 25 Jun 2013 10:17:18 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130513 Thunderbird/17.0.6 |
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 <class T>) > - :: 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 <address@hidden> > --- > scripts/checkpatch.pl | 34 ++++++++++++++++++++++++++-------- > 1 file changed, 26 insertions(+), 8 deletions(-) It's Perl, enough said. Reviewed-by: Laszlo Ersek <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |