clang-tidy: add most bugprone warnings
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 14 Jan 2023 00:34:42 +0000 (19:34 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 17 Jan 2023 03:40:21 +0000 (22:40 -0500)
commit5c7248cd5bce45bf64d563fb4e130a63bf345f11
treeea59a623cd894e6e646e894110ee0fcfad4a6004
parentcd9adb8b829564212158943a0d279bb35322ab30
clang-tidy: add most bugprone warnings

Most of the changes proposed by clang-tidy are explicit checks for the
result of strcmp() and adding parentheses for all macro parameters.

Change-Id: I6ce7384b6d96035454d5456ac920becbf2882e65
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
65 files changed:
.clang-tidy
doc/examples/rotation/rotate-client-example.c
src/bin/lttng-crash/lttng-crash.cpp
src/bin/lttng-relayd/live.cpp
src/bin/lttng-relayd/main.cpp
src/bin/lttng-sessiond/channel.cpp
src/bin/lttng-sessiond/cmd.cpp
src/bin/lttng-sessiond/ctf2-trace-class-visitor.cpp
src/bin/lttng-sessiond/event.cpp
src/bin/lttng-sessiond/main.cpp
src/bin/lttng-sessiond/notification-thread-events.cpp
src/bin/lttng-sessiond/timer.cpp
src/bin/lttng-sessiond/trace-kernel.cpp
src/bin/lttng-sessiond/trace-ust.cpp
src/bin/lttng-sessiond/tsdl-trace-class-visitor.cpp
src/bin/lttng-sessiond/ust-app.cpp
src/bin/lttng-sessiond/ust-field-convert.cpp
src/bin/lttng-sessiond/ust-registry-channel.cpp
src/bin/lttng/commands/add_context.cpp
src/bin/lttng/commands/enable_events.cpp
src/common/actions/rotate-session.cpp
src/common/actions/snapshot-session.cpp
src/common/actions/start-session.cpp
src/common/actions/stop-session.cpp
src/common/argpar/argpar.h
src/common/conditions/buffer-usage.cpp
src/common/conditions/event-rule-matches.cpp
src/common/conditions/session-consumed-size.cpp
src/common/conditions/session-rotation.cpp
src/common/config/session-config.cpp
src/common/consumer/consumer-timer.hpp
src/common/consumer/consumer.cpp
src/common/context.cpp
src/common/defaults.hpp
src/common/event-rule/jul-logging.cpp
src/common/event-rule/kernel-kprobe.cpp
src/common/event-rule/kernel-syscall.cpp
src/common/event-rule/kernel-tracepoint.cpp
src/common/event-rule/kernel-uprobe.cpp
src/common/event-rule/log4j-logging.cpp
src/common/event-rule/python-logging.cpp
src/common/event-rule/user-tracepoint.cpp
src/common/event.cpp
src/common/fd-tracker/fd-tracker.cpp
src/common/hashtable/utils.cpp
src/common/ini-config/ini-config.cpp
src/common/kernel-consumer/kernel-consumer.cpp
src/common/kernel-probe.cpp
src/common/lttng-elf.cpp
src/common/lttng-kernel-old.hpp
src/common/lttng-kernel.hpp
src/common/macros.hpp
src/common/optional.hpp
src/common/runas.cpp
src/common/trace-chunk.cpp
src/common/tracker.cpp
src/common/urcu.hpp
src/common/userspace-probe.cpp
src/common/ust-consumer/ust-consumer.cpp
src/lib/lttng-ctl/lttng-ctl.cpp
src/lib/lttng-ctl/tracker.cpp
src/vendor/.clang-tidy [new file with mode: 0644]
tests/regression/tools/trigger/utils/notification-client.c
tests/unit/test_fd_tracker.cpp
tests/unit/test_unix_socket.cpp
This page took 0.031466 seconds and 4 git commands to generate.