Hello,
C ++ Developer My team and I have opted to use your Cppcheck tool to the detriment of commercial tools that are too long in analysis.
Except that from the outset we realize that with the command "cppcheck path / project" the tool only parses the cpp files, it does not pass in the .hpp and .h.
On a basic project that has 13 files, it shows us that 5, and the 5 are only .cpp
Can you guide us on the method to follow for the tool to pass in all files with the extension .cpp .hpp and .h
Thank you for this tool Thank you for this tool which we intend to make our reference. .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A good start for using Cppcheck the first time is the manual. If you have not already read it i really recommend it: http://cppcheck.sourceforge.net/manual.pdf
Cppcheck analyzes all C/C++ source files (with default suffixes, others must be specified) and the headers they include but not the headers directly (which is what you are asking for correct?). Analyzing headers directly would not always make sense since it is then unknown if it gets included by a C++ or a C source file for example. There could be many false positives if the wrong analyzer method is used. I am not sure what happens if you tell Cppcheck to explicitly scan a .h file, never needed that.
I hope i remember everything correct. If i misunderstood anything please just leave a comment.
Last edit: versat 2018-08-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
C ++ Developer My team and I have opted to use your Cppcheck tool to the detriment of commercial tools that are too long in analysis.
Except that from the outset we realize that with the command "cppcheck path / project" the tool only parses the cpp files, it does not pass in the .hpp and .h.
On a basic project that has 13 files, it shows us that 5, and the 5 are only .cpp
Can you guide us on the method to follow for the tool to pass in all files with the extension .cpp .hpp and .h
Thank you for this tool Thank you for this tool which we intend to make our reference. .
A good start for using Cppcheck the first time is the manual. If you have not already read it i really recommend it: http://cppcheck.sourceforge.net/manual.pdf
Cppcheck analyzes all C/C++ source files (with default suffixes, others must be specified) and the headers they include but not the headers directly (which is what you are asking for correct?). Analyzing headers directly would not always make sense since it is then unknown if it gets included by a C++ or a C source file for example. There could be many false positives if the wrong analyzer method is used. I am not sure what happens if you tell Cppcheck to explicitly scan a .h file, never needed that.
I hope i remember everything correct. If i misunderstood anything please just leave a comment.
Last edit: versat 2018-08-03