Home
last modified time | relevance | path

Searched refs:Invocation (Results 1 – 25 of 67) sorted by relevance

123

/llvm-project/clang/unittests/Frontend/
H A DCompilerInvocationTest.cpp36 CompilerInvocation Invocation; in operator ()()
173 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags)); in TEST_F()
174 ASSERT_TRUE(Invocation.getFrontendOpts().UseTemporary); in TEST_F()
176 Invocation.generateCC1CommandLine(GeneratedArgs, *this); in TEST_F()
184 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags)); in TEST_F()
185 ASSERT_FALSE(Invocation.getFrontendOpts().UseTemporary); in TEST_F()
187 Invocation.generateCC1CommandLine(GeneratedArgs, *this); in TEST_F()
195 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags)); in TEST_F()
197 ASSERT_THAT(std::string(Invocation.getCodeGenOpts().CmdArgs.begin(), in TEST_F()
198 Invocation in TEST_F()
34 CompilerInvocation Invocation; global() member in __anonaf5a512d0111::CommandLineTest
[all...]
H A DOutputStreamTest.cpp26 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
27 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
29 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
31 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST()
32 Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; in TEST()
40 Compiler.setInvocation(std::move(Invocation)); in TEST()
50 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
51 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
53 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
55 Invocation in TEST()
25 auto Invocation = std::make_shared<CompilerInvocation>(); TEST() local
49 auto Invocation = std::make_shared<CompilerInvocation>(); TEST() local
78 auto Invocation = std::make_shared<CompilerInvocation>(); TEST() local
[all...]
H A DCodeGenActionTest.cpp46 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
47 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
50 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
52 Invocation->getFrontendOpts().ProgramAction = EmitLLVM; in TEST()
53 Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; in TEST()
55 Compiler.setInvocation(std::move(Invocation)); in TEST()
65 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
68 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
70 Invocation->getFrontendOpts().ProgramAction = frontend::EmitLLVMOnly; in TEST()
71 Invocation in TEST()
45 auto Invocation = std::make_shared<CompilerInvocation>(); TEST() local
64 auto Invocation = std::make_shared<CompilerInvocation>(); TEST() local
93 auto Invocation = std::make_shared<CompilerInvocation>(); TEST() local
[all...]
H A DFrontendActionTest.cpp177 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
178 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
181 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
183 Invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in TEST()
184 Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; in TEST()
186 Compiler.setInvocation(std::move(Invocation)); in TEST()
236 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
237 Invocation->getLangOpts().CPlusPlus = true; in TEST()
238 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
242 Invocation in TEST()
176 auto Invocation = std::make_shared<CompilerInvocation>(); TEST() local
235 auto Invocation = std::make_shared<CompilerInvocation>(); TEST() local
268 auto Invocation = std::make_shared<CompilerInvocation>(); TEST() local
[all...]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/objc/
H A Dnsinvocation-argument-lifetime.m22 void foo(NSInvocation *Invocation) {
38 [Invocation getArgument:&Arg2 atIndex:2];
39 [Invocation getArgument:&IntVar atIndex:2];
41 [Invocation getArgument:&Arg3 atIndex:3];
44 [Invocation getArgument:&Arg4 atIndex:4];
47 [Invocation getArgument:&Arg5 atIndex:5];
50 [Invocation getArgument:&BlockArg1 atIndex:6];
53 [Invocation getArgument:&BlockArg2 atIndex:6];
55 [Invocation getReturnValue:&ReturnValue];
58 [Invocation getArgument:(void *)0 atIndex:6];
[all …]
/llvm-project/clang/include/clang/Frontend/
H A DCompilerInstance.h82 std::shared_ptr<CompilerInvocation> Invocation;
254 /// @name Compiler Invocation and Options
257 bool hasInvocation() const { return Invocation != nullptr; }
260 assert(Invocation && "Compiler instance has no invocation!"); in getInvocation()
261 return *Invocation; in getInvocation()
264 std::shared_ptr<CompilerInvocation> getInvocationPtr() { return Invocation; }
282 AnalyzerOptions &getAnalyzerOpts() { return Invocation->getAnalyzerOpts(); }
285 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
288 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
292 return Invocation in getDependencyOutputOpts()
81 std::shared_ptr<CompilerInvocation> Invocation; global() variable
[all...]
/llvm-project/clang/unittests/Serialization/
H A DModuleCacheTest.cpp95 std::unique_ptr<CompilerInvocation> Invocation = in createInvocationAndEnableFree() local
97 if (Invocation) in createInvocationAndEnableFree()
98 Invocation->getFrontendOpts().DisableFree = false; in createInvocationAndEnableFree()
100 return Invocation; in createInvocationAndEnableFree()
119 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F() local
121 ASSERT_TRUE(Invocation); in TEST_F()
124 Instance.setInvocation(Invocation); in TEST_F()
169 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F() local
171 ASSERT_TRUE(Invocation); in TEST_F()
174 Instance.setInvocation(Invocation); in TEST_F()
[all...]
H A DForceCheckFileInputTest.cpp77 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F()
79 EXPECT_TRUE(Invocation); in TEST_F()
80 Invocation->getFrontendOpts().DisableFree = false; in TEST_F()
85 Invocation->getPreprocessorOpts().addRemappedFile("a.cppm", Buf->get()); in TEST_F()
91 Instance.setInvocation(Invocation); in TEST_F()
119 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F()
121 EXPECT_TRUE(Invocation); in TEST_F()
122 Invocation->getFrontendOpts().DisableFree = false; in TEST_F()
126 Clang.setInvocation(Invocation); in TEST_F()
75 std::shared_ptr<CompilerInvocation> Invocation = TEST_F() local
116 std::shared_ptr<CompilerInvocation> Invocation = TEST_F() local
H A DPreambleInNamedModulesTest.cpp89 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F() local
91 ASSERT_TRUE(Invocation); in TEST_F()
99 ComputePreambleBounds(Invocation->getLangOpts(), *Buffer, 0); in TEST_F()
103 *Invocation, Buffer.get(), Bounds, *Diags, VFS, in TEST_F()
110 EXPECT_TRUE(BuiltPreamble->CanReuse(*Invocation, *Buffer, Bounds, *VFS)); in TEST_F()
111 BuiltPreamble->OverridePreamble(*Invocation, VFS, Buffer.get()); in TEST_F()
115 Clang->setInvocation(std::move(Invocation)); in TEST_F()
H A DVarDeclConstantInitTest.cpp102 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F() local
104 ASSERT_TRUE(Invocation); in TEST_F()
105 Invocation->getFrontendOpts().DisableFree = false; in TEST_F()
109 Instance.setInvocation(Invocation); in TEST_F()
H A DNoCommentsTest.cpp96 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F() local
98 ASSERT_TRUE(Invocation); in TEST_F()
102 Instance.setInvocation(Invocation); in TEST_F()
/llvm-project/clang/lib/Tooling/
H A DTooling.cpp175 CompilerInvocation *Invocation = new CompilerInvocation; in newInvocation() local
176 CompilerInvocation::CreateFromArgs(*Invocation, CC1Args, *Diagnostics, in newInvocation()
178 Invocation->getFrontendOpts().DisableFree = false; in newInvocation()
179 Invocation->getCodeGenOpts().DisableFree = false; in newInvocation()
180 return Invocation; in newInvocation()
221 ToolInvocation Invocation( in runToolOnCodeWithArgs() local
224 return Invocation.run(); in runToolOnCodeWithArgs()
400 std::unique_ptr<CompilerInvocation> Invocation( in run()
404 return Action->runInvocation(std::move(Invocation), Files, in run()
424 std::unique_ptr<CompilerInvocation> Invocation( in run()
399 std::unique_ptr<CompilerInvocation> Invocation( run() local
423 std::unique_ptr<CompilerInvocation> Invocation( run() local
431 runInvocation(const char * BinaryName,driver::Compilation * Compilation,std::shared_ptr<CompilerInvocation> Invocation,std::shared_ptr<PCHContainerOperations> PCHContainerOps) runInvocation() argument
445 runInvocation(std::shared_ptr<CompilerInvocation> Invocation,FileManager * Files,std::shared_ptr<PCHContainerOperations> PCHContainerOps,DiagnosticConsumer * DiagConsumer) runInvocation() argument
619 ToolInvocation Invocation(std::move(CommandLine), Action, Files.get(), run() local
649 runInvocation(std::shared_ptr<CompilerInvocation> Invocation,FileManager * Files,std::shared_ptr<PCHContainerOperations> PCHContainerOps,DiagnosticConsumer * DiagConsumer) runInvocation() argument
703 ToolInvocation Invocation( buildASTFromCodeWithArgs() local
[all...]
/llvm-project/clang/unittests/AST/
H A DExternalASTSourceTest.cpp52 auto Invocation = std::make_shared<CompilerInvocation>(); in testExternalASTSource()
53 Invocation->getPreprocessorOpts().addRemappedFile( in testExternalASTSource()
56 CompilerInvocation::CreateFromArgs(*Invocation, Args, in testExternalASTSource()
58 Compiler.setInvocation(std::move(Invocation)); in testExternalASTSource()
51 auto Invocation = std::make_shared<CompilerInvocation>(); testExternalASTSource() local
/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DModelInjector.cpp66 auto Invocation = std::make_shared<CompilerInvocation>(CI.getInvocation()); in onBodySynthesis() local
68 FrontendOptions &FrontendOpts = Invocation->getFrontendOpts(); in onBodySynthesis()
74 Invocation->getDiagnosticOpts().VerifyDiagnostics = 0; in onBodySynthesis()
79 Instance.setInvocation(std::move(Invocation)); in onBodySynthesis()
/llvm-project/clang/tools/clang-fuzzer/handle-cxx/
H A Dhandle_cxx.cpp39 std::unique_ptr<clang::CompilerInvocation> Invocation( in HandleCXX() local
43 Invocation->getPreprocessorOpts().addRemappedFile(FileName, in HandleCXX()
49 action->runInvocation(std::move(Invocation), Files.get(), PCHContainerOps, in HandleCXX()
/llvm-project/clang/unittests/Tooling/
H A DToolingTest.cpp203 clang::tooling::ToolInvocation Invocation( in TEST()
209 EXPECT_TRUE(Invocation.run()); in TEST()
229 clang::tooling::ToolInvocation Invocation( in TEST()
239 EXPECT_TRUE(Invocation.run()); in TEST()
260 clang::tooling::ToolInvocation Invocation( in TEST()
265 Invocation.setDiagnosticConsumer(&Consumer); in TEST()
266 EXPECT_TRUE(Invocation.run()); in TEST()
289 clang::tooling::ToolInvocation Invocation( in TEST()
294 Invocation.setDiagnosticConsumer(&Consumer);
298 Invocation in HandleDiagnostic()
189 clang::tooling::ToolInvocation Invocation( TEST() local
215 clang::tooling::ToolInvocation Invocation( TEST() local
246 clang::tooling::ToolInvocation Invocation( TEST() local
275 clang::tooling::ToolInvocation Invocation( TEST() local
317 clang::tooling::ToolInvocation Invocation( TEST() local
342 clang::tooling::ToolInvocation Invocation( TEST() local
362 clang::tooling::ToolInvocation Invocation( TEST() local
[all...]
/llvm-project/clang-tools-extra/clang-tidy/android/
H A DComparisonInTempFailureRetryCheck.cpp68 SourceLocation Invocation = SM.getImmediateMacroCallerLoc(LocStart); in check() local
70 if (!Lexer::getRawToken(SM.getSpellingLoc(Invocation), Tok, SM, Opts, in check()
79 LocStart = Invocation; in check()
/llvm-project/clang/unittests/Support/
H A DTimeProfilerTest.cpp62 auto Invocation = std::make_shared<CompilerInvocation>();
64 CompilerInvocation::CreateFromArgs(*Invocation, Args, in buildTraceGraph()
66 Compiler.setInvocation(std::move(Invocation)); in buildTraceGraph()
45 auto Invocation = std::make_shared<CompilerInvocation>(); compileFromString() local
/llvm-project/clang/unittests/Tooling/Syntax/
H A DTreeTestBase.cpp149 Invocation = createInvocation(ArgsCStr, std::move(CIOpts)); in buildTree()
150 assert(Invocation); in buildTree()
151 Invocation->getFrontendOpts().DisableFree = false; in buildTree()
152 Invocation->getPreprocessorOpts().addRemappedFile( in buildTree()
155 Compiler.setInvocation(Invocation); in buildTree()
/llvm-project/clang/tools/diagtool/
H A DShowEnabledWarnings.cpp71 std::unique_ptr<CompilerInvocation> Invocation = in createDiagnostics()
73 if (!Invocation) in createDiagnostics()
79 &Invocation->getDiagnosticOpts()); in createDiagnostics()
70 std::unique_ptr<CompilerInvocation> Invocation = createDiagnostics() local
/llvm-project/clang-tools-extra/clang-tidy/performance/
H A DMoveConstArgCheck.cpp75 bool IsRValueReferenceParam(const Expr *Invocation, in IsRValueReferenceParam() argument
78 if (Invocation && (*InvocationParmType)->isRValueReferenceType() && in IsRValueReferenceParam()
80 if (!Invocation->getType()->isRecordType()) in IsRValueReferenceParam()
83 dyn_cast<CXXConstructExpr>(Invocation)) { in IsRValueReferenceParam()
/llvm-project/clang-tools-extra/clangd/tool/
H A DCheck.cpp153 std::unique_ptr<CompilerInvocation> Invocation;
225 Invocation = in buildInvocation()
230 if (!Invocation) { in buildInvocation()
246 File, *Invocation, Inputs, /*StoreInMemory=*/true, in buildAST()
262 AST = ParsedAST::build(File, Inputs, std::move(Invocation), in buildAST()
325 auto Invocation = buildCompilerInvocation(Inputs, IgnoreDiags); in checkTidyTimes()
327 ParsedAST::build(File, Inputs, std::move(Invocation), {}, Preamble); in checkTidyTimes()
151 std::unique_ptr<CompilerInvocation> Invocation; global() member in clang::clangd::__anon9762cb990111::Checker
317 auto Invocation = buildCompilerInvocation(Inputs, IgnoreDiags); checkTidyTimes() local
/llvm-project/clang/unittests/Sema/
H A DSemaNoloadLookupTest.cpp80 std::shared_ptr<CompilerInvocation> Invocation = in GenerateModuleInterface()
82 EXPECT_TRUE(Invocation); in GenerateModuleInterface()
86 Instance.setInvocation(Invocation); in GenerateModuleInterface()
79 std::shared_ptr<CompilerInvocation> Invocation = GenerateModuleInterface() local
/llvm-project/llvm/tools/llvm-cov/
H A Dllvm-cov.cpp79 std::string Invocation = std::string(argv[0]) + " " + argv[1]; in main() local
80 argv[1] = Invocation.c_str(); in main()
/llvm-project/mlir/test/Target/SPIRV/
H A Dbarrier-ops.mlir20 // CHECK: spirv.ControlBarrier <Workgroup>, <Invocation>, <AcquireRelease|UniformMemory>
21 spirv.ControlBarrier <Workgroup>, <Invocation>, <AcquireRelease|UniformMemory>

123