Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang/unittests/Frontend/
H A DCompilerInvocationTest.cpp33 CompilerInvocation Invocation; member in __anon91b32dea0111::CommandLineTest
164 ASSERT_TRUE(Invocation.getCodeGenOpts().Autolink); in TEST_F()
175 ASSERT_FALSE(Invocation.getCodeGenOpts().Autolink); in TEST_F()
187 ASSERT_TRUE(Invocation.getCodeGenOpts().Autolink); in TEST_F()
719 ASSERT_TRUE(Invocation.getLangOpts()->AllowRecip); in TEST_F()
739 ASSERT_TRUE(Invocation.getLangOpts()->AllowRecip); in TEST_F()
805 ASSERT_TRUE(Invocation.getLangOpts()->Digraphs); in TEST_F()
816 ASSERT_FALSE(Invocation.getLangOpts()->Digraphs); in TEST_F()
827 ASSERT_FALSE(Invocation.getLangOpts()->Digraphs); in TEST_F()
838 ASSERT_TRUE(Invocation.getLangOpts()->Digraphs); in TEST_F()
[all …]
H A DOutputStreamTest.cpp26 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
28 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
30 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST()
39 Compiler.setInvocation(std::move(Invocation)); in TEST()
50 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
52 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
54 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST()
62 Compiler.setInvocation(std::move(Invocation)); in TEST()
79 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
81 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
[all …]
H A DCodeGenActionTest.cpp45 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST() local
46 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
49 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
51 Invocation->getFrontendOpts().ProgramAction = EmitLLVM; in TEST()
54 Compiler.setInvocation(std::move(Invocation)); in TEST()
64 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST() local
67 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
72 Compiler.setInvocation(std::move(Invocation)); in TEST()
93 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
95 Invocation->getFrontendOpts().ProgramAction = EmitLLVM; in TEST()
[all …]
H A DFrontendActionTest.cpp176 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST() local
177 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
180 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
185 Compiler.setInvocation(std::move(Invocation)); in TEST()
236 Invocation->getLangOpts()->CPlusPlus = true; in TEST()
237 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
241 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
246 Compiler.setInvocation(std::move(Invocation)); in TEST()
270 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
273 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
[all …]
/llvm-project-15.0.7/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-15.0.7/clang/include/clang/Frontend/
H A DCompilerInstance.h231 return *Invocation; in getInvocation()
251 return Invocation->getAnalyzerOpts(); in getAnalyzerOpts()
255 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
258 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
269 return Invocation->getDiagnosticOpts(); in getDiagnosticOpts()
283 return Invocation->getFrontendOpts(); in getFrontendOpts()
286 return Invocation->getFrontendOpts(); in getFrontendOpts()
300 return *Invocation->getLangOpts(); in getLangOpts()
303 return *Invocation->getLangOpts(); in getLangOpts()
321 return Invocation->getTargetOpts(); in getTargetOpts()
[all …]
/llvm-project-15.0.7/clang/lib/Tooling/
H A DTooling.cpp171 Invocation->getCodeGenOpts().DisableFree = false; in newInvocation()
172 return Invocation; in newInvocation()
213 ToolInvocation Invocation( in runToolOnCodeWithArgs() local
216 return Invocation.run(); in runToolOnCodeWithArgs()
381 std::unique_ptr<CompilerInvocation> Invocation( in run() local
408 Compiler.setInvocation(std::move(Invocation)); in runInvocation()
577 if (!Invocation.run()) { in run()
608 Invocation, std::move(PCHContainerOps), in runInvocation()
661 ToolInvocation Invocation( in buildASTFromCodeWithArgs() local
664 Invocation.setDiagnosticConsumer(DiagConsumer); in buildASTFromCodeWithArgs()
[all …]
/llvm-project-15.0.7/clang/unittests/AST/
H A DExternalASTSourceTest.cpp51 auto Invocation = std::make_shared<CompilerInvocation>(); in testExternalASTSource() local
52 Invocation->getPreprocessorOpts().addRemappedFile( in testExternalASTSource()
55 CompilerInvocation::CreateFromArgs(*Invocation, Args, in testExternalASTSource()
57 Compiler.setInvocation(std::move(Invocation)); in testExternalASTSource()
/llvm-project-15.0.7/clang/unittests/Serialization/
H A DModuleCacheTest.cpp106 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F() local
108 ASSERT_TRUE(Invocation); in TEST_F()
111 Instance.setInvocation(Invocation); in TEST_F()
155 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F() local
157 ASSERT_TRUE(Invocation); in TEST_F()
160 Instance.setInvocation(Invocation); in TEST_F()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Frontend/
H A DModelInjector.cpp67 auto Invocation = std::make_shared<CompilerInvocation>(CI.getInvocation()); in onBodySynthesis() local
69 FrontendOptions &FrontendOpts = Invocation->getFrontendOpts(); in onBodySynthesis()
75 Invocation->getDiagnosticOpts().VerifyDiagnostics = 0; in onBodySynthesis()
80 Instance.setInvocation(std::move(Invocation)); in onBodySynthesis()
/llvm-project-15.0.7/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-15.0.7/clang-tools-extra/clang-tidy/android/
H A DComparisonInTempFailureRetryCheck.cpp70 SourceLocation Invocation = SM.getImmediateMacroCallerLoc(LocStart); in check() local
72 if (!Lexer::getRawToken(SM.getSpellingLoc(Invocation), Tok, SM, Opts, in check()
81 LocStart = Invocation; in check()
/llvm-project-15.0.7/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningWorker.cpp146 bool runInvocation(std::shared_ptr<CompilerInvocation> Invocation, in runInvocation() argument
151 CompilerInvocation OriginalInvocation(*Invocation); in runInvocation()
157 ScanInstance.setInvocation(std::move(Invocation)); in runInvocation()
347 ToolInvocation Invocation(FinalCommandLine, &Action, in computeDependencies() local
350 Invocation.setDiagnosticConsumer(&DC); in computeDependencies()
351 Invocation.setDiagnosticOptions(&DiagOpts); in computeDependencies()
352 return Invocation.run(); in computeDependencies()
/llvm-project-15.0.7/clang/unittests/Tooling/Syntax/
H A DTreeTestBase.cpp146 Invocation = createInvocation(ArgsCStr, std::move(CIOpts)); in buildTree()
147 assert(Invocation); in buildTree()
148 Invocation->getFrontendOpts().DisableFree = false; in buildTree()
149 Invocation->getPreprocessorOpts().addRemappedFile( in buildTree()
152 Compiler.setInvocation(Invocation); in buildTree()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DMoveConstArgCheck.cpp71 bool IsRValueReferenceParam(const Expr *Invocation, in IsRValueReferenceParam() argument
74 if (Invocation && (*InvocationParmType)->isRValueReferenceType() && in IsRValueReferenceParam()
76 if (!Invocation->getType()->isRecordType()) in IsRValueReferenceParam()
80 dyn_cast<CXXConstructExpr>(Invocation)) { in IsRValueReferenceParam()
/llvm-project-15.0.7/clang/tools/diagtool/
H A DShowEnabledWarnings.cpp70 std::unique_ptr<CompilerInvocation> Invocation = in createDiagnostics() local
72 if (!Invocation) in createDiagnostics()
77 CompilerInstance::createDiagnostics(&Invocation->getDiagnosticOpts()); in createDiagnostics()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DToolingTest.cpp189 clang::tooling::ToolInvocation Invocation( in TEST() local
195 EXPECT_TRUE(Invocation.run()); in TEST()
215 clang::tooling::ToolInvocation Invocation( in TEST() local
225 EXPECT_TRUE(Invocation.run()); in TEST()
246 clang::tooling::ToolInvocation Invocation( in TEST() local
251 Invocation.setDiagnosticConsumer(&Consumer); in TEST()
252 EXPECT_TRUE(Invocation.run()); in TEST()
275 clang::tooling::ToolInvocation Invocation( in TEST() local
286 EXPECT_TRUE(Invocation.run()); in TEST()
317 clang::tooling::ToolInvocation Invocation( in TEST() local
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/tool/
H A DCheck.cpp81 std::unique_ptr<CompilerInvocation> Invocation; member in clang::clangd::__anon6f28e4d60111::Checker
147 Invocation = in buildInvocation()
152 if (!Invocation) { in buildInvocation()
167 Preamble = buildPreamble(File, *Invocation, Inputs, /*StoreInMemory=*/true, in buildAST()
183 AST = ParsedAST::build(File, Inputs, std::move(Invocation), in buildAST()
/llvm-project-15.0.7/mlir/test/Target/SPIRV/
H A Dbarrier-ops.mlir20 // CHECK: spv.ControlBarrier Workgroup, Invocation, "AcquireRelease|UniformMemory"
21 spv.ControlBarrier Workgroup, Invocation, "AcquireRelease|UniformMemory"
/llvm-project-15.0.7/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-15.0.7/clang-tools-extra/clangd/indexer/
H A DIndexerMain.cpp87 bool runInvocation(std::shared_ptr<CompilerInvocation> Invocation, in runInvocation() argument
91 disableUnsupportedOptions(*Invocation); in runInvocation()
93 std::move(Invocation), Files, std::move(PCHContainerOps), DiagConsumer); in runInvocation()
/llvm-project-15.0.7/clang/lib/Tooling/DumpTool/
H A DClangSrcLocDump.cpp134 auto Invocation = std::make_unique<CompilerInvocation>(); in main() local
135 CompilerInvocation::CreateFromArgs(*Invocation, CC1Args, Diagnostics); in main()
138 Compiler.setInvocation(std::move(Invocation)); in main()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DASTUnit.cpp263 if (Invocation && OwnsRemappedFileBuffers) { in ~ASTUnit()
1098 if (!Invocation) in Parse()
1453 if (Invocation && !Invocation->getFrontendOpts().Inputs.empty()) { in getMainFileName()
1490 AST->Invocation = std::move(CI); in create()
1641 if (!Invocation) in LoadFromCompilerInvocation()
1648 Invocation->getFrontendOpts().DisableFree = false; in LoadFromCompilerInvocation()
1689 AST->Invocation = std::move(CI); in LoadFromCompilerInvocation()
1781 AST->Invocation = CI; in LoadFromCommandLine()
1811 if (!Invocation) in Reparse()
1829 Invocation->getPreprocessorOpts().clearRemappedFiles(); in Reparse()
[all …]
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DClangTidyTest.h126 tooling::ToolInvocation Invocation(
138 Invocation.setDiagnosticConsumer(&DiagConsumer);
139 if (!Invocation.run()) {
/llvm-project-15.0.7/clang/include/clang/Tooling/
H A DTooling.h86 runInvocation(std::shared_ptr<CompilerInvocation> Invocation,
103 bool runInvocation(std::shared_ptr<CompilerInvocation> Invocation,
289 std::shared_ptr<CompilerInvocation> Invocation,

123