blob: 82af7ff655b69bb9a3c342df2757bb429a396516 [file] [log] [blame]
#include <string>
#include <vector>
#include <clang/Lex/PreprocessorOptions.h>
/* 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<std::string> &() { return PO.Includes; }
clang::PreprocessorOptions &PO;
};