Upgrade clang to 16.0.3
We really want clang 17 for the new CUDA version, but that isn't out
yet. This gets us a lot closer.
Change-Id: Iff6bb187260777690ae68a7eaef1e508c7194e68
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/aos_dump.cc b/aos/aos_dump.cc
index 1dbcd44..18d2ce1 100644
--- a/aos/aos_dump.cc
+++ b/aos/aos_dump.cc
@@ -51,8 +51,6 @@
return 0;
}
- uint64_t message_count = 0;
-
aos::monotonic_clock::time_point next_send_time =
aos::monotonic_clock::min_time;
@@ -74,7 +72,6 @@
cli_info.event_loop->MakeRawFetcher(channel);
if (fetcher->Fetch()) {
printer.PrintMessage(channel, fetcher->context());
- ++message_count;
}
}
diff --git a/aos/events/event_loop.h b/aos/events/event_loop.h
index 1ed4337..827dd46 100644
--- a/aos/events/event_loop.h
+++ b/aos/events/event_loop.h
@@ -113,15 +113,15 @@
public:
using SharedSpan = std::shared_ptr<const absl::Span<const uint8_t>>;
- enum class [[nodiscard]] Error{
- // Represents success and no error
- kOk,
+ enum class [[nodiscard]] Error {
+ // Represents success and no error
+ kOk,
- // Error for messages on channels being sent faster than their
- // frequency and channel storage duration allow
- kMessagesSentTooFast,
- // Access to Redzone was attempted in Sender Queue
- kInvalidRedzone,
+ // Error for messages on channels being sent faster than their
+ // frequency and channel storage duration allow
+ kMessagesSentTooFast,
+ // Access to Redzone was attempted in Sender Queue
+ kInvalidRedzone,
};
RawSender(EventLoop *event_loop, const Channel *channel);
diff --git a/aos/events/logging/multinode_logger_test_lib.cc b/aos/events/logging/multinode_logger_test_lib.cc
index 64dd1cd..9b3e00c 100644
--- a/aos/events/logging/multinode_logger_test_lib.cc
+++ b/aos/events/logging/multinode_logger_test_lib.cc
@@ -544,14 +544,12 @@
}
std::vector<std::tuple<std::string, std::string, int>> result;
- int channel = 0;
for (size_t i = 0; i < counts.size(); ++i) {
if (counts[i] != 0) {
const Channel *channel = config->channels()->Get(i);
result.push_back(std::make_tuple(channel->name()->str(),
channel->type()->str(), counts[i]));
}
- ++channel;
}
return result;
diff --git a/aos/logging/logging.h b/aos/logging/logging.h
index c71e5c4..8d83037 100644
--- a/aos/logging/logging.h
+++ b/aos/logging/logging.h
@@ -51,7 +51,7 @@
// It's currently using __PRETTY_FUNCTION__ because both GCC and Clang support
// that and it gives nicer results in C++ than the standard __func__ (which
// would also work).
-//#define LOG_CURRENT_FUNCTION __PRETTY_FUNCTION__
+// #define LOG_CURRENT_FUNCTION __PRETTY_FUNCTION__
#define LOG_CURRENT_FUNCTION __func__
#define LOG_SOURCENAME __FILE__
diff --git a/aos/network/message_bridge_client_lib.cc b/aos/network/message_bridge_client_lib.cc
index 19f3420..34f578e 100644
--- a/aos/network/message_bridge_client_lib.cc
+++ b/aos/network/message_bridge_client_lib.cc
@@ -62,7 +62,6 @@
const Node *my_node,
const Node *other_node) {
std::vector<bool> stream_reply_with_timestamp;
- int channel_index = 0;
for (const Channel *channel : *config->channels()) {
if (configuration::ChannelIsSendableOnNode(channel, other_node)) {
const Connection *connection =
@@ -78,7 +77,6 @@
configuration::ChannelMessageIsLoggedOnNode(channel, my_node));
}
}
- ++channel_index;
}
return stream_reply_with_timestamp;
diff --git a/aos/network/multinode_timestamp_filter.cc b/aos/network/multinode_timestamp_filter.cc
index 55b6b02..b4ebef4 100644
--- a/aos/network/multinode_timestamp_filter.cc
+++ b/aos/network/multinode_timestamp_filter.cc
@@ -1820,7 +1820,6 @@
}
if (filter_fps_.size() != 0 && !destructor) {
- size_t node_a_index = 0;
for (const auto &filters : filters_per_node_) {
for (const auto &filter : filters) {
while (true) {
@@ -1832,7 +1831,6 @@
WriteFilter(filter.filter, *sample);
}
}
- ++node_a_index;
}
}
diff --git a/aos/network/rawrtc.h b/aos/network/rawrtc.h
index f43cc5e..7908124 100644
--- a/aos/network/rawrtc.h
+++ b/aos/network/rawrtc.h
@@ -170,9 +170,7 @@
void Open();
// Returns the connection if Open has been called.
- struct rawrtc_peer_connection *connection() {
- return connection_;
- }
+ struct rawrtc_peer_connection *connection() { return connection_; }
private:
// Trampolines from C -> C++.
diff --git a/aos/network/sctp_client.h b/aos/network/sctp_client.h
index 06f6b15..9b9265e 100644
--- a/aos/network/sctp_client.h
+++ b/aos/network/sctp_client.h
@@ -44,9 +44,7 @@
void SetPriorityScheduler(sctp_assoc_t assoc_id);
// Remote to send to.
- struct sockaddr_storage sockaddr_remote() const {
- return sockaddr_remote_;
- }
+ struct sockaddr_storage sockaddr_remote() const { return sockaddr_remote_; }
void LogSctpStatus(sctp_assoc_t assoc_id);