Makopo/lslint

Request: Support for preprocessor includes

Closed this issue · 4 comments

Please add support for preprocessor includes. They may not be a core LSL feature but third party viewers have adopted this useful feature.

It doesn't make sense to add includes without adding everything else a preprocessor can do. And a preprocessor is out of scope for this project.

Instead, grab a preprocessor and use it together with lslint. This project already supports filtering the preprocessor output, and in my opinion that's exactly the extent that it should cover.

if you have a suggestion for a CLI Preprocessor, then my ears are open on that. But otherwise it would still be a good idea in my opinion to add the ability to parse preprocessor includes, and other preprocessor commands.

Check mcpp, http://mcpp.sourceforge.net/ . If you prefer Python, there's also PCPP, https://github.com/ned14/pcpp .