I am on Windows and I am Using the GUI Tool. I can create an project and add Include Paths for additional header files. I can use relative and absolute paths. However I would like to use Windows Environment Variables to add paths:
E.g.: I have a Windows Environenment Variable MY_LIB_PATH with the value of "C:\myLib\", then I would like to use a Include Path in Cppcheck like "%MY_LIB_PATH%\include" to point to the header files of this library. THe reason is, that I want to check-in the cppcheck configuration file into our SCM, so that my coworkes can use the config as well. However, everyone hat that Library installed at another Path, so using environment Variables would be very handy. Is there any solution to that problem?
EDIT: Seems I accidently posted this into the Developement topic instead ov the general Topic. I can not change this or delete this Post, so i let it remain here.
Last edit: Sev Miller 2022-07-01
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am on Windows and I am Using the GUI Tool. I can create an project and add Include Paths for additional header files. I can use relative and absolute paths. However I would like to use Windows Environment Variables to add paths:
E.g.: I have a Windows Environenment Variable MY_LIB_PATH with the value of "C:\myLib\", then I would like to use a Include Path in Cppcheck like "%MY_LIB_PATH%\include" to point to the header files of this library. THe reason is, that I want to check-in the cppcheck configuration file into our SCM, so that my coworkes can use the config as well. However, everyone hat that Library installed at another Path, so using environment Variables would be very handy. Is there any solution to that problem?
EDIT: Seems I accidently posted this into the Developement topic instead ov the general Topic. I can not change this or delete this Post, so i let it remain here.
Last edit: Sev Miller 2022-07-01
I think this sounds very reasonable.
I have created: https://trac.cppcheck.net/ticket/11170
I cannot say when this will be fixed. Feel free to look into it and create a pull request if you have some time.