[all-commits] [llvm/llvm-project] d36a03: [clang-tidy] New checker performance-trivially-des...

Anton Bikineev via All-commits all-commits at lists.llvm.org
Fri Nov 1 08:17:08 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d36a0333102698a1398971d0717465322b1c5c2c
      https://github.com/llvm/llvm-project/commit/d36a0333102698a1398971d0717465322b1c5c2c
  Author: Anton Bikineev <bikineev at chromium.org>
  Date:   2019-11-01 (Fri, 01 Nov 2019)

  Changed paths:
    M clang-tools-extra/clang-tidy/performance/CMakeLists.txt
    M clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
    A clang-tools-extra/clang-tidy/performance/TriviallyDestructibleCheck.cpp
    A clang-tools-extra/clang-tidy/performance/TriviallyDestructibleCheck.h
    M clang-tools-extra/clang-tidy/utils/Matchers.h
    M clang-tools-extra/clang-tidy/utils/TypeTraits.cpp
    M clang-tools-extra/clang-tidy/utils/TypeTraits.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/docs/clang-tidy/checks/performance-trivially-destructible.rst
    A clang-tools-extra/test/clang-tidy/checkers/performance-trivially-destructible.cpp

  Log Message:
  -----------
  [clang-tidy] New checker performance-trivially-destructible-check

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 for Chrome), which strives to minimize destructors and
improve runtime of sweeping phase.

In the entire chromium codebase the check hits over 2000 times.

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




More information about the All-commits mailing list