Home
last modified time | relevance | path

Searched refs:RelativePath (Results 1 – 25 of 49) sorted by relevance

12

/llvm-project/clang-tools-extra/clangd/index/remote/marshalling/
H A DMarshalling.cpp261 llvm::SmallString<256> RelativePath = llvm::StringRef(Path); in toProtobuf()
262 if (replace_path_prefix(RelativePath, LocalIndexRoot, "")) in toProtobuf()
264 convert_to_slash(RelativePath, Style::windows)); in toProtobuf()
370 Marshaller::relativePathToURI(llvm::StringRef RelativePath) { in fromProtobuf()
372 assert(RelativePath == convert_to_slash(RelativePath)); in toProtobuf()
373 if (RelativePath.empty()) in toProtobuf()
375 if (is_absolute(RelativePath, Style::posix)) in toProtobuf()
376 return error("RelativePath '{0}' is absolute.", RelativePath); in toProtobuf()
226 llvm::SmallString<256> RelativePath = llvm::StringRef(Path); toProtobuf() local
314 relativePathToURI(llvm::StringRef RelativePath) relativePathToURI() argument
396 auto RelativePath = uriToRelativePath(Location.FileURI); toProtobuf() local
415 auto RelativePath = uriToRelativePath(Header); toProtobuf() local
[all...]
H A DMarshalling.h75 /// Translates \p RelativePath into the absolute path and builds URI for the
77 /// \p RelativePath received from remote index server and \p IndexRoot is
81 llvm::Expected<std::string> relativePathToURI(llvm::StringRef RelativePath);
/llvm-project/clang-tools-extra/clang-tidy/llvmlibc/
H A DRestrictSystemLibcHeadersCheck.cpp36 StringRef RelativePath, const Module *SuggestedModule,
49 StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule, in InclusionDirective() argument
56 RelativePath, SuggestedModule, ModuleImported, FileType); in InclusionDirective()
/llvm-project/clang/lib/Lex/
H A DHeaderSearch.cpp473 SmallVectorImpl<char> *SearchPath, SmallVectorImpl<char> *RelativePath, in LookupFile() argument
492 if (RelativePath) { in LookupFile()
493 RelativePath->clear(); in LookupFile()
494 RelativePath->append(Filename.begin(), Filename.end()); in LookupFile()
503 return DoFrameworkLookup(Filename, HS, SearchPath, RelativePath, in LookupFile()
523 if (RelativePath) { in LookupFile()
524 RelativePath->clear(); in LookupFile()
525 RelativePath->append(Filename.begin(), Filename.end()); in LookupFile()
618 SmallVectorImpl<char> *RelativePath, Module *RequestingModule, in DoFrameworkLookup() argument
680 if (RelativePath) { in DoFrameworkLookup()
889 LookupFile(StringRef Filename,SourceLocation IncludeLoc,bool isAngled,ConstSearchDirIterator FromDir,ConstSearchDirIterator * CurDirArg,ArrayRef<std::pair<OptionalFileEntryRef,DirectoryEntryRef>> Includers,SmallVectorImpl<char> * SearchPath,SmallVectorImpl<char> * RelativePath,Module * RequestingModule,ModuleMap::KnownHeader * SuggestedModule,bool * IsMapped,bool * IsFrameworkFound,bool SkipCache,bool BuildSystemModule,bool OpenFile,bool CacheFailures) LookupFile() argument
1211 LookupSubframeworkHeader(StringRef Filename,FileEntryRef ContextFileEnt,SmallVectorImpl<char> * SearchPath,SmallVectorImpl<char> * RelativePath,Module * RequestingModule,ModuleMap::KnownHeader * SuggestedModule) LookupSubframeworkHeader() argument
[all...]
H A DPPLexerChange.cpp319 SmallString<128> RelativePath; in diagnoseMissingHeaderInUmbrellaDir()
320 computeRelativePath(FileMgr, *Dir, *Header, RelativePath); in diagnoseMissingHeaderInUmbrellaDir() local
322 << Mod.getFullModuleName() << RelativePath; in diagnoseMissingHeaderInUmbrellaDir()
H A DPPDirectives.cpp978 SmallVectorImpl<char> *RelativePath, in LookupFile()
1046 Includers, SearchPath, RelativePath, RequestingModule, in LookupFile()
1064 RelativePath, RequestingModule, SuggestedModule, IsMapped, in LookupFile()
1076 Filename, *CurFileEnt, SearchPath, RelativePath, RequestingModule,
1087 Filename, *CurFileEnt, SearchPath, RelativePath, in LookupEmbedFile()
2123 SmallVectorImpl<char> &RelativePath, SmallVectorImpl<char> &SearchPath, in LookupHeaderIncludeOrImport()
2141 Callbacks ? &SearchPath : nullptr, Callbacks ? &RelativePath : nullptr, in LookupHeaderIncludeOrImport()
2161 Callbacks ? &SearchPath : nullptr, Callbacks ? &RelativePath : nullptr, in LookupHeaderIncludeOrImport()
2193 Callbacks ? &RelativePath : nullptr, &SuggestedModule, &IsMapped, in LookupHeaderIncludeOrImport()
2298 SmallString<1024> RelativePath; in HandleHeaderIncludeOrImport()
956 LookupFile(SourceLocation FilenameLoc,StringRef Filename,bool isAngled,ConstSearchDirIterator FromDir,const FileEntry * FromFile,ConstSearchDirIterator * CurDirArg,SmallVectorImpl<char> * SearchPath,SmallVectorImpl<char> * RelativePath,ModuleMap::KnownHeader * SuggestedModule,bool * IsMapped,bool * IsFrameworkFound,bool SkipCache,bool OpenFile,bool CacheFailures) LookupFile() argument
2099 LookupHeaderIncludeOrImport(ConstSearchDirIterator * CurDir,StringRef & Filename,SourceLocation FilenameLoc,CharSourceRange FilenameRange,const Token & FilenameTok,bool & IsFrameworkFound,bool IsImportDecl,bool & IsMapped,ConstSearchDirIterator LookupFrom,const FileEntry * LookupFromFile,StringRef & LookupFilename,SmallVectorImpl<char> & RelativePath,SmallVectorImpl<char> & SearchPath,ModuleMap::KnownHeader & SuggestedModule,bool isAngled) LookupHeaderIncludeOrImport() argument
2274 SmallString<1024> RelativePath; HandleHeaderIncludeOrImport() local
[all...]
/llvm-project/clang-tools-extra/clang-tidy/portability/
H A DRestrictSystemIncludesCheck.cpp24 StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule, in InclusionDirective() argument
29 llvm::sys::path::append(FullPath, RelativePath); in InclusionDirective()
H A DRestrictSystemIncludesCheck.h53 StringRef RelativePath, const Module *SuggestedModule,
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousIncludeCheck.cpp29 StringRef RelativePath, const Module *SuggestedModule,
55 StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule, in InclusionDirective() argument
/llvm-project/clang/include/clang/Lex/
H A DDirectoryLookup.h157 /// \param RelativePath If not NULL, will be set to the path relative to
180 SmallVectorImpl<char> *RelativePath, Module *RequestingModule,
189 SmallVectorImpl<char> *RelativePath, Module *RequestingModule,
H A DPPCallbacks.h172 StringRef SearchPath, StringRef RelativePath, in InclusionDirective() argument
527 StringRef RelativePath, const Module *SuggestedModule, in InclusionDirective() argument
531 FilenameRange, File, SearchPath, RelativePath, in InclusionDirective()
534 FilenameRange, File, SearchPath, RelativePath, in InclusionDirective()
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DDuplicateIncludeCheck.cpp50 StringRef RelativePath, const Module *SuggestedModule,
80 StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule, in InclusionDirective() argument
/llvm-project/clang-tools-extra/clangd/unittests/remote/
H A DMarshallingTests.cpp438 auto RelativePath = ProtobufMarshaller.uriToRelativePath( in TEST() local
440 ASSERT_TRUE(bool(RelativePath)); in TEST()
445 RelativePath = WrongMarshaller.uriToRelativePath( in TEST()
447 EXPECT_FALSE(bool(RelativePath)); in TEST()
448 llvm::consumeError(RelativePath.takeError()); in TEST()
/llvm-project/clang/lib/Frontend/
H A DDependencyGraph.cpp52 StringRef RelativePath, const Module *SuggestedModule,
76 StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule, in InclusionDirective() argument
H A DModuleDependencyCollector.cpp58 StringRef RelativePath, const Module *SuggestedModule, in InclusionDirective()
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DDeprecatedHeadersCheck.cpp35 StringRef RelativePath, const Module *SuggestedModule,
182 StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule, in InclusionDirective() argument
/llvm-project/clang-tools-extra/clang-tidy/llvm/
H A DIncludeOrderCheck.cpp30 StringRef RelativePath, const Module *SuggestedModule,
85 StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule, in InclusionDirective() argument
/llvm-project/clang/unittests/Lex/
H A DPPCallbacksTest.cpp40 StringRef RelativePath, const Module *SuggestedModule, in InclusionDirective() argument
50 this->RelativePath = RelativePath.str(); in InclusionDirective()
63 SmallString<16> RelativePath; member in __anon1476b0c10111::InclusionDirectiveCallbacks
/llvm-project/llvm/lib/TextAPI/
H A DUtils.cpp77 SmallVectorImpl<char> &RelativePath) { in make_relative() argument
105 RelativePath.swap(Result); in make_relative()
/llvm-project/clang/lib/CodeGen/
H A DMacroPPCallbacks.h105 StringRef RelativePath, const Module *SuggestedModule,
/llvm-project/llvm/include/llvm/TextAPI/
H A DUtils.h69 SmallVectorImpl<char> &RelativePath);
/llvm-project/clang-tools-extra/clang-tidy/altera/
H A DKernelNameRestrictionCheck.cpp32 StringRef RelativePath, const Module *SuggestedModule,
/llvm-project/llvm/unittests/Support/
H A DLockFileManagerTest.cpp79 TEST(LockFileManagerTest, RelativePath) { in TEST() argument
/llvm-project/clang/lib/Tooling/
H A DTooling.cpp256 StringRef RelativePath(File); in getAbsolutePath() local
258 RelativePath.consume_front("./"); in getAbsolutePath()
260 SmallString<1024> AbsolutePath = RelativePath; in getAbsolutePath()
/llvm-project/clang-tools-extra/clang-tidy/
H A DExpandModularHeadersPPCallbacks.h71 StringRef SearchPath, StringRef RelativePath,

12