mariadb/storage/heap
Vicențiu Ciorbaru 08c852026d Apply clang-tidy to remove empty constructors / destructors
This patch is the result of running
run-clang-tidy -fix -header-filter=.* -checks='-*,modernize-use-equals-default' .

Code style changes have been done on top. The result of this change
leads to the following improvements:

1. Binary size reduction.
* For a -DBUILD_CONFIG=mysql_release build, the binary size is reduced by
  ~400kb.
* A raw -DCMAKE_BUILD_TYPE=Release reduces the binary size by ~1.4kb.

2. Compiler can better understand the intent of the code, thus it leads
   to more optimization possibilities. Additionally it enabled detecting
   unused variables that had an empty default constructor but not marked
   so explicitly.

   Particular change required following this patch in sql/opt_range.cc

   result_keys, an unused template class Bitmap now correctly issues
   unused variable warnings.

   Setting Bitmap template class constructor to default allows the compiler
   to identify that there are no side-effects when instantiating the class.
   Previously the compiler could not issue the warning as it assumed Bitmap
   class (being a template) would not be performing a NO-OP for its default
   constructor. This prevented the "unused variable warning".
2023-02-09 16:09:08 +02:00
..
mysql-test/mtr2
_check.c Merge 5.5 into 10.1 2019-11-06 08:17:03 +02:00
_rectest.c
ChangeLog
CMakeLists.txt
ha_heap.cc Merge 10.3 into 10.4 2021-06-08 15:02:40 +03:00
ha_heap.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
heapdef.h
hp_block.c
hp_clear.c
hp_close.c MDEV-18783 - Server crash in hp_rb_make_key 2019-10-30 12:52:19 +04:00
hp_create.c
hp_delete.c
hp_extra.c
hp_hash.c
hp_info.c
hp_open.c
hp_panic.c
hp_rename.c
hp_rfirst.c
hp_rkey.c
hp_rlast.c
hp_rnext.c
hp_rprev.c
hp_rrnd.c
hp_rsame.c
hp_scan.c MDEV-15458 Segfault in heap_scan() upon UPDATE after ADD SYSTEM VERSIONING 2019-08-20 15:37:08 +02:00
hp_static.c
hp_test1.c Fix clang -Wunused-but-set-variable in unit tests 2022-07-26 08:18:36 +03:00
hp_test2.c
hp_update.c
hp_write.c