Home
last modified time | relevance | path

Searched refs:MainFilePath (Results 1 – 15 of 15) sorted by relevance

/llvm-project/clang-tools-extra/clangd/unittests/
H A DIndexActionTests.cpp82 runIndexingAction(llvm::StringRef MainFilePath, in runIndexingAction() argument
98 Args.push_back(std::string(MainFilePath));
123 std::string MainFilePath = testPath("main.cpp"); in TEST_F() local
130 addFile(MainFilePath, MainCode); in TEST_F()
134 IndexFileIn IndexFile = runIndexingAction(MainFilePath); in TEST_F()
139 Pair(toUri(MainFilePath), in TEST_F()
151 std::string MainFilePath = testPath("main.cpp"); in TEST_F() local
160 addFile(MainFilePath, MainCode); in TEST_F()
163 IndexFileIn IndexFile = runIndexingAction(MainFilePath); in TEST_F()
169 Pair(toUri(MainFilePath), AllOf(isTU(), includesAre({HeaderPath}), in TEST_F()
[all …]
H A DRenameTests.cpp1559 auto MainFilePath = testPath("main.cc"); in TEST() local
1571 rename({MainCode.point(), NewName, AST, MainFilePath, in TEST()
1578 Pair(Eq(MainFilePath), Eq(expectedResult(MainCode, NewName))))); in TEST()
1587 Results = rename({MainCode.point(), NewName, AST, MainFilePath, in TEST()
1594 Pair(Eq(MainFilePath), Eq(expectedResult(MainCode, NewName))))); in TEST()
1630 Results = rename({MainCode.point(), NewName, AST, MainFilePath,
1639 auto MainFilePath = testPath("main.cc"); in TEST()
1687 auto Results = rename({MainCode.point(), NewName, AST, MainFilePath, in TEST()
1694 Pair(Eq(MainFilePath), Eq(expectedResult(MainCode, NewName))))); in TEST()
1633 auto MainFilePath = testPath("main.cc"); TEST() local
/llvm-project/clang-tools-extra/clangd/
H A DFS.cpp19 PreambleFileStatusCache::PreambleFileStatusCache(llvm::StringRef MainFilePath){ in PreambleFileStatusCache() argument
20 assert(llvm::sys::path::is_absolute(MainFilePath)); in PreambleFileStatusCache()
21 llvm::SmallString<256> MainFileCanonical(MainFilePath); in PreambleFileStatusCache()
23 this->MainFilePath = std::string(MainFileCanonical); in PreambleFileStatusCache()
35 if (PathStore == MainFilePath) in update()
H A DXRefs.cpp225 llvm::StringRef MainFilePath) { in makeLocation()
231 URIForFile::canonicalize(Inc.Resolved, MainFilePath), Range{}}; in makeLocation()
244 llvm::StringRef MainFilePath) { in locateFileReferent()
247 makeLocation(AST.getASTContext(), M->NameLoc, MainFilePath)) { in locateFileReferent()
293 llvm::StringRef MainFilePath) { in getPreferredDecl()
313 indexToLSPLocation(Object.CanonicalDeclaration, MainFilePath); in findImplementors()
321 auto DefLoc = indexToLSPLocation(Object.Definition, MainFilePath); in findImplementors()
335 llvm::StringRef MainFilePath) { in findImplementors()
353 if (auto Loc = toLSPLocation(Sym.CanonicalDeclaration, MainFilePath)) in enhanceLocatedSymbolsFromIndex()
360 MainFilePath)) in enhanceLocatedSymbolsFromIndex()
238 locateFileReferent(const Position & Pos,ParsedAST & AST,llvm::StringRef MainFilePath) locateFileReferent() argument
257 locateMacroReferent(const syntax::Token & TouchedIdentifier,ParsedAST & AST,llvm::StringRef MainFilePath) locateMacroReferent() argument
306 findImplementors(llvm::DenseSet<SymbolID> IDs,RelationKind Predicate,const SymbolIndex * Index,llvm::StringRef MainFilePath) findImplementors() argument
348 enhanceLocatedSymbolsFromIndex(llvm::MutableArrayRef<LocatedSymbol> Result,const SymbolIndex * Index,llvm::StringRef MainFilePath) enhanceLocatedSymbolsFromIndex() argument
394 locateASTReferent(SourceLocation CurLoc,const syntax::Token * TouchedIdentifier,ParsedAST & AST,llvm::StringRef MainFilePath,const SymbolIndex * Index,ASTNodeKind & NodeKind) locateASTReferent() argument
501 auto MainFilePath = AST.tuPath(); locateSymbolForType() local
562 locateSymbolTextually(const SpelledWord & Word,ParsedAST & AST,const SymbolIndex * Index,llvm::StringRef MainFilePath,ASTNodeKind NodeKind) locateSymbolTextually() argument
763 auto MainFilePath = AST.tuPath(); locateSymbolAt() local
1380 auto MainFilePath = AST.tuPath(); findReferences() local
1600 auto MainFilePath = AST.tuPath(); getSymbolInfo() local
[all...]
H A DFS.h42 PreambleFileStatusCache(llvm::StringRef MainFilePath);
67 std::string MainFilePath;
H A DXRefs.h66 llvm::StringRef MainFilePath,
H A DPreamble.h190 /// Returns the FileEntry for the preamble patch of MainFilePath in SM, if
192 static OptionalFileEntryRef getPatchEntry(llvm::StringRef MainFilePath,
H A DPreamble.cpp980 OptionalFileEntryRef PreamblePatch::getPatchEntry(llvm::StringRef MainFilePath,
982 auto PatchFilePath = getPatchName(MainFilePath);
965 getPatchEntry(llvm::StringRef MainFilePath,const SourceManager & SM) getPatchEntry() argument
/llvm-project/clang/unittests/Serialization/
H A DPreambleInNamedModulesTest.cpp69 PathType MainFilePath; in TEST_F() local
76 MainFilePath); in TEST_F()
88 TestDir.c_str(), MainFilePath.c_str()}; in TEST_F()
94 llvm::MemoryBuffer::getFile(MainFilePath, /*IsText=*/true); in TEST_F()
/llvm-project/clang/lib/Frontend/
H A DPrecompiledPreamble.cpp500 StringRef MainFilePath = FrontendOpts.Inputs[0].getFile(); in Build() local
502 MainFileBuffer->getBuffer().slice(0, Bounds.Size), MainFilePath); in Build()
505 PreprocessorOpts.addRemappedFile(MainFilePath, PreambleInputBuffer.get()); in Build()
509 PreprocessorOpts.addRemappedFile(MainFilePath, in Build()
772 auto MainFilePath = CI.getFrontendOpts().Inputs[0].getFile(); in configurePreamble() local
773 PreprocessorOpts.addRemappedFile(MainFilePath, MainFileBuffer); in configurePreamble()
H A DASTUnit.cpp155 /// Get a source buffer for \p MainFilePath, handling all file-to-file
1348 auto MainFilePath = in getMainBufferWithPrecompiledPreamble()
1352 MainFilePath, UserFilesAreVolatile); in getMainBufferWithPrecompiledPreamble()
1344 auto MainFilePath = getMainBufferWithPrecompiledPreamble() local
/llvm-project/clang-tools-extra/clangd/refactor/
H A DRename.cpp215 StringRef MainFilePath, in renameable() argument
246 bool MainFileIsHeader = isHeaderFile(MainFilePath, ASTCtx.getLangOpts()); in renameable()
921 renameOutsideFile(const NamedDecl &RenameDecl, llvm::StringRef MainFilePath, in renameOutsideFile() argument
925 auto AffectedFiles = findOccurrencesOutsideFile(RenameDecl, MainFilePath, in renameOutsideFile()
1075 renameable(RenameDecl, RInputs.MainFilePath, RInputs.Index, Opts); in rename()
1132 {std::make_pair(RInputs.MainFilePath, std::move(MainFileEdits))}); in rename()
1144 RenameDecl, RInputs.MainFilePath, RInputs.NewName, *RInputs.Index, in rename()
1152 Result.GlobalChanges.try_emplace(RInputs.MainFilePath, in rename()
H A DRename.h43 llvm::StringRef MainFilePath; member
/llvm-project/clang-tools-extra/clang-tidy/
H A DClangTidy.h118 void exportReplacements(StringRef MainFilePath,
H A DClangTidy.cpp633 void exportReplacements(const llvm::StringRef MainFilePath, in exportReplacements() argument
637 TUD.MainSourceFile = std::string(MainFilePath); in exportReplacements()