Oliver Stöneberg
Oliver Stöneberg
``` lib/valueflow.cpp:2516:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] return Action::None; ^ ``` https://trac.cppcheck.net/ticket/12538.
``` lib/astutils.cpp:343:90: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intvalue [valueFlowBailoutIncompleteVar] if (!tok->varId() && tok->hasKnownIntValue() && std::to_string(tok->values().front().intvalue) == rhs) ^ ``` https://trac.cppcheck.net/ticket/12539.
``` externals/simplecpp/simplecpp.cpp:1348:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNTAX_ERROR [valueFlowBailoutIncompleteVar] err.type = Output::SYNTAX_ERROR; ^ ``` https://trac.cppcheck.net/ticket/12567
> I am a bit curious that there is just a single complaint about a very common symbol as `std::string::npos`. This was an actual bug and has been addressed in...
I added a few more tickets: https://trac.cppcheck.net/ticket/10949 - `npos` https://trac.cppcheck.net/ticket/12577 - `endl` https://trac.cppcheck.net/ticket/12578 - `cout`/`cerr` https://trac.cppcheck.net/ticket/12580 - `errno` https://trac.cppcheck.net/ticket/12581 - `__func__`
> Seems like the remaining bailouts are cfg-related, except for that uninstantiated(?) template parameter. The most common ones actually require special handling and cannot simply be solved via the configuration....
``` lib/checkautovariables.cpp:268:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inconclusive [valueFlowBailoutIncompleteVar] const bool printInconclusive = mSettings->certainty.isEnabled(Certainty::inconclusive); ^ ``` https://trac.cppcheck.net/ticket/12585
Thank you for your contribution. We are aware of this. There's still lots of false positive `--check-library` warnings in our own code base - see #3082 about enabling those in...
@danmar Please have a look. I just did it for a small check so the idea is more visible. The final change will unfortunately be quite monolithic as this cannot...
I also ran into this problem. On Ubuntu 17.04 I had to add the following paths to get rid of all unknown includes ``` /usr/include/linux /usr/include/c++/6.3.0 /usr/include/x86_64-linux-gnu/c++/6.3.0 ``` The first...