Giter Site home page Giter Site logo

Comments (6)

johnthagen avatar johnthagen commented on June 20, 2024

@Dr-Dream Can you please provide an example that reproduces this failure?

Please provide:

  • Cppcheck version
  • Example C++ source file that triggers the condition
  • Exact run steps that trigger the behaviour.

Thanks.

from cppcheck-junit.

Dr-Dream avatar Dr-Dream commented on June 20, 2024

cppchek 1.73
I've tried with different options, so i've attached with last result. It's no an missingIncludes, but 'toomanyconfigs'.
Runnin command
cppcheck --xml-version=2 --enable=warning . 2>cppcheck-result.xml
cppcheck_junit cppcheck-result.xml cppcheck-junit.xml

Result is here
https://github.com/Dr-Dream/examples/blob/master/cppcheck-junit-tests/cppcheck-result.xml

I'm not sure i could provide you a sample code in short time, because it's not mine actually, but my employer.
I'll try to prepare something simmilar in short time.

PS:also tested on 1.1.1

from cppcheck-junit.

johnthagen avatar johnthagen commented on June 20, 2024

@Dr-Dream Thanks for the test file. Please try out version 1.1.2 to confirm your issue is resolved.

from cppcheck-junit.

mjcaisse avatar mjcaisse commented on June 20, 2024

This still seems to be a problem. For example, the following output for cppcheck is causing problems with HEAD on master:

<?xml version="1.0" encoding="UTF-8"?> <results version="2"> <cppcheck version="1.61"/> <errors> <error id="missingInclude" severity="information" msg="Cppcheck cannot find all the include files (use --check-config for details)" verbose="Cppcheck cannot find all the include files. Cppcheck can check the code without t he include files found. But the results will probably be more accurate if all the include files are found. Please check your project's include directories and add all of them as include directories for Cppcheck. To see what files Cppcheck cannot find use --check-config."> </error> </errors> </results>

from cppcheck-junit.

johnthagen avatar johnthagen commented on June 20, 2024

@mjcaisse Could you provide an example .cpp file that produces this output? I'd like to run the latest Cppcheck (1.7.4 as of writing) against it to make a good unit test for this to make sure this doesn't pop up again in the future.

from cppcheck-junit.

johnthagen avatar johnthagen commented on June 20, 2024

@mjcaisse Thanks for issue report and the PR! Please test if cppcheck-junit 1.2.0 has corrected your problem.

from cppcheck-junit.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.