Lines Matching refs:Invocation

36   CompilerInvocation Invocation;
173 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
174 ASSERT_TRUE(Invocation.getFrontendOpts().UseTemporary);
176 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
184 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
185 ASSERT_FALSE(Invocation.getFrontendOpts().UseTemporary);
187 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
195 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
197 ASSERT_THAT(std::string(Invocation.getCodeGenOpts().CmdArgs.begin(),
198 Invocation.getCodeGenOpts().CmdArgs.end()),
205 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
207 ASSERT_THAT(std::string(Invocation.getCodeGenOpts().CmdArgs.begin(),
208 Invocation.getCodeGenOpts().CmdArgs.end()),
216 ASSERT_FALSE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
217 ASSERT_TRUE(Invocation.getFrontendOpts().UseTemporary);
227 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
228 ASSERT_TRUE(Invocation.getCodeGenOpts().Autolink);
230 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
238 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
239 ASSERT_FALSE(Invocation.getCodeGenOpts().Autolink);
241 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
250 ASSERT_FALSE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
251 ASSERT_TRUE(Invocation.getCodeGenOpts().Autolink);
261 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
262 ASSERT_FALSE(Invocation.getCodeGenOpts().NoInlineLineTables);
264 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
272 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
273 ASSERT_TRUE(Invocation.getCodeGenOpts().NoInlineLineTables);
275 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
284 ASSERT_FALSE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
285 ASSERT_FALSE(Invocation.getCodeGenOpts().NoInlineLineTables);
295 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
296 ASSERT_FALSE(Invocation.getCodeGenOpts().CodeViewGHash);
298 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
306 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
307 ASSERT_TRUE(Invocation.getCodeGenOpts().CodeViewGHash);
309 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
318 ASSERT_FALSE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
319 ASSERT_FALSE(Invocation.getCodeGenOpts().CodeViewGHash);
329 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
330 ASSERT_EQ(Invocation.getCodeGenOpts().ClearASTBeforeBackend, false);
332 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
341 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
342 ASSERT_EQ(Invocation.getCodeGenOpts().ClearASTBeforeBackend, true);
344 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
352 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
353 ASSERT_EQ(Invocation.getCodeGenOpts().ClearASTBeforeBackend, false);
355 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
370 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
371 ASSERT_FALSE(Invocation.getCodeGenOpts().DebugPassManager);
373 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
382 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
383 ASSERT_TRUE(Invocation.getCodeGenOpts().DebugPassManager);
385 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
394 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
395 ASSERT_FALSE(Invocation.getCodeGenOpts().DebugPassManager);
397 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
406 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
408 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
417 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
419 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
429 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
431 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
442 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
444 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
453 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
454 ASSERT_EQ(Invocation.getCodeGenOpts().RelocationModel, Reloc::Model::Static);
456 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
467 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
468 ASSERT_EQ(Invocation.getCodeGenOpts().RelocationModel, Reloc::Model::PIC_);
470 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
481 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
482 ASSERT_EQ(Invocation.getCodeGenOpts().getObjCDispatchMethod(),
485 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
496 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
497 ASSERT_EQ(Invocation.getCodeGenOpts().getObjCDispatchMethod(),
500 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
511 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
512 ASSERT_TRUE(Invocation.getFrontendOpts().ModuleMapFiles.empty());
514 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
522 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
523 ASSERT_EQ(Invocation.getFrontendOpts().ModuleMapFiles,
526 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
535 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
536 ASSERT_TRUE(Invocation.getFrontendOpts().ModuleMapFiles ==
539 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
551 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
552 ASSERT_TRUE(Invocation.getLangOpts().CommentOpts.BlockCommandNames.empty());
554 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
563 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
564 ASSERT_EQ(Invocation.getLangOpts().CommentOpts.BlockCommandNames,
567 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
577 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
578 ASSERT_EQ(Invocation.getLangOpts().CommentOpts.BlockCommandNames,
581 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
592 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags);
595 ASSERT_FALSE(Invocation.getLangOpts().SYCLIsDevice);
596 ASSERT_FALSE(Invocation.getLangOpts().SYCLIsHost);
597 ASSERT_EQ(Invocation.getLangOpts().getSYCLVersion(), LangOptions::SYCL_None);
599 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
608 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags);
611 ASSERT_FALSE(Invocation.getLangOpts().SYCLIsDevice);
612 ASSERT_FALSE(Invocation.getLangOpts().SYCLIsHost);
613 ASSERT_EQ(Invocation.getLangOpts().getSYCLVersion(), LangOptions::SYCL_None);
615 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
625 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags);
628 ASSERT_TRUE(Invocation.getLangOpts().SYCLIsDevice);
629 ASSERT_FALSE(Invocation.getLangOpts().SYCLIsHost);
630 ASSERT_EQ(Invocation.getLangOpts().getSYCLVersion(), LangOptions::SYCL_None);
632 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
642 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags);
645 ASSERT_TRUE(Invocation.getLangOpts().SYCLIsDevice);
646 ASSERT_FALSE(Invocation.getLangOpts().SYCLIsHost);
647 ASSERT_EQ(Invocation.getLangOpts().getSYCLVersion(), LangOptions::SYCL_2017);
649 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
659 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags);
662 ASSERT_TRUE(Invocation.getLangOpts().SYCLIsDevice);
663 ASSERT_FALSE(Invocation.getLangOpts().SYCLIsHost);
664 ASSERT_EQ(Invocation.getLangOpts().getSYCLVersion(), LangOptions::SYCL_2017);
666 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
676 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags);
679 ASSERT_TRUE(Invocation.getLangOpts().SYCLIsDevice);
680 ASSERT_FALSE(Invocation.getLangOpts().SYCLIsHost);
681 ASSERT_EQ(Invocation.getLangOpts().getSYCLVersion(), LangOptions::SYCL_2017);
683 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
693 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags);
696 ASSERT_EQ(Invocation.getLangOpts().getSYCLVersion(),
699 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
708 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags);
711 ASSERT_EQ(Invocation.getLangOpts().getSYCLVersion(),
714 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
723 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags);
726 ASSERT_EQ(Invocation.getLangOpts().getSYCLVersion(), LangOptions::SYCL_2017);
728 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
739 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags);
742 ASSERT_EQ(Invocation.getHeaderSearchOpts().BuildSessionTimestamp,
757 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
758 ASSERT_FALSE(Invocation.getLangOpts().CLUnsafeMath);
759 ASSERT_FALSE(Invocation.getCodeGenOpts().LessPreciseFPMAD);
760 ASSERT_FALSE(Invocation.getLangOpts().UnsafeFPMath);
761 ASSERT_FALSE(Invocation.getLangOpts().AllowRecip);
763 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
777 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
779 ASSERT_TRUE(Invocation.getLangOpts().CLUnsafeMath);
781 ASSERT_TRUE(Invocation.getCodeGenOpts().LessPreciseFPMAD);
782 ASSERT_TRUE(Invocation.getLangOpts().UnsafeFPMath);
784 ASSERT_TRUE(Invocation.getLangOpts().AllowRecip);
786 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
801 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
802 ASSERT_TRUE(Invocation.getLangOpts().CLUnsafeMath);
803 ASSERT_TRUE(Invocation.getCodeGenOpts().LessPreciseFPMAD);
804 ASSERT_TRUE(Invocation.getLangOpts().UnsafeFPMath);
805 ASSERT_TRUE(Invocation.getLangOpts().AllowRecip);
807 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
822 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
823 ASSERT_FALSE(Invocation.getLangOpts().CLUnsafeMath);
824 ASSERT_TRUE(Invocation.getCodeGenOpts().LessPreciseFPMAD);
825 ASSERT_TRUE(Invocation.getLangOpts().UnsafeFPMath);
826 ASSERT_TRUE(Invocation.getLangOpts().AllowRecip);
828 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
842 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
844 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
856 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
858 ASSERT_EQ(Invocation.getDiagnosticOpts().VerifyPrefixes,
861 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
871 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
872 ASSERT_TRUE(Invocation.getLangOpts().Digraphs);
874 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
882 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
883 ASSERT_FALSE(Invocation.getLangOpts().Digraphs);
885 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
893 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
894 ASSERT_FALSE(Invocation.getLangOpts().Digraphs);
896 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
904 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
905 ASSERT_TRUE(Invocation.getLangOpts().Digraphs);
907 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
940 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
941 ASSERT_THAT(Invocation.getFrontendOpts().ModuleFileExtensions.size(), 2);
946 Invocation.getFrontendOpts().ModuleFileExtensions.push_back(
949 Invocation.generateCC1CommandLine(GeneratedArgs, *this);
1008 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
1010 ASSERT_TRUE(Invocation.getLangOpts().C17);
1011 ASSERT_EQ(Invocation.getLangOpts().MaxTokens, 10u);
1013 ASSERT_EQ(Invocation.getTargetOpts().SDKVersion, llvm::VersionTuple(1, 2, 3));
1014 ASSERT_EQ(Invocation.getTargetOpts().EABIVersion, EABI::EABI4);
1016 ASSERT_THAT(Invocation.getDiagnosticOpts().UndefPrefixes,
1018 ASSERT_EQ(Invocation.getDiagnosticOpts().getFormat(),
1021 ASSERT_TRUE(Invocation.getHeaderSearchOpts().UseLibcxx);
1022 ASSERT_TRUE(Invocation.getHeaderSearchOpts().ImplicitModuleMaps);
1024 ASSERT_THAT(Invocation.getPreprocessorOpts().Macros,
1026 ASSERT_EQ(Invocation.getPreprocessorOpts().ImplicitPCHInclude, "a.pch");
1028 ASSERT_EQ(Invocation.getAnalyzerOpts().Config["ctu-import-threshold"], "42");
1029 ASSERT_TRUE(Invocation.getAnalyzerOpts().UnoptimizedCFG);
1031 ASSERT_TRUE(Invocation.getMigratorOpts().NoNSAllocReallocError);
1033 ASSERT_EQ(Invocation.getCodeGenOpts().getDebugInfo(),
1035 ASSERT_TRUE(Invocation.getCodeGenOpts().MacroDebugInfo);
1037 ASSERT_EQ(Invocation.getDependencyOutputOpts().ShowIncludesDest,
1039 ASSERT_TRUE(Invocation.getDependencyOutputOpts().ShowHeaderIncludes);
1050 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
1056 EXPECT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
1057 EXPECT_EQ(Invocation.getDiagnosticOpts().DiagnosticSuppressionMappingsFile,
1060 Invocation.generateCC1CommandLine(GeneratedArgs, *this);