Can't #include files
Closed this issue · 5 comments
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! 👍