« Previous | Next » 

Revision 69d5d21f

ID69d5d21f90516a8b988a88915865b38e543fc994

Added by Tomoki Sekiyama over 10 years ago

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 <>
Reviewed-by: Michael Roth <>
Signed-off-by: Michael Roth <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences