[PATCH] D69435: [clang-tidy] New checker performance-trivially-destructible-check
Anton Bikineev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 25 09:11:21 PDT 2019
AntonBikineev created this revision.
AntonBikineev added a reviewer: klimek.
AntonBikineev added projects: clang, clang-tools-extra.
Herald added subscribers: mgehre, xazax.hun, mgorny.
Checks for types which can be made trivially-destructible by removing
out-of-line defaulted destructor declarations.
The check is motivated by the work on C++ garbage collector in Blink
(rendering engine in Chrome), which strives to minimize destructor usage
and improve runtime of sweeping phase.
In the entire chromium codebase the check hits over ~2500 times.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D69435
Files:
clang-tools-extra/clang-tidy/performance/CMakeLists.txt
clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
clang-tools-extra/clang-tidy/performance/TriviallyDestructibleCheck.cpp
clang-tools-extra/clang-tidy/performance/TriviallyDestructibleCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/performance-trivially-destructible.rst
clang-tools-extra/test/clang-tidy/checkers/performance-trivially-destructible.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69435.226439.patch
Type: text/x-patch
Size: 11628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191025/6936c718/attachment-0001.bin>
More information about the cfe-commits
mailing list