Open rjray opened 1 year ago
There are syntax error in your source code. If the source code like following picture, the tool work fine:
That is incorrect. The code as written is correct, this is valid Rust syntax. The change you suggest would actually break the code.
Is there any progress on this ?
Bumping for visibility. I used this tool for my MSCS thesis research last fall, but had to use a separate tool for CCN in Rust. I am continuing this research, and would really like to be able to use the same tool (this tool) for all languages in my study (C, C++, Rust, possibly Go and Java as well). Switching tools for one or two of the languages makes it harder to compare the CCN of the different languages.
This is the file, at the current version: https://github.com/rjray/mscs-thesis-project/blob/811b319cd81d7901a248a5cebe840daeb63a2a75/src/Rust/aho_corasick/src/main.rs This should remain good even if I make further changes to the file. When I run the command
lizard Rust/aho_corasick/src/main.rs
, the resulting analysis counts lines 50-147 as a single function it callsiter
. This starts inside animpl
block for one struct, and completely subsumes a second struct/impl definition as well as two other functions.