Including header files recursively for syntastic

后端 未结 2 1613
眼角桃花
眼角桃花 2021-01-30 15:01

I\'m working with a C++ project and trying to configure it to use syntastic. In my project I have a nested directory structure of header files (The actual nested structure is mu

2条回答
  •  攒了一身酷
    2021-01-30 15:20

    I've had the same question with little luck. However, I've found that if I use the quotation mark style header includes, syntactic will appropriately check the folders and not issue warnings. For example, if you're working on foo2.cpp,

    #include "dir3/foo4.h"
    #include "../dir1/foo1.h"
    

    Save bracket includes for standard libs and any libs you feel like hardcoding into vim.

提交回复
热议问题