How to add custom include dir to the header search path?

Something like:
HeaderSearchOptions &headerSearchOptions = theCompInst->getHeaderSearchOpts();
headerSearchOptions.AddPath(“D:/test/include”, clang::frontend::Angled, false, false, false);

should do it.

No, this doesn’t work, at least with 3.1.

Search headerSearch or headerSearchOptions in this mailing list, there are a lot of similar threads.

Thanks a lot!
I write like this, it's work!
HeaderSearchOptions headerSearchOptions;
ApplyHeaderSearchOptions(headerSearch, headerSearchOptions, languageOptions,