Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GUI: Add libraries setting to project
- Loading branch information
Showing
7 changed files
with
170 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9698387
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for adding this much needed feature to the GUI.
Can you add a search path for the config files. I can't figure out where to copy the config files to silence the new warnings. The directory where the cppcheck executable is doesn't work and the directory where the project files is doesn't work.
Also could we support user defined config files? It's easy to edit the project file but it would be nice to do it through the GUI.
Thanks again for this new feature.
9698387
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comments.
It's very weird that it does not work to put the config files in the same folder as the cppcheck-gui executable.
I'll look at it
9698387
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I run cppcheck on ubuntu from the gnome desktop menu so I guess the default directory is not necessarily the same as the directory where the executable is. I copied the config files to my home directory and it works now but being able to tell cppcheck where to look for them would be better.
9698387
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not very sure.. normally the installer should install the cfg files and the user should not have to worry where it puts them. The CLI has an option to specify an alternate path at compile time but the GUI doesn't have such an option.
9698387
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the dialog is more dynamic so you should be able to select any library file you have. It still searches the application path. And it should also search the folder where the project file is located.
9698387
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.. I discovered that my code didn't work well. Maybe it works better now?
9698387
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put the config files in the project file directory and it found everything but std.cfg.
9698387
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also finds all but std.cfg if I move them to the executable directory.