What is the best command-line tool to clean up code?

前端 未结 6 399
情话喂你
情话喂你 2020-12-12 11:58

When I\'m writing C - code I solely use an editor and gcc. I was wondering if anyone could suggest a good and simple tool that will find unused variables, function declarati

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 12:31

    Lint is the classic tool for checking style on C programs. There's more modern incarnation of it called Splint. This Wikipedia entry has a list of static code analysis tools, some free, some commercial.

提交回复
热议问题