Makopo/lslint

Can't #include files

Closed this issue · 5 comments

Looks like lslint knows about Firestorm's preprocessor, but it just ignore included files and then swears about undeclared variables :(

screeshot

This is by design, see #8. Use an external preprocessor such as mcpp (I recommend mcpp because it's a standalone executable) and pipe its output to lslint. The problem with this approach is that lslint does not yet recognize #line directives and won't report errors and warnings in the original file's lines, but in the preprocessed file's lines, so there's room for improvement in this area.

@Sei-Lisa Thank you for answer! I installed mcpp, but have no idea, how to use it in sublime text.

Me neither. I don't use sublime text. I use lslint as a stand-alone application, which is what it's designed to be, therefore that is out of scope here. Maybe send this as an enhancement request to the author of the plugin that interfaces sublime text with lslint? I think this may be the place: https://github.com/XenHat/SublimeLinter-contrib-lslint otherwise you can probably get better indications there anyway.

@Sei-Lisa ok, thanks! 👍

@Sei-Lisa Interesting! I will set up mcpp as soon as possible and see if I can wrangle the snake into accepting #line.