I have a single directory of source files to check, but one of those I want to exclude. There doesn't appear to be any way to do this in the Windows GUI client.
If I use the Add button to add an exclusion, it only allows me to exclude directories, not files.
If I add the current directory I can manually edit the line to refer to a file, but the file still gets analysed. I tried excluding file.c and .\file.c, neither worked.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks! This should be fixed. There is a "workaround":
Click on "Add.." and select a folder in the dialog box.
You now have a path in the listbox.
Double click on the path and write the file path manually.
Thanks. I found the workaround, as I said at the end of the post, but it doesn't stop the file from being analysed. So it's kinda 2 separate issues: adding the file in the GUI and then actually excluding the file from analysis.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a single directory of source files to check, but one of those I want to exclude. There doesn't appear to be any way to do this in the Windows GUI client.
If I use the Add button to add an exclusion, it only allows me to exclude directories, not files.
If I add the current directory I can manually edit the line to refer to a file, but the file still gets analysed. I tried excluding file.c and .\file.c, neither worked.
Thanks! This should be fixed. There is a "workaround":
Click on "Add.." and select a folder in the dialog box.
You now have a path in the listbox.
Double click on the path and write the file path manually.
I created the ticket: https://trac.cppcheck.net/ticket/9798
Thanks. I found the workaround, as I said at the end of the post, but it doesn't stop the file from being analysed. So it's kinda 2 separate issues: adding the file in the GUI and then actually excluding the file from analysis.