#include #include #include /* Convert a clang::PreprocessorOptions to the fourth argument * of CompilerInvocation::setLangDefaults, which may be either * a clang::PreprocessorOptions itself or its Includes. */ struct setLangDefaultsArg4 { setLangDefaultsArg4(clang::PreprocessorOptions &PO) : PO(PO) {} operator clang::PreprocessorOptions &() { return PO; } operator std::vector &() { return PO.Includes; } clang::PreprocessorOptions &PO; };