Home
last modified time | relevance | path

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

123

/llvm-project/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()
135 assert(!CI->getPreprocessorOpts().RetainRemappedFileBuffers && in prepareCompilerInstance()
144 CI->getPreprocessorOpts().addRemappedFile( in prepareCompilerInstance()
H A DPreamble.cpp379 Clang->getPreprocessorOpts().SingleFileParseMode = true; in scanPreamble()
380 Clang->getPreprocessorOpts().UsePredefines = false; in scanPreamble()
647 CI.getPreprocessorOpts().WriteCommentListToPCH = false; in buildPreamble()
943 auto &PPOpts = CI.getPreprocessorOpts();
/llvm-project/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.cpp85 invocation->getPreprocessorOpts().addRemappedFile( in TEST()
105 invocation->getPreprocessorOpts().addRemappedFile( in TEST()
127 invocation->getPreprocessorOpts().addRemappedFile( in TEST()
178 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
238 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
272 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
H A DOutputStreamTest.cpp27 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
51 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
81 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.cpp47 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
/llvm-project/clang/lib/Frontend/
H A DChainedIncludesSource.cpp93 std::vector<std::string> &includes = CI.getPreprocessorOpts().ChainedIncludes; in createChainedIncludesSource()
107 CInvok->getPreprocessorOpts().ChainedIncludes.clear(); in createChainedIncludesSource()
108 CInvok->getPreprocessorOpts().ImplicitPCHInclude.clear(); in createChainedIncludesSource()
109 CInvok->getPreprocessorOpts().DisablePCHOrModuleValidation = in createChainedIncludesSource()
111 CInvok->getPreprocessorOpts().Includes.clear(); in createChainedIncludesSource()
112 CInvok->getPreprocessorOpts().MacroIncludes.clear(); in createChainedIncludesSource()
113 CInvok->getPreprocessorOpts().Macros.clear(); in createChainedIncludesSource()
H A DFrontendAction.cpp636 CI.getPreprocessorOpts() = AST->getPreprocessorOpts(); in BeginSourceFile()
783 if (!CI.getPreprocessorOpts().ImplicitPCHInclude.empty()) { in BeginSourceFile()
785 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile()
801 CI.getTargetOpts(), CI.getPreprocessorOpts(), in BeginSourceFile()
965 if (!CI.getPreprocessorOpts().ChainedIncludes.empty()) { in BeginSourceFile()
974 !CI.getPreprocessorOpts().ImplicitPCHInclude.empty()) { in BeginSourceFile()
980 if (CI.getPreprocessorOpts().DumpDeserializedPCHDecls) { in BeginSourceFile()
985 if (!CI.getPreprocessorOpts().DeserializedPCHDeclsToErrorOn.empty()) { in BeginSourceFile()
988 CI.getPreprocessorOpts() in BeginSourceFile()
[all...]
H A DASTUnit.cpp161 const auto &PreprocessorOpts = Invocation.getPreprocessorOpts(); in getBufferForFileHandlingRemapping()
263 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in ~ASTUnit()
1594 CI->getPreprocessorOpts().RetainRemappedFileBuffers = true; in LoadFromCompilerInvocationAction()
1702 Invocation->getPreprocessorOpts().RetainRemappedFileBuffers = true; in LoadFromCompilerInvocation()
1806 CI->getPreprocessorOpts().addRemappedFile(RemappedFile.first, in LoadFromCommandLine()
1809 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in LoadFromCommandLine()
1888 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in Reparse()
1892 Invocation->getPreprocessorOpts().clearRemappedFiles(); in Reparse()
1894 Invocation->getPreprocessorOpts().addRemappedFile(RemappedFile.first, in Reparse()
2208 PreprocessorOptions &PreprocessorOpts = CCInvocation->getPreprocessorOpts(); in CodeComplete()
[all...]
/llvm-project/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/clang/unittests/Interpreter/
H A DIncrementalCompilerBuilderTest.cpp24 for (const auto &RB : CI.getPreprocessorOpts().RemappedFileBuffers) { in cleanupRemappedFileBuffers()
27 CI.getPreprocessorOpts().clearRemappedFiles(); in cleanupRemappedFileBuffers()
/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningWorker.cpp305 canonicalizeDefines(OriginalInvocation.getPreprocessorOpts()); in runInvocation()
334 ScanInstance.getPreprocessorOpts().AllowPCHWithDifferentModulesCachePath = in runInvocation()
360 ScanInstance.getPreprocessorOpts().DependencyDirectivesForFile = in runInvocation()
379 if (!ScanInstance.getPreprocessorOpts().ImplicitPCHInclude.empty()) in runInvocation()
381 ScanInstance.getPreprocessorOpts().ImplicitPCHInclude, in runInvocation()
433 ScanInstance.getPreprocessorOpts().ModulesCheckRelocated = false; in runInvocation()
/llvm-project/clang/include/clang/Frontend/
H A DCompilerInvocation.h135 const PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts() function
236 using CompilerInvocationBase::getPreprocessorOpts;
253 PreprocessorOptions &getPreprocessorOpts() { return *PPOpts; } in getPreprocessorOpts() function
H A DCompilerInstance.h340 PreprocessorOptions &getPreprocessorOpts() { in getPreprocessorOpts()
341 return Invocation->getPreprocessorOpts(); in getPreprocessorOpts()
343 const PreprocessorOptions &getPreprocessorOpts() const { in getPreprocessorOpts()
344 return Invocation->getPreprocessorOpts(); in getPreprocessorOpts()
339 PreprocessorOptions &getPreprocessorOpts() { getPreprocessorOpts() function
342 const PreprocessorOptions &getPreprocessorOpts() const { getPreprocessorOpts() function
/llvm-project/flang/include/flang/Frontend/
H A DCompilerInvocation.h61 PreprocessorOptions &getPreprocessorOpts() { return *preprocessorOpts; } in getPreprocessorOpts() function
62 const PreprocessorOptions &getPreprocessorOpts() const { in getPreprocessorOpts()
60 PreprocessorOptions &getPreprocessorOpts() { return *preprocessorOpts; } getPreprocessorOpts() function
H A DCompilerInstance.h213 return invocation->getPreprocessorOpts(); in getDiagnosticClient()
216 return invocation->getPreprocessorOpts();
/llvm-project/flang/lib/Frontend/
H A DFrontendAction.cpp82 if ((invoc.getPreprocessorOpts().macrosFlag == PPMacrosFlag::Include) || in beginSourceFile()
83 (invoc.getPreprocessorOpts().macrosFlag == PPMacrosFlag::Unknown && in beginSourceFile()
100 invoc.getPreprocessorOpts().preprocessIncludeLines; in beginSourceFile()
/llvm-project/clang/tools/clang-fuzzer/handle-cxx/
H A Dhandle_cxx.cpp43 Invocation->getPreprocessorOpts().addRemappedFile(FileName, in HandleCXX()
/llvm-project/clang/unittests/AST/
H A DExternalASTSourceTest.cpp53 Invocation->getPreprocessorOpts().addRemappedFile( in testExternalASTSource()
/llvm-project/clang-tools-extra/clangd/index/
H A DStdLib.cpp202 !CI->getPreprocessorOpts().ImplicitPCHInclude.empty()) { in indexStandardLibrary()
216 CI->getPreprocessorOpts().clearRemappedFiles(); in indexStandardLibrary()
/llvm-project/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/clang/unittests/CodeGen/
H A DTestCompiler.h63 compiler.getPreprocessorOpts(), compiler.getCodeGenOpts(), Context));
/llvm-project/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()
/llvm-project/clang/unittests/Serialization/
H A DForceCheckFileInputTest.cpp85 Invocation->getPreprocessorOpts().addRemappedFile("a.cppm", Buf->get()); in TEST_F()

123