weggli-rs / weggli

weggli is a fast and robust semantic search tool for C and C++ codebases. It is designed to help security researchers identify interesting functionality in large codebases.
Apache License 2.0
2.32k stars 127 forks source link

Feature Request: optional line numbers in the output #16

Closed bluec0re closed 1 year ago

bluec0re commented 2 years ago

Current

main.c:123
void main(int argc, char **argv) {
   char buf[256]
...
   strcpy(buf, argv[0]);
...
}

Wanted

main.c:123
123: void main(int argc, char **argv) {
124:   char buf[256]
...
140:   strcpy(buf, argv[0]);
...
160: }
felixwilhelm commented 1 year ago

Fixed with 159cf82666558b0db20e7d6a9661d681ec7fb0c3