Add a basic .clang-tidy file and fix typedef warnings
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 13 Jan 2023 17:24:13 +0000 (12:24 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 16 Jan 2023 19:49:24 +0000 (14:49 -0500)
commite665dfbce25215d5ec77ff03a279c7163b337db1
treec98d1fc4595bddba50bfe9811782e8b7659532e6
parent28ab034a2c3582d07d3423d2d746731f87d3969f
Add a basic .clang-tidy file and fix typedef warnings

This initial .clang-tidy file only enforces the use of 'using' instead
of 'typedef'.

Note that a second .clang-tidy is added to the filter sub-folder to
disable checks against generated code.

The entire tree can be checked by running `run-clang-tidy` after
generating a compilation command database. I personally use `bear`
to generate `compile_commands.json`.

$ ./configure
$ bear -- make -j$(nproc)
$ run-clang-tidy -fix

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I074b6f2724e1af9a2df311e07a2fcdacb689bcf5
41 files changed:
.clang-tidy [new file with mode: 0644]
include/lttng/action/action-internal.hpp
include/lttng/condition/condition-internal.hpp
include/lttng/condition/evaluation-internal.hpp
include/lttng/event-rule/event-rule-internal.hpp
include/lttng/kernel-probe-internal.hpp
include/lttng/ref-internal.hpp
include/lttng/userspace-probe-internal.hpp
src/bin/lttng-sessiond/action-executor.cpp
src/bin/lttng-sessiond/agent.cpp
src/bin/lttng-sessiond/cmd.hpp
src/bin/lttng-sessiond/notification-thread-internal.hpp
src/bin/lttng-sessiond/notification-thread.hpp
src/bin/lttng-sessiond/session.hpp
src/bin/lttng-sessiond/thread.hpp
src/bin/lttng/commands/list_triggers.cpp
src/common/actions/rate-policy.cpp
src/common/bytecode/bytecode.hpp
src/common/compat/directory-handle.hpp
src/common/compat/socket.hpp
src/common/consumer/consumer-timer.cpp
src/common/consumer/consumer.hpp
src/common/consumer/metadata-bucket.hpp
src/common/dynamic-array.hpp
src/common/fd-tracker/fd-tracker.hpp
src/common/filter/.clang-tidy [new file with mode: 0644]
src/common/filter/filter-ast.hpp
src/common/fs-handle-internal.hpp
src/common/hashtable/hashtable.hpp
src/common/ini-config/ini-config.hpp
src/common/ini-config/ini.hpp
src/common/mi-lttng.hpp
src/common/runas.cpp
src/common/runas.hpp
src/common/trace-chunk.cpp
src/common/userspace-probe.cpp
tests/regression/kernel/select_poll_epoll.cpp
tests/regression/tools/notification/notification.cpp
tests/regression/tools/trigger/name/trigger_name.cpp
tests/unit/test_directory_handle.cpp
tests/unit/test_event_rule.cpp
This page took 0.028781 seconds and 4 git commands to generate.