1

Possible Duplicate:
A free tool to check C/C++ source code against a set of coding standards?

Currently for my project, I'm using AStyle for indentation, and other issues, But I'm looking for a tool, preferably a command line tool for Linux which check variable naming conventions (such as Hungarian notation). does anyone knows if such a tool exists ?

Community
  • 1
  • 1
stdcall
  • 27,613
  • 18
  • 81
  • 125
  • Is opening a file or two and looking at the variable names too much trouble? – jordanm Nov 28 '12 at 06:13
  • 3
    @Jordanm, if you have, for example, a file or two with 60k lines of code, it may be too much trouble, yea. – SingerOfTheFall Nov 28 '12 at 06:16
  • @SingerOfTheFall You wouldn't have to read all 60k lines of code to see what variable naming patterns are being used. I guess I don't see a use case other than contributing development and wanting to keep consistent naming conventions (in which case, you are already looking at the code anyways). – jordanm Nov 28 '12 at 06:17
  • 5
    @jordanm, Idk about the OP, but general speaking I clearly see a use-case "10 people contributed to the project, I want to know if they named the variables in a right way without looking though all the codez"... – SingerOfTheFall Nov 28 '12 at 06:21
  • 2
    @jordanm So you're saying that in a large project with dozens of programmers working on it, you should hire somebody that looks through every committed file to see whether all naming conventions were followed everywhere because that's more sensible than giving the job to someone who is much better at it anyhow (a machine?)? – Voo Nov 28 '12 at 06:40
  • I have not verified if any of these specifically support Hungarian notation checking, but there are plenty of links at http://stackoverflow.com/questions/93260/a-free-tool-to-check-c-c-source-code-against-a-set-of-coding-standards (possible duplicate?) – Andreas Fester Nov 28 '12 at 07:08
  • 3
    Do you want it to just warn about Hungarian notation, or should it be removed automatically? :-) – Bo Persson Nov 28 '12 at 07:58
  • Yes, such a tool exists. It is called a 'human reviewer'. And it is surprising how many more problems it can bring to light. – Bart van Ingen Schenau Nov 28 '12 at 10:46

0 Answers0