Enable mismatched-tags clang warning
This commit is contained in:
parent
ebcc023b6f
commit
d0c9cf4fb0
|
@ -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
|
||||
|
|
|
@ -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>();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -134,7 +134,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
struct TransportData;
|
||||
class TransportData;
|
||||
|
||||
struct Peer : public ReferenceCounted<Peer> {
|
||||
TransportData* transport;
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
#include "flow/serialize.h"
|
||||
|
||||
class TCTeamInfo;
|
||||
struct TCMachineInfo;
|
||||
class TCMachineInfo;
|
||||
class TCMachineTeamInfo;
|
||||
|
||||
namespace {
|
||||
|
|
|
@ -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) {}
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -445,7 +445,8 @@ struct LineageProperties : LineagePropertiesBase {
|
|||
}
|
||||
};
|
||||
|
||||
struct ActorLineage : ThreadSafeReferenceCounted<ActorLineage> {
|
||||
class ActorLineage : public ThreadSafeReferenceCounted<ActorLineage> {
|
||||
public:
|
||||
friend class LineageReference;
|
||||
|
||||
struct Property {
|
||||
|
|
|
@ -407,7 +407,7 @@ public:
|
|||
};
|
||||
|
||||
// forward declare SendBuffer, declared in serialize.h
|
||||
struct SendBuffer;
|
||||
class SendBuffer;
|
||||
|
||||
class IConnection {
|
||||
public:
|
||||
|
|
|
@ -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()));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue