]> git.proxmox.com Git - qemu.git/commit
checkpatch.pl: Check .cpp files
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Wed, 7 Aug 2013 15:39:50 +0000 (11:39 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 9 Sep 2013 19:17:56 +0000 (14:17 -0500)
commit69d5d21f90516a8b988a88915865b38e543fc994
tree56b59a411295832d71833dc6eafc61f9d9aac5d9
parent6f88009ee505e1e9fbf6b74b2e2fb3e24cd3411b
checkpatch.pl: Check .cpp files

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())
  - spacing around 'catch'            (e.g. catch (...))

Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
scripts/checkpatch.pl