tonycoz / perl-check

clang-tidy plugin to check perl API usage
0 stars 0 forks source link

add support for other *pvn* to *pvs* macros/APIs #1

Open tonycoz opened 1 month ago

tonycoz commented 1 month ago

There's plenty to do here.

My only issue is avoiding duplicating most of the code.

I suspect I can do it via template arguments, but char[] template parameters are new/not available (C++20? 23?).

I may need to use inheritance to make it work instead, but that's pretty ugly.

Preferably I'd supply the parameters as constructor arguments, but this is all created by a factory we don't control as far as I can see.

tonycoz commented 1 month ago

Others to add:

tonycoz commented 3 weeks ago

We can control the factory and now do, and using that to supply the parameters.