Enable mismatched-tags clang warning

This commit is contained in:
sfc-gh-tclinkenbeard 2021-10-28 14:16:14 -07:00 committed by Trevor Clinkenbeard
parent ebcc023b6f
commit d0c9cf4fb0
11 changed files with 19 additions and 17 deletions

View File

@ -285,7 +285,6 @@ else()
-Wno-comment
-Wno-delete-non-virtual-dtor
-Wno-format
-Wno-mismatched-tags
-Wno-sign-compare
-Wno-tautological-pointer-compare
-Wno-undefined-var-template

View File

@ -96,7 +96,7 @@ struct ConfigError {
class ProfilerConfigT {
private: // private types
using Lock = std::unique_lock<std::mutex>;
friend class crossbow::create_static<ProfilerConfigT>;
friend struct crossbow::create_static<ProfilerConfigT>;
private: // members
std::shared_ptr<SampleIngestor> ingestor = std::make_shared<NoneIngestor>();

View File

@ -188,11 +188,11 @@ struct ConfigTransactionInterface {
public:
static constexpr FileIdentifier file_identifier = 982485;
struct RequestStream<ConfigTransactionGetGenerationRequest> getGeneration;
struct RequestStream<ConfigTransactionGetRequest> get;
struct RequestStream<ConfigTransactionGetConfigClassesRequest> getClasses;
struct RequestStream<ConfigTransactionGetKnobsRequest> getKnobs;
struct RequestStream<ConfigTransactionCommitRequest> commit;
class RequestStream<ConfigTransactionGetGenerationRequest> getGeneration;
class RequestStream<ConfigTransactionGetRequest> get;
class RequestStream<ConfigTransactionGetConfigClassesRequest> getClasses;
class RequestStream<ConfigTransactionGetKnobsRequest> getKnobs;
class RequestStream<ConfigTransactionCommitRequest> commit;
ConfigTransactionInterface();
void setupWellKnownEndpoints();

View File

@ -134,7 +134,7 @@ public:
}
};
struct TransportData;
class TransportData;
struct Peer : public ReferenceCounted<Peer> {
TransportData* transport;

View File

@ -47,7 +47,7 @@
#include "flow/serialize.h"
class TCTeamInfo;
struct TCMachineInfo;
class TCMachineInfo;
class TCMachineTeamInfo;
namespace {

View File

@ -349,7 +349,7 @@ public:
}
};
struct Cursor;
class Cursor;
// A Mirror is an accessor for a DeltaTree which allows insertion and reading. Both operations are done
// using cursors which point to and share nodes in an tree that is built on-demand and mirrors the compressed
@ -515,7 +515,8 @@ public:
// Cursor provides a way to seek into a DeltaTree and iterate over its contents
// All Cursors from a Mirror share the same decoded node 'cache' (tree of DecodedNodes)
struct Cursor {
class Cursor {
public:
Cursor() : mirror(nullptr), node(nullptr) {}
Cursor(Mirror* r) : mirror(r), node(mirror->root) {}

View File

@ -588,8 +588,8 @@ void removeTraceRole(std::string const& role);
void retrieveTraceLogIssues(std::set<std::string>& out);
void setTraceLogGroup(const std::string& role);
template <class T>
struct Future;
struct Void;
class Future;
class Void;
Future<Void> pingTraceLogWriterThread();
enum trace_clock_t { TRACE_CLOCK_NOW, TRACE_CLOCK_REALTIME };

View File

@ -445,7 +445,8 @@ struct LineageProperties : LineagePropertiesBase {
}
};
struct ActorLineage : ThreadSafeReferenceCounted<ActorLineage> {
class ActorLineage : public ThreadSafeReferenceCounted<ActorLineage> {
public:
friend class LineageReference;
struct Property {

View File

@ -407,7 +407,7 @@ public:
};
// forward declare SendBuffer, declared in serialize.h
struct SendBuffer;
class SendBuffer;
class IConnection {
public:

View File

@ -851,7 +851,8 @@ struct ISerializeSource {
};
template <class T, class V>
struct MakeSerializeSource : ISerializeSource {
class MakeSerializeSource : public ISerializeSource {
public:
using value_type = V;
void serializePacketWriter(PacketWriter& w) const override {
ObjectWriter writer([&](size_t size) { return w.writeBytes(size); }, AssumeVersion(w.protocolVersion()));

View File

@ -272,4 +272,4 @@ typename singleton<T, C, L, M>::pointer singleton<T, C, L, M>::instance_ = nullp
template <typename T, typename C, typename L, typename M>
M singleton<T, C, L, M>::mutex_;
} // namespace crossbow
} // namespace crossbow