简体   繁体   中英

Sublimelinter cpplint does not recognize ipp files

I am trying to setup sublime text 3 to work on C++ development.

I installed cpplint and followed the installation instructions. While the documentation indicates that cpplint will lint any file with syntax set to "C++", this is not the case for me. cpplint only works when my file has an extention "cpp" or "hpp". The moment I change the file name extension from "hpp" to "ipp" the linter stops working.

Does anybody know what configuration I need to make?

Turns out cpplint source code has a check to ignore extensions that aren't the usual ones in function

GetAllExtensions()

Simply adding "ipp" to the list and building cpplint solves the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM