libQuotient icon indicating copy to clipboard operation
libQuotient copied to clipboard

Draft: Generate C/C++ CamelCase forwarding headers

Open CarlSchwan opened this issue 3 years ago • 3 comments

Fix #445 still WIP, I need to finish doingit for the csapi generated files too

CarlSchwan avatar May 05 '21 22:05 CarlSchwan

One thing I'm not quite happy in this approach (and I understand that it's the way KDE goes, but still) is that one has to explicitly add the HeaderName every time a new public headername.h is added. I wonder how inaccurate would be a script picking a class name from the header file using some regex...

KitsuneRal avatar Dec 09 '21 21:12 KitsuneRal

I wonder how inaccurate would be a script picking a class name from the header file

That script would at least need to magically figure out which letters to capitalize :/

TobiasFella avatar Nov 20 '22 23:11 TobiasFella

The "magic" would boil down to looking inside the file for case-insensitive matches of the file name and then using whatever case is there... and perhaps it would be best just to move on from thestreamofwords like roommemberevent.h - so let's do it once, rename the files to the likes of RoomMemberEvent.h, making production of extensionless symlinks a trivial task.

KitsuneRal avatar Nov 23 '22 18:11 KitsuneRal