Files
buildtools/gcc/isl/interface/set_lang_defaults_arg4.h
Adrien Destugues 680f0e1112 import ISL 0.24
2022-07-15 15:05:28 +02:00

17 lines
517 B
C++

#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;
};