Home
last modified time | relevance | path

Searched refs:CompilerInvocation (Results 1 – 25 of 86) sorted by relevance

1234

/llvm-project/clang/unittests/Frontend/
H A DCompilerInvocationTest.cpp9 #include "clang/Frontend/CompilerInvocation.h"
36 CompilerInvocation Invocation; in operator ()()
107 CompilerInvocation A; in TEST()
110 CompilerInvocation B(A); in TEST()
117 CompilerInvocation A; in TEST()
120 CompilerInvocation B; in TEST()
173 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags)); in TEST_F()
184 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags)); in TEST_F()
195 ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags)); in TEST_F()
205 ASSERT_TRUE(CompilerInvocation in TEST_F()
[all...]
H A DFrontendActionTest.cpp15 #include "clang/Frontend/CompilerInvocation.h"
84 auto invocation = std::make_shared<CompilerInvocation>(); in TEST()
104 auto invocation = std::make_shared<CompilerInvocation>(); in TEST()
124 auto invocation = std::make_shared<CompilerInvocation>(); in TEST()
177 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
236 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
270 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
H A DOutputStreamTest.cpp26 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
50 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
80 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
H A DCodeGenActionTest.cpp46 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
65 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
94 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST()
H A DUtilsTest.cpp13 #include "clang/Frontend/CompilerInvocation.h"
34 std::unique_ptr<CompilerInvocation> CI = createInvocation(Args, Opts); in TEST()
55 std::unique_ptr<CompilerInvocation> CI = createInvocation(Args, CIOpts); in TEST()
/llvm-project/clang/include/clang/Frontend/
H A DCompilerInvocation.h211 class CompilerInvocation : public CompilerInvocationBase {
213 CompilerInvocation() = default;
214 CompilerInvocation(const CompilerInvocation &X) in CompilerInvocation() function
218 CompilerInvocation(CompilerInvocation &&) = default;
219 CompilerInvocation &operator=(const CompilerInvocation &X) {
223 ~CompilerInvocation() = default;
225 explicit CompilerInvocation(const CowCompilerInvocation &X);
226 CompilerInvocation &operator=(const CowCompilerInvocation &X);
293 static bool CreateFromArgs(CompilerInvocation &Res,
341 static bool CreateFromArgsImpl(CompilerInvocation &Res,
[all …]
H A DPrecompiledPreamble.h36 class CompilerInvocation; variable
85 Build(const CompilerInvocation &Invocation,
112 bool CanReuse(const CompilerInvocation &Invocation,
124 void AddImplicitPreamble(CompilerInvocation &CI,
131 void OverridePreamble(CompilerInvocation &CI,
173 void configurePreamble(PreambleBounds Bounds, CompilerInvocation &CI,
H A DASTUnit.h66 class CompilerInvocation; variable
141 std::shared_ptr<CompilerInvocation> Invocation;
379 CompilerInvocation &PreambleInvocationIn,
667 /// Create a ASTUnit. Gets ownership of the passed CompilerInvocation.
669 create(std::shared_ptr<CompilerInvocation> CI,
729 /// Create an ASTUnit from a source file, via a CompilerInvocation
733 /// source file. The ASTUnit takes ownership of the CompilerInvocation object.
758 std::shared_ptr<CompilerInvocation> CI,
771 /// CompilerInvocation object.
774 /// source file. The ASTUnit takes ownership of the CompilerInvocation objec
[all...]
/llvm-project/polly/lib/External/isl/interface/
H A Dextract_interface.cc220 static void create_from_args(CompilerInvocation &invocation, in create_from_args()
223 CompilerInvocation::CreateFromArgs(invocation, *args, Diags); in create_from_args()
231 static void create_from_args(CompilerInvocation &invocation, in create_from_args()
234 CompilerInvocation::CreateFromArgs(invocation, args->data() + 1, in create_from_args()
266 static CompilerInvocation *construct_invocation(const char *filename, in construct_invocation()
285 CompilerInvocation *invocation = new CompilerInvocation; in construct_invocation()
292 static CompilerInvocation *construct_invocation(const char *filename, in construct_invocation()
440 CompilerInvocation::setLangDefaults(Clang->getLangOpts(), IK_C, in set_lang_defaults()
449 CompilerInvocation *invocation) in set_invocation()
451 Clang->setInvocation(std::make_shared<CompilerInvocation>(*invocation)); in set_invocation()
[all …]
/llvm-project/clang/include/clang/ARCMigrate/
H A DARCMT.h41 checkForManualIssues(CompilerInvocation &CI, const FrontendInputFile &Input,
52 applyTransformations(CompilerInvocation &origCI,
69 CompilerInvocation &origCI, const FrontendInputFile &Input,
97 CompilerInvocation OrigCI;
105 MigrationProcess(CompilerInvocation &CI,
/llvm-project/clang/unittests/Serialization/
H A DModuleCacheTest.cpp11 #include "clang/Frontend/CompilerInvocation.h"
92 std::unique_ptr<CompilerInvocation>
95 std::unique_ptr<CompilerInvocation> Invocation = in createInvocationAndEnableFree()
119 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F()
142 std::shared_ptr<CompilerInvocation> Invocation2 = in TEST_F()
169 std::shared_ptr<CompilerInvocation> Invocation = in TEST_F()
186 std::shared_ptr<CompilerInvocation> Invocation2 = in TEST_F()
/llvm-project/clang/lib/ARCMigrate/
H A DARCMT.cpp149 static bool HasARCRuntime(CompilerInvocation &origCI) { in HasARCRuntime()
171 static CompilerInvocation *
172 createInvocationForMigration(CompilerInvocation &origCI, in createInvocationForMigration()
174 std::unique_ptr<CompilerInvocation> CInvok; in createInvocationForMigration()
175 CInvok.reset(new CompilerInvocation(origCI)); in createInvocationForMigration()
236 CompilerInvocation &origCI, const FrontendInputFile &Input, in checkForManualIssues()
251 std::unique_ptr<CompilerInvocation> CInvok; in checkForManualIssues()
337 applyTransforms(CompilerInvocation &origCI, const FrontendInputFile &Input, in applyTransforms()
347 CompilerInvocation CInvokForCheck(origCI); in applyTransforms()
353 CompilerInvocation CInvo in applyTransforms()
[all...]
/llvm-project/clang-tools-extra/clangd/
H A DPreamble.h36 #include "clang/Frontend/CompilerInvocation.h"
75 CompilerInvocation &getCompilerInvocation() { return *Invocation; } in setStatCache()
82 std::shared_ptr<CompilerInvocation> Invocation;
157 buildPreamble(PathRef FileName, CompilerInvocation CI,
168 const CompilerInvocation &CI);
198 void apply(CompilerInvocation &CI) const;
H A DCompiler.h72 void disableUnsupportedOptions(CompilerInvocation &CI);
75 std::unique_ptr<CompilerInvocation>
90 std::unique_ptr<clang::CompilerInvocation>, const PrecompiledPreamble *,
H A DCompiler.cpp12 #include "clang/Frontend/CompilerInvocation.h"
46 void disableUnsupportedOptions(CompilerInvocation &CI) { in disableUnsupportedOptions()
94 std::unique_ptr<CompilerInvocation>
102 // In asserts builds, CompilerInvocation redundantly reads/parses cc1 args as in buildCompilerInvocation()
116 std::unique_ptr<CompilerInvocation> CI = createInvocation(ArgStrs, CIOpts); in buildCompilerInvocation()
129 prepareCompilerInstance(std::unique_ptr<clang::CompilerInvocation> CI, in prepareCompilerInstance()
/llvm-project/clang-tools-extra/clangd/index/
H A DStdLib.h33 class CompilerInvocation; variable
93 SymbolSlab indexStandardLibrary(std::unique_ptr<CompilerInvocation> Invocation,
100 std::unique_ptr<CompilerInvocation> CI,
/llvm-project/clang/lib/Frontend/
H A DCreateInvocationFromCommandLine.cpp1 //===--- CreateInvocationFromCommandLine.cpp - CompilerInvocation from Args ==//
30 std::unique_ptr<CompilerInvocation> in createInvocation()
107 auto CI = std::make_unique<CompilerInvocation>(); in createInvocation()
108 if (!CompilerInvocation::CreateFromArgs(*CI, CCArgs, *Diags, Args[0]) && in createInvocation()
/llvm-project/clang/lib/Tooling/
H A DTooling.cpp29 #include "clang/Frontend/CompilerInvocation.h"
171 CompilerInvocation *newInvocation(DiagnosticsEngine *Diagnostics, in newInvocation()
175 CompilerInvocation *Invocation = new CompilerInvocation; in newInvocation()
176 CompilerInvocation::CreateFromArgs(*Invocation, CC1Args, *Diagnostics, in newInvocation()
400 std::unique_ptr<CompilerInvocation> Invocation( in run()
424 std::unique_ptr<CompilerInvocation> Invocation( in run()
432 std::shared_ptr<CompilerInvocation> Invocation, in runInvocation()
446 std::shared_ptr<CompilerInvocation> Invocation, FileManager *Files, in runInvocation()
515 ("-resource-dir=" + CompilerInvocation in injectResourceDir()
[all...]
/llvm-project/clang/include/clang/Tooling/
H A DTooling.h54 class CompilerInvocation; variable
76 /// Interface to process a clang::CompilerInvocation.
86 runInvocation(std::shared_ptr<CompilerInvocation> Invocation,
103 bool runInvocation(std::shared_ptr<CompilerInvocation> Invocation,
298 std::shared_ptr<CompilerInvocation> Invocation,
518 /// Creates a \c CompilerInvocation.
519 CompilerInvocation *newInvocation(DiagnosticsEngine *Diagnostics,
/llvm-project/clang/tools/arcmt-test/
H A Darcmt-test.cpp123 CompilerInvocation CI; in checkForMigration()
124 if (!CompilerInvocation::CreateFromArgs(CI, Args, *Diags)) in checkForMigration()
161 CompilerInvocation origCI; in performTransformations()
162 if (!CompilerInvocation::CreateFromArgs(origCI, Args, *TopDiags)) in performTransformations()
348 resourcesPath = CompilerInvocation::GetResourcesPath(argv[0], MainAddr); in main()
/llvm-project/clang/include/clang/Tooling/DependencyScanning/
H A DModuleDepCollector.h15 #include "clang/Frontend/CompilerInvocation.h"
231 CompilerInvocation OriginalCI,
241 void applyDiscoveredDependencies(CompilerInvocation &CI);
307 void addModuleMapFiles(CompilerInvocation &CI,
310 void addModuleFiles(CompilerInvocation &CI,
/llvm-project/clang/unittests/AST/
H A DExternalASTSourceTest.cpp17 #include "clang/Frontend/CompilerInvocation.h"
52 auto Invocation = std::make_shared<CompilerInvocation>(); in testExternalASTSource()
56 CompilerInvocation::CreateFromArgs(*Invocation, Args, in testExternalASTSource()
/llvm-project/flang/include/flang/Frontend/
H A DCompilerInvocation.h1 //===- CompilerInvocation.h - Compiler Invocation Helper Data ---*- C -*-===//
67 class CompilerInvocation : public CompilerInvocationBase {
152 CompilerInvocation() = default; in getFortranOpts()
236 static bool createFromArgs(CompilerInvocation &res,
H A DCompilerInstance.h16 #include "flang/Frontend/CompilerInvocation.h"
47 std::shared_ptr<CompilerInvocation> invocation;
118 CompilerInvocation &getInvocation() {
124 void setInvocation(std::shared_ptr<CompilerInvocation> value);
191 /// CompilerInvocation object. in preprocessorOpts()
/llvm-project/clang-tools-extra/clang-include-fixer/
H A DIncludeFixer.h23 class CompilerInvocation; variable
44 runInvocation(std::shared_ptr<clang::CompilerInvocation> Invocation,

1234