Shougo/neoinclude.vim

Autodetect system include paths

Closed this issue · 1 comments

Compilers provides ability to ask them about system include directory. It would be great to reuse this functionality instead of own heuristic. For example:

clang++ -E -x c++ - -v < /dev/null
....

include "..." search starts here:

include <...> search starts here:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1
/usr/local/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
....

The Pull request is wellcome.