Giter Club home page Giter Club logo

Comments (5)

AlDanial avatar AlDanial commented on May 27, 2024

Can you post a pair of files that exhibit this problem?

from cloc.

capSAR273 avatar capSAR273 commented on May 27, 2024

I cannot due to the nature of the work, but I can say that they were fairly standard .cpp files with only about 100 lines of new/modified code between versions, but the latest cloc was counting the entire file as new code. This happened to multiple cpp file pairs. I wish I could provide more detail, I realize it is tough to debug without examples. Could there be any change from 1.77 to 2.00 with how C++ language is handled?

from cloc.

AlDanial avatar AlDanial commented on May 27, 2024

Sure, I get that you have proprietary files you can't share. I don't need those, per se, but any pair of files that exhibit the problem. Can you download some random C++ file from a tutorial site for example, modify it, run the pair through cloc diff and show that the same count is messed up?

I took a shot with the prime number example at https://www.programiz.com/cpp-programming/examples/prime-interval-function but cloc's result always makes sense.

from cloc.

capSAR273 avatar capSAR273 commented on May 27, 2024

Well now I feel silly, I re-ran cloc 1.77 and 2.00 against the original set of files I thought it was over-counting and it is reporting the exact same number of changed/added lines. I'll keep testing between the two versions as I use the tool for future sets of files, but until then I'd say this was a false alarm. Thank you again for this wonderful tool :)

from cloc.

AlDanial avatar AlDanial commented on May 27, 2024

That's a relief, thanks for the update.

from cloc.

Related Issues (20)

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.