llvm::Regex(
"/(.+)\\.framework/(.+)?Headers/(.+)");
21std::string Pattern =
"/include/";
22 autoPathPrefix = FullPath.find(Pattern);
23 if(PathPrefix != StringRef::npos) {
24PathPrefix += Pattern.size();
25 returnFullPath.drop_front(PathPrefix).str();
32 if(Matches.size() != 4)
35 returnMatches[1].drop_front(Matches[1].rfind(
'/') + 1).str() +
"/"+
40 returnStringSwitch<bool>(sys::path::extension(
Path))
41.Cases(
".h",
".H",
".hh",
".hpp",
".hxx",
true)
49 for(llvm::vfs::recursive_directory_iterator i(FS, Directory, EC), ie;
50i != ie; i.increment(EC)) {
52 returnerrorCodeToError(EC);
55 if(FS.status(i->path()) == std::errc::no_such_file_or_directory)
58StringRef
Path= i->path();
60Files.emplace_back(
Path);
73 boolMatch = Rule.match(Header.
getPath());
81 autoRule = MachO::createRegexFromGlob(GlobString);
83 returnRule.takeError();
85 returnstd::make_unique<HeaderGlob>(GlobString, std::move(*Rule),
Type);
llvm::MachO::PathSeq PathSeq
Implements support for file system lookup, file system caching, and directory search management.
llvm::vfs::FileSystem & getVirtualFileSystem() const
The base class of the type hierarchy.
The DirectoryScanner for collecting library files on the file system.
llvm::Expected< PathSeq > enumerateFiles(clang::FileManager &FM, StringRef Directory)
Given input directory, collect all header files.
std::optional< std::string > createIncludeHeaderName(const StringRef FullPath)
Assemble expected way header will be included by clients.
const Regex Rule("(.+)/(.+)\\.framework/")
bool isHeaderFile(StringRef Path)
Determine if Path is a header file.
Diagnostic wrappers for TextAPI types for error reporting.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4