Fix MSVC build (#3671)

This commit is contained in:
chrchr-github 2022-01-04 15:38:37 +01:00 committed by GitHub
parent 8502584dc1
commit 184ef4e739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -191,6 +191,9 @@
<ClCompile Include="color.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="infer.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="checkbufferoverrun.h">
@ -373,6 +376,9 @@
<ClInclude Include="color.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="infer.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="version.rc" />

View File

@ -47,7 +47,7 @@ std::vector<ValueFlow::Value> infer(const ValuePtr<InferModel>& model,
std::list<ValueFlow::Value> lhsValues,
MathLib::bigint rhs);
std::vector<MathLib::bigint> getMinValue(const ValuePtr<InferModel>& model, const std::list<ValueFlow::Value>& values);
CPPCHECKLIB std::vector<MathLib::bigint> getMinValue(const ValuePtr<InferModel>& model, const std::list<ValueFlow::Value>& values);
std::vector<MathLib::bigint> getMaxValue(const ValuePtr<InferModel>& model, const std::list<ValueFlow::Value>& values);
std::string toString(const Interval& i);

View File

@ -493,7 +493,7 @@ const Token *parseCompareInt(const Token *tok, ValueFlow::Value &true_value, Val
ValueFlow::Value inferCondition(std::string op, MathLib::bigint val, const Token* varTok);
ValueFlow::Value inferCondition(const std::string& op, const Token* varTok, MathLib::bigint val);
ValuePtr<InferModel> makeIntegralInferModel();
CPPCHECKLIB ValuePtr<InferModel> makeIntegralInferModel();
std::vector<LifetimeToken> getLifetimeTokens(const Token* tok,
bool escape = false,