pet 0.11.8
[pet.git] / set_lang_defaults_arg4.h
blob82af7ff655b69bb9a3c342df2757bb429a396516
1 #include <string>
2 #include <vector>
4 #include <clang/Lex/PreprocessorOptions.h>
6 /* Convert a clang::PreprocessorOptions to the fourth argument
7 * of CompilerInvocation::setLangDefaults, which may be either
8 * a clang::PreprocessorOptions itself or its Includes.
9 */
10 struct setLangDefaultsArg4 {
11 setLangDefaultsArg4(clang::PreprocessorOptions &PO) : PO(PO) {}
12 operator clang::PreprocessorOptions &() { return PO; }
13 operator std::vector<std::string> &() { return PO.Includes; }
15 clang::PreprocessorOptions &PO;