I'm using the example code from the manual (the section that covers how to make custom output usign --template and --template-location. Never mind the ~~::~~ characters or the key/value pair pattern I put in the output... both have nothing to do with this.
The thing that surprised me was when I ran cppcheck without --cppcheck-build-dir.... followed by running it twice using --cppcheck-build-dir (the second time with the cache in place).
Below I will first show without --cppcheck-build-dir. Then the two runs with --cppcheck-build-dir.
Does anybody else think that comparing, in turn, each of the two "with --cppcheck-build-dir" outputs to the "wihtout with --cppcheck-build-dir" output reveals some chaotic behavior?
For example, why would the third to last line in Output A (the one without cppcheck-build-dir) have no code associated with it? And then, in Output C (the second run with cppcheck-build-dir), that line doesn't appear at all.
Another example is: Why would Output B (the first run with cppcehck-build-dir) have so many extra lines that output A (the one without cppcheck-build-dir) doesn't have?
I'm using the example code from the manual (the section that covers how to make custom output usign --template and --template-location. Never mind the ~~::~~ characters or the key/value pair pattern I put in the output... both have nothing to do with this.
The thing that surprised me was when I ran cppcheck without --cppcheck-build-dir.... followed by running it twice using --cppcheck-build-dir (the second time with the cache in place).
Below I will first show without --cppcheck-build-dir. Then the two runs with --cppcheck-build-dir.
Does anybody else think that comparing, in turn, each of the two "with --cppcheck-build-dir" outputs to the "wihtout with --cppcheck-build-dir" output reveals some chaotic behavior?
For example, why would the third to last line in Output A (the one without cppcheck-build-dir) have no code associated with it? And then, in Output C (the second run with cppcheck-build-dir), that line doesn't appear at all.
Another example is: Why would Output B (the first run with cppcehck-build-dir) have so many extra lines that output A (the one without cppcheck-build-dir) doesn't have?
Here are the details:
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/11883