You don't have to modify the header (h) files.
files whose extensions are c, cc, cpp, cs, java, and so on. Add the two comment lines described above to the beginning of each compiling file – i.e. Now you also need to enter this special key, because without it, some scenarios for using the analyzer turned out to be inconvenient.
Previously, a comment was enough to activate the free license for the Linux version. Pvs-studio-analyzer credentials PVS-Studio Free FREE-FREE-FREE-FREE If you are using PVS-Studio for Linux/macOS, use the following command: If you are using PVS-Studio as a Visual Studio plugin or you are using the 'C and C++ Compiler Monitoring UI' (Standalone.exe) utility, enter the following license key: To start using PVS-Studio for free, follow these two steps: PVS-Studio Static Code Analyzer for C, C++, C#, and Java: When working on an academic project that includes a number of source files, the most convenient way to use the analyzer is to add a special comment to those files: Let's find out when and how to use each option. You simply download the distribution and follow the instructions below. None of these options requires contacting us to get a trial key. Adding special comments to source code.
There are three ways to use PVS-Studio for free for educational purposes: