mariadb/storage
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
..
archive Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
blackhole Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
cassandra Merge 10.3 into 10.4 2021-11-29 10:59:22 +02:00
connect Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
csv Merge branch 'bb-10.3-release' into bb-10.4-release 2021-02-12 17:44:22 +01:00
example Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
federated Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
federatedx Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
heap Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
innobase Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
maria Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
mroonga Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
myisam Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
myisammrg Merge branch '10.3' into 10.4 2020-08-03 14:44:06 +02:00
oqgraph Merge 10.3 into 10.4 2021-11-29 10:59:22 +02:00
perfschema Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
rocksdb Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
sequence Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
sphinx Merge branch '10.3' into 10.4 2022-10-26 14:55:47 +02:00
spider Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
test_sql_discovery MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-12 22:10:39 +04:00
tokudb Merge branch '10.3' into 10.4 2023-01-10 21:04:17 +01:00