Home
last modified time | relevance | path

Searched refs:HSOpts (Results 1 – 16 of 16) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DInitHeaderSearch.cpp79 const HeaderSearchOptions &HSOpts);
88 const HeaderSearchOptions &HSOpts);
174 const HeaderSearchOptions &HSOpts) { in AddDefaultCIncludePaths() argument
178 if (HSOpts.UseStandardSystemIncludes) { in AddDefaultCIncludePaths()
185 if (HSOpts.UseBuiltinIncludes) { in AddDefaultCIncludePaths()
188 SmallString<128> P = StringRef(HSOpts.ResourceDir); in AddDefaultCIncludePaths()
195 if (!HSOpts.UseStandardSystemIncludes) in AddDefaultCIncludePaths()
255 const HeaderSearchOptions &HSOpts) { in AddDefaultIncludePaths() argument
265 HSOpts.UseStandardCXXIncludes && HSOpts.UseStandardSystemIncludes) { in AddDefaultIncludePaths()
266 if (HSOpts.UseLibcxx) { in AddDefaultIncludePaths()
[all …]
H A DHeaderSearch.cpp83 HeaderSearch::HeaderSearch(const HeaderSearchOptions &HSOpts, in HeaderSearch() argument
87 : HSOpts(HSOpts), Diags(Diags), FileMgr(SourceMgr.getFileManager()), in HeaderSearch()
131 std::vector<bool> UserEntryUsage(HSOpts.UserEntries.size()); in computeUserEntryUsage()
213 auto i(HSOpts.PrebuiltModuleFiles.find(ModuleName)); in getPrebuiltModuleFileName()
214 if (i != HSOpts.PrebuiltModuleFiles.end()) in getPrebuiltModuleFileName()
217 if (FileMapOnly || HSOpts.PrebuiltModulePaths.empty()) in getPrebuiltModuleFileName()
222 for (const std::string &Dir : HSOpts.PrebuiltModulePaths) { in getPrebuiltModuleFileName()
246 StringRef ModuleCacheHash = HSOpts.DisableModuleHash ? "" : getModuleHash(); in getPrebuiltImplicitModuleFileName()
247 for (const std::string &Dir : HSOpts.PrebuiltModulePaths) { in getPrebuiltImplicitModuleFileName()
275 if (HSOpts.DisableModuleHash) { in getCachedModuleFileNameImpl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DFrontendActions.cpp711 bool ReadHeaderSearchOptions(const HeaderSearchOptions &HSOpts, in ReadHeaderSearchOptions() argument
716 Out.indent(4) << "System root [-isysroot=]: '" << HSOpts.Sysroot << "'\n"; in ReadHeaderSearchOptions()
717 Out.indent(4) << "Resource dir [ -resource-dir=]: '" << HSOpts.ResourceDir << "'\n"; in ReadHeaderSearchOptions()
719 DUMP_BOOLEAN(HSOpts.UseBuiltinIncludes, in ReadHeaderSearchOptions()
721 DUMP_BOOLEAN(HSOpts.UseStandardSystemIncludes, in ReadHeaderSearchOptions()
723 DUMP_BOOLEAN(HSOpts.UseStandardCXXIncludes, in ReadHeaderSearchOptions()
725 DUMP_BOOLEAN(HSOpts.UseLibcxx, in ReadHeaderSearchOptions()
730 bool ReadHeaderSearchPaths(const HeaderSearchOptions &HSOpts, in ReadHeaderSearchPaths() argument
734 for (const auto &Entry : HSOpts.UserEntries) in ReadHeaderSearchPaths()
737 for (const auto &Prefix : HSOpts.SystemHeaderPrefixes) in ReadHeaderSearchPaths()
[all …]
H A DASTUnit.cpp516 HeaderSearchOptions &HSOpts; member in __anone37b80710211::ASTInfoCollector
527 HeaderSearchOptions &HSOpts, PreprocessorOptions &PPOpts, in ASTInfoCollector() argument
531 : PP(PP), Context(Context), HSOpts(HSOpts), PPOpts(PPOpts), in ASTInfoCollector()
558 bool ReadHeaderSearchOptions(const HeaderSearchOptions &HSOpts, in ReadHeaderSearchOptions() argument
564 this->HSOpts.ForceCheckCXX20ModulesInputFiles; in ReadHeaderSearchOptions()
565 llvm::SaveAndRestore X(this->HSOpts.UserEntries); in ReadHeaderSearchOptions()
566 llvm::SaveAndRestore Y(this->HSOpts.SystemHeaderPrefixes); in ReadHeaderSearchOptions()
567 llvm::SaveAndRestore Z(this->HSOpts.VFSOverlayFiles); in ReadHeaderSearchOptions()
569 this->HSOpts = HSOpts; in ReadHeaderSearchOptions()
570 this->HSOpts.ForceCheckCXX20ModulesInputFiles = in ReadHeaderSearchOptions()
[all …]
H A DCompilerInstance.cpp632 const HeaderSearchOptions &HSOpts = in createPCHExternalASTSource() local
639 HSOpts.ModulesValidateSystemHeaders, in createPCHExternalASTSource()
640 HSOpts.ModulesForceValidateUserHeaders, in createPCHExternalASTSource()
641 HSOpts.ValidateASTInputFilesContent, UseGlobalModuleIndex)); in createPCHExternalASTSource()
1168 HeaderSearchOptions &HSOpts = Invocation->getHeaderSearchOpts(); in cloneForModuleCompileImpl() local
1170 [&HSOpts](const std::pair<std::string, bool> &def) { in cloneForModuleCompileImpl()
1172 return HSOpts.ModulesIgnoreMacros.contains( in cloneForModuleCompileImpl()
1193 HSOpts.ModulesHashContent = true; in cloneForModuleCompileImpl()
1646 static void pruneModuleCache(const HeaderSearchOptions &HSOpts) { in pruneModuleCache() argument
1649 TimestampFile = HSOpts.ModuleCachePath; in pruneModuleCache()
[all …]
H A DCompilerInvocation.cpp129 HSOpts(std::make_shared<HeaderSearchOptions>()), in CompilerInvocationBase()
146 HSOpts = make_shared_copy(X.getHeaderSearchOpts()); in deep_copy_assign()
166 HSOpts = X.HSOpts; in shallow_copy_assign()
211 return ensureOwned(HSOpts); in getMutHeaderSearchOpts()
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningWorker.cpp66 static bool checkHeaderSearchPaths(const HeaderSearchOptions &HSOpts, in checkHeaderSearchPaths() argument
71 if (HSOpts.VFSOverlayFiles != ExistingHSOpts.VFSOverlayFiles) { in checkHeaderSearchPaths()
82 VFSNote(0, HSOpts.VFSOverlayFiles); in checkHeaderSearchPaths()
100 const HeaderSearchOptions &HSOpts, in PrebuiltModuleListener() argument
105 PrebuiltModulesASTMap(PrebuiltModulesASTMap), ExistingHSOpts(HSOpts), in PrebuiltModuleListener()
161 bool ReadHeaderSearchOptions(const HeaderSearchOptions &HSOpts, in ReadHeaderSearchOptions() argument
172 PrebuiltModule.setInStableDir(areOptionsInStableDir(StableDirs, HSOpts)); in ReadHeaderSearchOptions()
178 bool ReadHeaderSearchPaths(const HeaderSearchOptions &HSOpts, in ReadHeaderSearchPaths() argument
187 llvm::StringSet<>(llvm::from_range, HSOpts.VFSOverlayFiles)); in ReadHeaderSearchPaths()
190 HSOpts, ExistingHSOpts, Complain ? &Diags : nullptr, ExistingLangOpts); in ReadHeaderSearchPaths()
H A DModuleDepCollector.cpp251 const HeaderSearchOptions &HSOpts) { in areOptionsInStableDir() argument
252 assert(isPathInStableDir(Directories, HSOpts.Sysroot) && in areOptionsInStableDir()
255 assert(isPathInStableDir(Directories, HSOpts.ResourceDir) && in areOptionsInStableDir()
258 for (const auto &Entry : HSOpts.UserEntries) { in areOptionsInStableDir()
265 for (const auto &SysPrefix : HSOpts.SystemHeaderPrefixes) { in areOptionsInStableDir()
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DCompilerInvocation.h86 std::shared_ptr<HeaderSearchOptions> HSOpts; variable
134 const HeaderSearchOptions &getHeaderSearchOpts() const { return *HSOpts; } in getHeaderSearchOpts()
252 HeaderSearchOptions &getHeaderSearchOpts() { return *HSOpts; } in getHeaderSearchOpts()
H A DASTUnit.h124 std::unique_ptr<HeaderSearchOptions> HSOpts; variable
482 assert(HSOpts && "ASTUnit does not have header search options"); in getHeaderSearchOpts()
483 return *HSOpts; in getHeaderSearchOpts()
712 const HeaderSearchOptions &HSOpts, const LangOptions *LangOpts = nullptr,
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DHeaderSearch.h244 const HeaderSearchOptions &HSOpts; variable
376 HeaderSearch(const HeaderSearchOptions &HSOpts, SourceManager &SourceMgr,
384 const HeaderSearchOptions &getHeaderSearchOpts() const { return HSOpts; } in getHeaderSearchOpts()
985 const HeaderSearchOptions &HSOpts,
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp1358 const auto &HSOpts = PP.getHeaderSearchInfo().getHeaderSearchOpts(); in writeUnhashedControlBlock() local
1363 if (!HSOpts.ModulesSkipDiagnosticOptions) { in writeUnhashedControlBlock()
1381 if (!HSOpts.ModulesSkipHeaderSearchPaths) { in writeUnhashedControlBlock()
1383 Record.push_back(HSOpts.UserEntries.size()); in writeUnhashedControlBlock()
1384 for (unsigned I = 0, N = HSOpts.UserEntries.size(); I != N; ++I) { in writeUnhashedControlBlock()
1385 const HeaderSearchOptions::Entry &Entry = HSOpts.UserEntries[I]; in writeUnhashedControlBlock()
1393 Record.push_back(HSOpts.SystemHeaderPrefixes.size()); in writeUnhashedControlBlock()
1394 for (unsigned I = 0, N = HSOpts.SystemHeaderPrefixes.size(); I != N; ++I) { in writeUnhashedControlBlock()
1395 AddString(HSOpts.SystemHeaderPrefixes[I].Prefix, Record); in writeUnhashedControlBlock()
1396 Record.push_back(HSOpts.SystemHeaderPrefixes[I].IsSystemHeader); in writeUnhashedControlBlock()
[all …]
H A DASTReader.cpp201 const HeaderSearchOptions &HSOpts, StringRef ModuleFilename, in ReadHeaderSearchOptions() argument
203 return First->ReadHeaderSearchOptions(HSOpts, ModuleFilename, in ReadHeaderSearchOptions()
205 Second->ReadHeaderSearchOptions(HSOpts, ModuleFilename, in ReadHeaderSearchOptions()
886 bool PCHValidator::ReadHeaderSearchOptions(const HeaderSearchOptions &HSOpts, in ReadHeaderSearchOptions() argument
2733 const HeaderSearchOptions &HSOpts = in getInputFile() local
2738 if (F.StandardCXXModule && HSOpts.ForceCheckCXX20ModulesInputFiles) { in getInputFile()
2842 if (HSOpts.ForceCheckCXX20ModulesInputFiles && ValidateASTInputFilesContent && in getInputFile()
3086 const HeaderSearchOptions &HSOpts = in ReadControlBlock() local
3101 if (HSOpts.ModulesValidateOncePerBuildSession && in ReadControlBlock()
3102 F.InputFilesValidationTimestamp > HSOpts.BuildSessionTimestamp && in ReadControlBlock()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/DependencyScanning/
H A DModuleDepCollector.h399 const HeaderSearchOptions &HSOpts);
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h176 virtual bool ReadHeaderSearchOptions(const HeaderSearchOptions &HSOpts, in ReadHeaderSearchOptions() argument
192 virtual bool ReadHeaderSearchPaths(const HeaderSearchOptions &HSOpts, in ReadHeaderSearchPaths() argument
292 bool ReadHeaderSearchOptions(const HeaderSearchOptions &HSOpts,
334 bool ReadHeaderSearchOptions(const HeaderSearchOptions &HSOpts,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendUtil.cpp365 const auto &HSOpts = CI.getHeaderSearchOpts(); in initTargetOptions() local
516 for (const auto &Entry : HSOpts.UserEntries) in initTargetOptions()
522 Entry.IgnoreSysRoot ? Entry.Path : HSOpts.Sysroot + Entry.Path); in initTargetOptions()