[clang-tidy] Add new cert-dcl21-cpp check
authorGabor Horvath <xazax.hun@gmail.com>
Wed, 10 May 2017 11:16:55 +0000 (11:16 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Wed, 10 May 2017 11:16:55 +0000 (11:16 +0000)
commita7fcc00d510f670cf5b94ea581234adefb063461
tree8ff11821140e1a51cd65ff9e70e31fe899d63899
parentf3adab4c20c6ed26337cd2604549546d75759b27
[clang-tidy] Add new cert-dcl21-cpp check

This check flags postfix operator++/-- declarations,
where the return type is not a const object.

Differential Revision: https://reviews.llvm.org/D32743

llvm-svn: 302637
clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
clang-tools-extra/clang-tidy/cert/CMakeLists.txt
clang-tools-extra/clang-tidy/cert/PostfixOperatorCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/cert/PostfixOperatorCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cert-dcl21-cpp.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/cert-dcl21-cpp.cpp [new file with mode: 0644]