Received: from eggs.gnu.org ([2001:4830:134:3::10]:52300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtJCD-0001cu-EW for qemu-devel@nongnu.org; Sat, 07 Jun 2014 12:10:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtJC8-00052r-U8 for qemu-devel@nongnu.org; Sat, 07 Jun 2014 12:10:17 -0400 Message-ID: <53933960.5070502@weilnetz.de> Date: Sat, 07 Jun 2014 18:10:08 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1402155757-24977-1-git-send-email-sw@weilnetz.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] checkpatch: Check *.cc files and allow C99 comments for C++ code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Trivial , QEMU Developers Am 07.06.2014 17:58, schrieb Peter Maydell: > On 7 June 2014 16:42, Stefan Weil wrote: >> QEMU uses both *.cc and *.cpp for some files with C++ code: >> >> disas/libvixl/utils.cc >> disas/libvixl/a64/disasm-a64.cc >> disas/libvixl/a64/instructions-a64.cc >> disas/libvixl/a64/decoder-a64.cc >> disas/arm-a64.cc >> qga/vss-win32/provider.cpp >> qga/vss-win32/install.cpp >> qga/vss-win32/requester.cpp >> >> *.cpp files were already checked. Add the cc pattern, so *.cc are checked >> now, too. > > Note that there's not much point in checking libvixl's .cc files, > because we're only going to change these for (a) updates > to new upstream versions and (b) fixes for serious issues > that can't wait for a new upstream version; they're never > going to match our coding style. > > thanks > -- PMM > disas/arm-a64.cc is purely QEMU code and should use the QEMU coding style. For Linux header files, libvixl and other imported code, people usually know how they have to handle them. My own patch also fails when it is checked with checkpatch.pl: it uses tabs, and some lines are too long. It's also imported code... Stefan