Comments (5)
Can you post a pair of files that exhibit this problem?
from cloc.
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.
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.
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.
That's a relief, thanks for the update.
from cloc.
Related Issues (20)
- exe version of cloc not support file name with chinese character HOT 4
- Language support for Luau .luau HOT 1
- List winget in README package maganers HOT 1
- Cloc has problems with */* in Go HOT 3
- Cloc doesn't count correctly Visual Basic code HOT 1
- Add Modelica language HOT 3
- support Processing Language
- Documentation for --force-lang is slightly wrong HOT 3
- --fullpath does not work with --vcs=git HOT 4
- Add option to exclude shebang from the count HOT 5
- Add support for .gjs/.gts
- dotnet tool HOT 1
- Reading JSON file kills cloc when counting repo HOT 3
- --csv-delimiter doesn't work HOT 4
- --not-match-d= includes file at root of pattern HOT 7
- Attempt to create a file in the present working directory. HOT 2
- Support for the Yang language
- Differentiation of client-side vs. server-side code for langs where both can be defined? HOT 3
- Using --vcs=git may encounter "detected dubious ownership" error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloc.