AtomLinter / linter-cpplint

Linter plugin for c++, using cpplint
https://atom.io/packages/linter-cpplint
MIT License
6 stars 5 forks source link

Standard library includes trigger fail for .h files #5

Closed acgetchell closed 8 years ago

acgetchell commented 10 years ago

cpp-linter seems to treat .h files as exclusively C files, and won't find standard libraries.

The same isn't true if the file is *.hpp.

Not sure if this is a bug, or feature. I'm going to say bug for now since exercism requires bob.h.

screen shot 2014-09-03 at 11 14 57 pm

Nathan-Smith commented 9 years ago

Atom does a auto detect on the file based off the file extension. As you can see on the bottom right of the screenshot it shows 'C' as the current language. If you switch to C++ the linter should work fine. Since this is a C++ Linter it doesn't lint any files detected by Atom as C.

Arcanemagus commented 8 years ago

This linter has been completely re-written since this was filed, and it looks like the original post wasn't actually for this particular plugin anyway. Marking as closed.