Closed norkos closed 9 years ago
Yes. This is because lizard previously would choose only one branch to parse if there is a #if. I've removed that feature, I believe should be because it created some trouble and keep things simple.
In the above code, if the left brace { can be left out of the #if block, the result will look better.
Do you think I should introduce the feature back?
Hi Terry, thank you a lot for your quick response. Unfortuntaly I am using Lizard for the code that I cannot change therefore I cannot move "{".
I would really appriciate if you could introduce the feature back. Otherwise I would need to stay with elder version. I have seen lots of great work in Lizard and it would a pity for me.
If you want I can make some tests of the branch.
Thank you in advance.
Let me look at it.
It will take a bit more time.
OK. Now you can have that functionality back by using an extension:
lizard -Ecpre
Hi,
I am using my forked version of you repo (https://github.com/norkos/lizard.git) which is quite old one. While changing to new version I have met problem in files like:
include
class Timer{
ifndef TEST
else
endif
};
ifndef TEST
Timer::Timer(int j) {
else
Timer::Timer() {
endif
ifndef TEST
endif
}
int main(){ return 0; }
No function is find in this file.
NLOC Avg.NLOC AvgCCN Avg.ttoken function_cnt file
Previously I had:
nloc CCN token param function@line@file
Could you please help me ? Thank you in advance.
btw. I am aware that this code is tricky ...