[clang-tidy] Added DefaultOperatorNewCheck.
authorBalázs Kéri <1.int32@gmail.com>
Mon, 18 Nov 2019 15:02:36 +0000 (16:02 +0100)
committerBalázs Kéri <1.int32@gmail.com>
Tue, 19 Nov 2019 10:31:44 +0000 (11:31 +0100)
commite8a4c74f1157017b22d1579b6ac80fb4a634bc2a
tree9b9792353d2a93709c4fe169aa638f3a4a0513ae
parent5f026b6d9e882941fde9b7e5dc0a2d807f7f24f5
[clang-tidy] Added DefaultOperatorNewCheck.

Summary:
Added new checker 'cert-default-operator-new' that checks for
CERT rule MEM57-CPP. Simple version.

Reviewers: aaron.ballman, alexfh, JonasToth, lebedev.ri

Reviewed By: aaron.ballman

Subscribers: hiraditya, martong, mehdi_amini, mgorny, inglorion, xazax.hun, dkrupp, steven_wu, dexonsmith, Szelethus, gamesh411, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D67545
clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
clang-tools-extra/clang-tidy/cert/CMakeLists.txt
clang-tools-extra/clang-tidy/cert/DefaultOperatorNewAlignmentCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/cert/DefaultOperatorNewAlignmentCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cert-mem57-cpp.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/cert-mem57-cpp-cpp17.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/cert-mem57-cpp.cpp [new file with mode: 0644]