Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cppcheck: add version 2.9.0, support conan v2 #14277

Closed
wants to merge 2 commits into from

Conversation

toge
Copy link
Contributor

@toge toge commented Nov 18, 2022

Specify library name and version: cppcheck/*

  • add version 2.9.0
  • support conan v2
  • TODO: force USE_MATCHCOMPILER disabled
    (which requires python environment, python recipe has zlib version conflict now)

Try to close #14167.


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the conan-center hook activated.

@ghost
Copy link

ghost commented Nov 18, 2022

I detected other pull requests that are modifying cppcheck/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prsso don't hesitate to report issues/improvements there.

@ghost ghost mentioned this pull request Nov 18, 2022
4 tasks
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline

Failure in build 2 (37b09906ec474c4394eed37dfb531402c9743cd5):

  • cppcheck/2.7.4@:
    CI failed to create some packages (All logs)

    Logs for packageID 82e3978eb9cd8ed11a0700875a372a4b801bf05e:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=10
    os=Linux
    
    [...]
      292 |     return var;       \
          |            ^~~
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h: In member function ‘T& picojson::value::get() [with T = double]’:
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h:304:124: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
      304 |   GET(double, (type_ == int64_type && (const_cast<value*>(this)->type_ = number_type, const_cast<value*>(this)->u_.number_ = u_.int64_), u_.number_))
          |                                                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h:297:12: note: in definition of macro ‘GET’
      297 |     return var;       \
          |            ^~~
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h:304:124: warning: comparing floating-point with ‘==’ or ‘!=’ is unsafe [-Wfloat-equal]
      304 |   GET(double, (type_ == int64_type && (const_cast<value*>(this)->type_ = number_type, const_cast<value*>(this)->u_.number_ = u_.int64_), u_.number_))
          |                                                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h:297:12: note: in definition of macro ‘GET’
      297 |     return var;       \
          |            ^~~
    In file included from /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/settings.cpp:27:
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h: In member function ‘bool picojson::value::evaluate_as_boolean() const’:
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h:318:25: warning: comparing floating-point with ‘==’ or ‘!=’ is unsafe [-Wfloat-equal]
      318 |       return u_.number_ != 0;
          |              ~~~~~~~~~~~^~~~
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h: In member function ‘std::string picojson::value::to_str() const’:
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h:377:92: warning: comparing floating-point with ‘==’ or ‘!=’ is unsafe [-Wfloat-equal]
      377 |       SNPRINTF(buf, sizeof(buf), fabs(u_.number_) < (1ULL << 53) && modf(u_.number_, &tmp) == 0 ? "%.f" : "%.17g", u_.number_);
          |                                                                     ~~~~~~~~~~~~~~~~~~~~~~~^~~~
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h: In function ‘bool picojson::operator==(const picojson::value&, const picojson::value&)’:
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h:964:44: warning: comparing floating-point with ‘==’ or ‘!=’ is unsafe [-Wfloat-equal]
      964 |       return y.is<type>() && x.get<type>() == y.get<type>()
          |                              ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/externals/picojson/picojson.h:966:5: note: in expansion of macro ‘PICOJSON_CMP’
      966 |     PICOJSON_CMP(double);
          |     ^~~~~~~~~~~~
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/valueflow.cpp: In static member function ‘static const char* ValueFlow::Value::toString(ValueFlow::Value::LifetimeScope)’:
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/valueflow.cpp:7923:12: warning: enumeration value ‘ThisPointer’ not handled in switch [-Wswitch]
     7923 |     switch (lifetimeScope) {
          |            ^
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/valueflow.cpp:7923:12: warning: enumeration value ‘ThisValue’ not handled in switch [-Wswitch]
    In file included from /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/valueflow.cpp:82:
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/calculate.h: In instantiation of ‘bool isEqual(T, T) [with T = double]’:
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/calculate.h:45:22:   required from ‘bool isZero(T) [with T = double]’
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/calculate.h:65:19:   required from ‘R calculate(const string&, const T&, const T&, bool*) [with R = double; T = double; std::string = std::__cxx11::basic_string<char>]’
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/calculate.h:121:27:   required from ‘T calculate(const string&, const T&, const T&, bool*) [with T = double; std::string = std::__cxx11::basic_string<char>]’
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/valueflow.cpp:754:102:   required from here
    /home/conan/w/prod/BuildSingleReference/.conan/data/cppcheck/2.7.4/_/_/build/82e3978eb9cd8ed11a0700875a372a4b801bf05e/src/lib/calculate.h:29:14: warning: comparing floating-point with ‘==’ or ‘!=’ is unsafe [-Wfloat-equal]
       29 |     return x == y;
          |            ~~^~~~
    cppcheck/2.7.4: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    cppcheck/2.7.4: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    [HOOK - conan-center.py] post_package_info(): ERROR: [INCLUDE PATH DOES NOT EXIST (KB-H071)] Component cppcheck::cppcheck include dir 'include' is listed in the recipe, but not found in package folder. The include dir should probably be fixed or removed. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H071) 
    ERROR: 
    	ConanException: [HOOK - conan-center.py] post_package_info(): Some checks failed running the hook, check the output
    
  • cppcheck/2.7.5@:
    Didn't run or was cancelled before finishing

  • cppcheck/2.9.0@:
    Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@toge toge closed this Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[request] cppcheck/2.9
2 participants