brintos

brintos / llvm-project-archived public Read only

0
0
Text · 517 B · 82af7ff Raw
17 lines · c
1#include <string>2#include <vector>3 4#include <clang/Lex/PreprocessorOptions.h>5 6/* Convert a clang::PreprocessorOptions to the fourth argument7 * of CompilerInvocation::setLangDefaults, which may be either8 * a clang::PreprocessorOptions itself or its Includes.9 */10struct setLangDefaultsArg4 {11	setLangDefaultsArg4(clang::PreprocessorOptions &PO) : PO(PO) {}12	operator clang::PreprocessorOptions &() { return PO; }13	operator std::vector<std::string> &() { return PO.Includes; }14 15	clang::PreprocessorOptions &PO;16};17