Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: PVS-Studio is free now for individual developers... Toady, please, I beg you  (Read 2382 times)

Heretic

  • Bay Watcher
    • View Profile

http://www.viva64.com/en/b/0457/
That is it?
One of the strongest static analyzers for C++
Firstly, here is really no connection between me and this company. I'm just a programmer, who loved this studio and knows, how many unusual bugs and performance problems it can find. (Once it find incorrect(it was correct such as program, of course, it was some kind of meaningless in some situations) n-vector copying in my project, that cause really strange and rare problems  with math operations that was really big trouble. And hundreds bug more, summary.)
So - just anyone who want use it - welcome!
Quote
// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
I think - if PVS-Studio would be able to find some major bugs in DF(I sure it can) - it deserves these two lines, which no one will ever see.
P.S. Anyone who will use it for yourself or if you want that Toady will check DF with it, please write +1 here...
P.P.S - here you can find bugs it found in greatest projects, such as Linux core, Clang, LLVM, and hundred more...
http://www.viva64.com/en/inspections/
« Last Edit: December 01, 2016, 05:45:37 am by Heretic »
Logged

CRM114

  • Bay Watcher
  • Rutile walls
    • View Profile

Wow, good find! I'll definitely be using this for personal projects
Logged

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile

Omg you need to write:
Code: [Select]
You need to write two lines of comments in the beginning of each file. We offer several options. This is a kind of 'fee' for using PVS-Studio for free.
Comments for individual developers:

// This is an independent project of an individual developer. Dear PVS-Studio, please check it.

// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
Which would ammount to thousands of files edited.

Boltgun

  • Bay Watcher
  • [UTTERANCES]
    • View Profile

I'm sure it's a good tool but that 'license' that requires you to add an ad on top of your code is garbage.
Logged

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile

Eh. For majority of things I visit, I prefer non-malware ads to paywalls.

Anyway, normally, such things and ads are required to be shown in product details. This one seems to be more targeted/marketed for open-source projects on github, however.

Quite novel approach for getting other developers to see it, rather than the general populace as end users.

@Warmist: Can probably automate it.

Taffer

  • Bay Watcher
    • View Profile

Omg you need to write:
Code: [Select]
You need to write two lines of comments in the beginning of each file. We offer several options. This is a kind of 'fee' for using PVS-Studio for free.
Comments for individual developers:

// This is an independent project of an individual developer. Dear PVS-Studio, please check it.

// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
Which would ammount to thousands of files edited.

Using sed, tee, and a shell:
Code: [Select]
for i in *.cpp; do
sed '1 i\
// This is an independent project of an individual developer. Dear PVS-Studio, please check it.\n\
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com' $i | tee $i
done

Removing them again:
Code: [Select]
for i in *.cpp; do
sed '1,2d' $i | tee $i
done

Or you can use GNU sed's -i flag instead of tee (ie, sed -i '1,2d' $i).
« Last Edit: December 14, 2016, 09:56:17 pm by Taffer »
Logged