Home
last modified time | relevance | path

Searched refs:getPreprocessorOpts (Results 1 – 25 of 55) sorted by relevance

123

/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DCompiler.cpp64 CI.getPreprocessorOpts().ImplicitPCHInclude.clear(); in disableUnsupportedOptions()
65 CI.getPreprocessorOpts().PrecompiledPreambleBytes = {0, false}; in disableUnsupportedOptions()
66 CI.getPreprocessorOpts().PCHThroughHeader.clear(); in disableUnsupportedOptions()
67 CI.getPreprocessorOpts().PCHWithHdrStop = false; in disableUnsupportedOptions()
68 CI.getPreprocessorOpts().PCHWithHdrStopCreate = false; in disableUnsupportedOptions()
71 CI.getPreprocessorOpts().DisablePragmaDebugCrash = true; in disableUnsupportedOptions()
126 assert(!CI->getPreprocessorOpts().RetainRemappedFileBuffers && in prepareCompilerInstance()
135 CI->getPreprocessorOpts().addRemappedFile( in prepareCompilerInstance()
H A DPreamble.cpp339 Clang->getPreprocessorOpts().SingleFileParseMode = true; in scanPreamble()
340 Clang->getPreprocessorOpts().UsePredefines = false; in scanPreamble()
520 CI.getPreprocessorOpts().WriteCommentListToPCH = false; in buildPreamble()
725 auto &PPOpts = CI.getPreprocessorOpts(); in apply()
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DUtilsTest.cpp57 EXPECT_THAT(CI->getPreprocessorOpts().Includes, ElementsAre("foo.h")); in TEST()
58 EXPECT_EQ(CI->getPreprocessorOpts().ImplicitPCHInclude, ""); in TEST()
63 EXPECT_THAT(CI->getPreprocessorOpts().Includes, ElementsAre()); in TEST()
64 EXPECT_EQ(CI->getPreprocessorOpts().ImplicitPCHInclude, "foo.h.pch"); in TEST()
H A DFrontendActionTest.cpp84 invocation->getPreprocessorOpts().addRemappedFile( in TEST()
104 invocation->getPreprocessorOpts().addRemappedFile( in TEST()
126 invocation->getPreprocessorOpts().addRemappedFile( in TEST()
177 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
237 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
270 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
H A DOutputStreamTest.cpp26 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
50 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
79 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
H A DPCHPreambleTest.cpp92 CI->getPreprocessorOpts().RemappedFileBuffers = GetRemappedFiles(); in ParseAST()
94 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in ParseAST()
H A DCodeGenActionTest.cpp46 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DChainedIncludesSource.cpp116 std::vector<std::string> &includes = CI.getPreprocessorOpts().ChainedIncludes; in createChainedIncludesSource()
130 CInvok->getPreprocessorOpts().ChainedIncludes.clear(); in createChainedIncludesSource()
131 CInvok->getPreprocessorOpts().ImplicitPCHInclude.clear(); in createChainedIncludesSource()
132 CInvok->getPreprocessorOpts().DisablePCHOrModuleValidation = in createChainedIncludesSource()
134 CInvok->getPreprocessorOpts().Includes.clear(); in createChainedIncludesSource()
135 CInvok->getPreprocessorOpts().MacroIncludes.clear(); in createChainedIncludesSource()
136 CInvok->getPreprocessorOpts().Macros.clear(); in createChainedIncludesSource()
H A DFrontendAction.cpp618 CI.getPreprocessorOpts() = AST->getPreprocessorOpts(); in BeginSourceFile()
757 if (!CI.getPreprocessorOpts().ImplicitPCHInclude.empty()) { in BeginSourceFile()
759 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile()
937 if (!CI.getPreprocessorOpts().ChainedIncludes.empty()) { in BeginSourceFile()
946 !CI.getPreprocessorOpts().ImplicitPCHInclude.empty()) { in BeginSourceFile()
952 if (CI.getPreprocessorOpts().DumpDeserializedPCHDecls) { in BeginSourceFile()
960 CI.getPreprocessorOpts().DeserializedPCHDeclsToErrorOn, in BeginSourceFile()
964 if (!CI.getPreprocessorOpts().ImplicitPCHInclude.empty()) { in BeginSourceFile()
966 CI.getPreprocessorOpts().ImplicitPCHInclude, in BeginSourceFile()
967 CI.getPreprocessorOpts().DisablePCHOrModuleValidation, in BeginSourceFile()
[all …]
H A DCompilerInstance.cpp229 const PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in collectIncludePCH()
448 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor()
615 bool Preamble = getPreprocessorOpts().PrecompiledPreambleBytes.first != 0; in createPCHExternalASTSource()
1149 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts();
1177 = ImportingInstance.getInvocation().getPreprocessorOpts();
1657 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createASTReader()
1920 if (getPreprocessorOpts().FailedModules && in findOrCompileModuleAndReadAST()
1921 getPreprocessorOpts().FailedModules->hasAlreadyFailed(ModuleName)) { in findOrCompileModuleAndReadAST()
1932 if (getPreprocessorOpts().FailedModules) in findOrCompileModuleAndReadAST()
1933 getPreprocessorOpts().FailedModules->addFailed(ModuleName); in findOrCompileModuleAndReadAST()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DCompilerTests.cpp31 ->getPreprocessorOpts() in TEST()
38 ->getPreprocessorOpts() in TEST()
47 ->getPreprocessorOpts() in TEST()
51 ->getPreprocessorOpts() in TEST()
/llvm-project-15.0.7/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningWorker.cpp165 ScanInstance.getPreprocessorOpts().AllowPCHWithDifferentModulesCachePath = in runInvocation()
179 if (!ScanInstance.getPreprocessorOpts().ImplicitPCHInclude.empty()) in runInvocation()
181 ScanInstance.getPreprocessorOpts().ImplicitPCHInclude, ScanInstance, in runInvocation()
194 ScanInstance.getPreprocessorOpts().DependencyDirectivesForFile = in runInvocation()
H A DModuleDepCollector.cpp51 CI.getPreprocessorOpts().resetNonModularOptions(); in makeInvocationForModuleBuildWithoutPaths()
226 if (!MDC.ScanInstance.getPreprocessorOpts().ImplicitPCHInclude.empty()) in EndOfMainFile()
228 MDC.ScanInstance.getPreprocessorOpts().ImplicitPCHInclude); in EndOfMainFile()
/llvm-project-15.0.7/flang/include/flang/Frontend/
H A DCompilerInvocation.h54 PreprocessorOptions &getPreprocessorOpts() { return *preprocessorOpts; } in getPreprocessorOpts() function
55 const PreprocessorOptions &getPreprocessorOpts() const { in getPreprocessorOpts() function
H A DCompilerInstance.h179 return invocation->getPreprocessorOpts(); in preprocessorOpts()
182 return invocation->getPreprocessorOpts(); in preprocessorOpts()
/llvm-project-15.0.7/clang/include/clang/Frontend/
H A DCompilerInstance.h306 PreprocessorOptions &getPreprocessorOpts() { in getPreprocessorOpts() function
307 return Invocation->getPreprocessorOpts(); in getPreprocessorOpts()
309 const PreprocessorOptions &getPreprocessorOpts() const { in getPreprocessorOpts() function
310 return Invocation->getPreprocessorOpts(); in getPreprocessorOpts()
H A DCompilerInvocation.h126 PreprocessorOptions &getPreprocessorOpts() { return *PreprocessorOpts; } in getPreprocessorOpts() function
128 const PreprocessorOptions &getPreprocessorOpts() const { in getPreprocessorOpts() function
/llvm-project-15.0.7/flang/lib/Frontend/
H A DFrontendAction.cpp82 if ((invoc.getPreprocessorOpts().macrosFlag == PPMacrosFlag::Include) || in beginSourceFile()
83 (invoc.getPreprocessorOpts().macrosFlag == PPMacrosFlag::Unknown && in beginSourceFile()
H A DCompilerInvocation.cpp51 preprocessorOpts(new PreprocessorOptions(x.getPreprocessorOpts())) {} in CompilerInvocationBase()
649 parsePreprocessorArgs(res.getPreprocessorOpts(), args); in createFromArgs()
664 auto &ppOpts = this->getPreprocessorOpts(); in collectMacroDefinitions()
737 const auto &preprocessorOptions = getPreprocessorOpts(); in setFortranOpts()
/llvm-project-15.0.7/clang/tools/clang-fuzzer/handle-cxx/
H A Dhandle_cxx.cpp43 Invocation->getPreprocessorOpts().addRemappedFile(FileName, in HandleCXX()
/llvm-project-15.0.7/clang/unittests/AST/
H A DExternalASTSourceTest.cpp52 Invocation->getPreprocessorOpts().addRemappedFile( in testExternalASTSource()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DStdLib.cpp213 !CI->getPreprocessorOpts().ImplicitPCHInclude.empty()) { in indexStandardLibrary()
227 CI->getPreprocessorOpts().clearRemappedFiles(); in indexStandardLibrary()
/llvm-project-15.0.7/clang/unittests/CodeGen/
H A DTestCompiler.h62 compiler.getPreprocessorOpts(), compiler.getCodeGenOpts(), Context));
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DARCMT.cpp176 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in createInvocationForMigration()
193 CInvok->getPreprocessorOpts().addMacroDef(define); in createInvocationForMigration()
529 Remapper.applyMappings(CInvok->getPreprocessorOpts()); in applyTransform()
/llvm-project-15.0.7/polly/lib/External/isl/interface/
H A Dextract_interface.cc428 PreprocessorOptions &PO = Clang->getPreprocessorOpts(); in set_lang_defaults()
553 PreprocessorOptions &PO = Clang->getPreprocessorOpts(); in main()

123