Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cppcheck: Set Geany include path for it to find header files #947

Merged
merged 3 commits into from
Feb 7, 2020

Conversation

b4n
Copy link
Member

@b4n b4n commented Feb 2, 2020

This fixes build with recent versions of cppcheck with some plugins using PLUGIN_VERSION_CHECK() macro, like the latex plugin.


@eht16 already tested this with the nightly build environment, but I'm PRing this to make sure the CI tests here also pass. And extra review is always welcome ;)

This fixes build with recent versions of cppcheck with some plugins
using PLUGIN_VERSION_CHECK() macro, like the latex plugin.
@b4n b4n self-assigned this Feb 2, 2020
Implementation shamelessly copied over from pkg-config's pkg.m4,
GPLv2+.
Implementation shamelessly copied over from Autoconf's m4sh.m4, GPLv3+.
@b4n
Copy link
Member Author

b4n commented Feb 2, 2020

I'm PRing this to make sure the CI tests here also pass.

…which was a good thing as apparently our CI has a too old pkg-config that doesn't provide PKG_CHECK_VAR(). I thus did similar to what cyptsetup did on its own side, that is providing copies when missing.

@eht16
Copy link
Member

eht16 commented Feb 6, 2020

LGBI

m4_ifndef([AS_VAR_COPY], [
m4_define([AS_VAR_COPY],
[AS_LITERAL_WORD_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])])
])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not totally sure about this part: it might not be needed, and if it is I'm not sure AS_LITERAL_WORD_IF would be available. This code is what Autoconf has nowadays, but the inspiration I got from cryptsetup has AS_LITERAL_IF instead (but it seems to be buggy in some cases if I trust the documentation).
Anyway, we can fix this if a problem arises

b4n added a commit that referenced this pull request Feb 7, 2020
cppcheck: Set Geany include path for it to find header files
@b4n b4n merged commit e07cba1 into geany:master Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants