fixed some `-Wdeprecated-copy-dtor` Clang compiler warnings (#4836)
This commit is contained in:
parent
072e822020
commit
e99d7c6531
|
@ -182,6 +182,9 @@ struct Analyzer {
|
||||||
/// Return analyzer for expression at token
|
/// Return analyzer for expression at token
|
||||||
virtual ValuePtr<Analyzer> reanalyze(Token* tok, const std::string& msg = emptyString) const = 0;
|
virtual ValuePtr<Analyzer> reanalyze(Token* tok, const std::string& msg = emptyString) const = 0;
|
||||||
virtual ~Analyzer() {}
|
virtual ~Analyzer() {}
|
||||||
|
Analyzer(const Analyzer&) = default;
|
||||||
|
protected:
|
||||||
|
Analyzer() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -83,6 +83,7 @@ namespace CTU {
|
||||||
{}
|
{}
|
||||||
CallBase(const Tokenizer *tokenizer, const Token *callToken);
|
CallBase(const Tokenizer *tokenizer, const Token *callToken);
|
||||||
virtual ~CallBase() {}
|
virtual ~CallBase() {}
|
||||||
|
CallBase(const CallBase&) = default;
|
||||||
std::string callId;
|
std::string callId;
|
||||||
int callArgNr{};
|
int callArgNr{};
|
||||||
std::string callFunctionName;
|
std::string callFunctionName;
|
||||||
|
|
|
@ -87,6 +87,8 @@ public:
|
||||||
|
|
||||||
ImportProject();
|
ImportProject();
|
||||||
virtual ~ImportProject() = default;
|
virtual ~ImportProject() = default;
|
||||||
|
ImportProject(const ImportProject&) = default;
|
||||||
|
ImportProject& operator=(const ImportProject&) = default;
|
||||||
|
|
||||||
void selectOneVsConfig(cppcheck::Platform::PlatformType platform);
|
void selectOneVsConfig(cppcheck::Platform::PlatformType platform);
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,9 @@ struct InferModel {
|
||||||
virtual bool match(const ValueFlow::Value& value) const = 0;
|
virtual bool match(const ValueFlow::Value& value) const = 0;
|
||||||
virtual ValueFlow::Value yield(MathLib::bigint value) const = 0;
|
virtual ValueFlow::Value yield(MathLib::bigint value) const = 0;
|
||||||
virtual ~InferModel() {}
|
virtual ~InferModel() {}
|
||||||
|
InferModel(const InferModel&) = default;
|
||||||
|
protected:
|
||||||
|
InferModel() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<ValueFlow::Value> infer(const ValuePtr<InferModel>& model,
|
std::vector<ValueFlow::Value> infer(const ValuePtr<InferModel>& model,
|
||||||
|
|
|
@ -6497,6 +6497,9 @@ struct ConditionHandler {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
virtual ~ConditionHandler() {}
|
virtual ~ConditionHandler() {}
|
||||||
|
ConditionHandler(const ConditionHandler&) = default;
|
||||||
|
protected:
|
||||||
|
ConditionHandler() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void valueFlowCondition(const ValuePtr<ConditionHandler>& handler,
|
static void valueFlowCondition(const ValuePtr<ConditionHandler>& handler,
|
||||||
|
|
Loading…
Reference in New Issue