Author Topic: Code analysis tools  (Read 6197 times)

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Code analysis tools
« on: November 06, 2014, 12:50:51 PM »
I'm using Cppcheck for C++ to find out some stuff that compilers don't report. It's sometimes useful, for catching things like conditions that always evaluate true. Then I'm also using GCC in final compile with advanced warning options, because it's better than Visual C++ 2010.

I think there aren't that many tools (open source/free) for overall project managing/statistics. For example I would like to have a graphical browser for class hierarchy/statistics/whatever. I'm almost thinking to create some kind of program for that.

mushroom patch

  • Rogueliker
  • ***
  • Posts: 554
  • Karma: +0/-0
    • View Profile
Re: Code analysis tools
« Reply #1 on: November 06, 2014, 02:05:36 PM »
Hm, might be hard to complete your code analysis project without a code analysis program to analyze the code for your code analysis project. Before you code your code analysis project, you should code a code analysis code analysis package to analyze the code for your code analysis project as you code your code analysis project. That way, you can rest assured that the code for your code analysis project will be adequately analyzed by a code analysis code analyzer.

This raises the question, though, of code analysis of your code analysis code analysis system. For this, I suggest you do a google search for "code analysis code analysis code analysis" -- be sure to include the quotation marks, otherwise google will reduce your search to just "code analysis," which will yield the same disappointing results you've already seen. In the event that you aren't satisfied with any of the existing code analysis code analysis code analysis packages, perhaps we should begin discussion of a custom package to satisfy the needs of discerning code analysis connoisseurs such as yourself.

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: Code analysis tools
« Reply #2 on: November 06, 2014, 08:50:45 PM »
You know, there are tools to count LOC of the project, but those are in my opinion pretty useless. It would be much more useful to count LOC and other statistics from each class and then view the classes in order of size etc. In fact I'm starting to get interested to code such a program myself.

Xecutor

  • 7DRL Reviewer
  • Rogueliker
  • *
  • Posts: 263
  • Karma: +0/-0
    • View Profile
Re: Code analysis tools
« Reply #3 on: November 10, 2014, 04:59:36 AM »
clang++ have very cool static analysis built in.
Eclipse's codan also is very helpful.