This was mentioned recently in Inquiring C++ standard from build target for analyzer config - possible regression, bug or missing documentation? - #7 by tambre. Right now, generator expressions are not supported in <LANG>_CPPCHECK
, but as suggested in that other discussion, it likely wouldn’t be a big change to add that support if someone wanted to take a look at it.