10 Commits

Author SHA1 Message Date
Chris Robinson
069985e1e8 Avoid implicit array-to-pointer decay
Note that GCC's va_list seems to be implemented as some type with an array size
of 1 (__va_list_tag[1]), which is expected to implicitly decay to a pointer
when passed as a parameter. This unfortunately necessitates NOLINTBEGIN/END
where it's used to silence clang-tidy.
2024-01-24 20:31:02 -08:00
Chris Robinson
8c80f29e24 Avoid some const_casts 2024-01-03 19:10:15 -08:00
Chris Robinson
fde74453a6 Use macros for the likely/unlikely attributes
The syntax parser for GCC 8 (and earlier?) fails when these attributes are in
certain places.
2023-03-01 11:35:39 -08:00
Rosen Penev
0526ecd2f9 clang-tidy cleanups (#800)
* clang-tidy: use bool literals

Found with modernize-use-bool-literals

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* clang-tidy: replace std::bind with lambdas

Found with modernize-avoid-bind

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* clang-tidy: use data() instead of pointer stuff

Found with readability-container-data-pointe

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* clang-tidy: use empty()

Found with readability-container-size-empty

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* clang-tidy: remove static in anon namespace

Found with readability-static-definition-in-anonymous-namespace

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* clang-tidy: remove const return

Found with readability-const-return-type

Signed-off-by: Rosen Penev <rosenp@gmail.com>

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-15 13:43:27 -08:00
Chris Robinson
4bf9461369 Avoid inlining the base_exception destructor 2023-01-13 02:09:54 -08:00
Chris Robinson
84cfef8513 Avoid inlining certain exception functions 2022-12-16 10:03:39 -08:00
Chris Robinson
fcf4e60051 Define a destructor as default instead of empty 2022-12-15 16:24:01 -08:00
Chris Robinson
4d757068c4 Avoid using a macro to wrap standard attributes 2022-12-06 01:48:58 -08:00
Chris Robinson
4de5c7dfee Avoid some uses of the LIKELY/UNLIKELY macros 2022-12-05 15:17:39 -08:00
Chris Robinson
eedc42890f Move alexcpt to core 2020-12-24 22:49:55 -08:00