This document explains why the warnings are suppressed in .clang-tidy.
We think this is a bit excessive, as it requires a change in the way arguments are passed.
This is difficult to avoid, as it requires a major change to the implementation.
In the current logic, reinterpret-cast
is essential.
These cannot be resolved while using ioctl
.
This is difficult to avoid, as it prohibits the use of union
.
This cannot be resolved while using gmock-global. This is due to this issue.
As this doesn't have any effect on performance, and to keep the coding style in line with Autoware, this is suppressed.
In current logic, this cannot be resolved.
: error: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr,-warnings-as-errors]
reinterpret_cast<void *>(shm_addr), shm_size, prot, MAP_SHARED | MAP_FIXED_NOREPLACE, shm_fd,
^
This is a bit excessive, such as
: error: variable name 'mq' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]
mqd_t mq = mq_open(mq_name.c_str(), O_CREAT | O_RDONLY, 0666, &attr);
^
- cert-err58-cpp
- concurrency-mt-unsafe
- cppcoreguidelines-avoid-magic-numbers
- cppcoreguidelines-pro-bounds-constant-array-index
- google-default-arguments
- readability-magic-numbers
- readability-function-cognitive-complexity