if (in_memory) {
invocation0.getPreprocessorOpts().addRemappedFile(main_path, &*main_buf);
invocation0.getFrontendOpts().Inputs.clear();
- invocation0.getFrontendOpts().Inputs.push_back(
- FrontendInputFile(main_path, IK_C));
+ invocation0.getFrontendOpts().Inputs.push_back(FrontendInputFile(
+ main_path, FrontendOptions::getInputKindForExtension("c")));
}
invocation0.getFrontendOpts().DisableFree = false;
invocation1.getPreprocessorOpts().addRemappedFile(f.first, &*f.second);
invocation1.getPreprocessorOpts().addRemappedFile(main_path, &*out_buf);
invocation1.getFrontendOpts().Inputs.clear();
- invocation1.getFrontendOpts().Inputs.push_back(
- FrontendInputFile(main_path, IK_C));
+ invocation1.getFrontendOpts().Inputs.push_back(FrontendInputFile(
+ main_path, FrontendOptions::getInputKindForExtension("c")));
invocation1.getFrontendOpts().DisableFree = false;
compiler1.createDiagnostics();
invocation2.getPreprocessorOpts().addRemappedFile(f.first, &*f.second);
invocation2.getPreprocessorOpts().addRemappedFile(main_path, &*out_buf1);
invocation2.getFrontendOpts().Inputs.clear();
- invocation2.getFrontendOpts().Inputs.push_back(
- FrontendInputFile(main_path, IK_C));
+ invocation2.getFrontendOpts().Inputs.push_back(FrontendInputFile(
+ main_path, FrontendOptions::getInputKindForExtension("c")));
invocation2.getFrontendOpts().DisableFree = false;
// Resort to normal inlining. In -O0 the default is OnlyAlwaysInlining and
// clang might add noinline attribute even for functions with inline hint.