| /llvm-project/clang-tools-extra/clangd/unittests/ |
| H A D | IndexActionTests.cpp | 82 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 D | RenameTests.cpp | 1559 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 D | FS.cpp | 19 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 D | XRefs.cpp | 225 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 D | FS.h | 42 PreambleFileStatusCache(llvm::StringRef MainFilePath); 67 std::string MainFilePath;
|
| H A D | XRefs.h | 66 llvm::StringRef MainFilePath,
|
| H A D | Preamble.h | 190 /// Returns the FileEntry for the preamble patch of MainFilePath in SM, if 192 static OptionalFileEntryRef getPatchEntry(llvm::StringRef MainFilePath,
|
| H A D | Preamble.cpp | 980 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 D | PreambleInNamedModulesTest.cpp | 69 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 D | PrecompiledPreamble.cpp | 500 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 D | ASTUnit.cpp | 155 /// 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 D | Rename.cpp | 215 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 D | Rename.h | 43 llvm::StringRef MainFilePath; member
|
| /llvm-project/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidy.h | 118 void exportReplacements(StringRef MainFilePath,
|
| H A D | ClangTidy.cpp | 633 void exportReplacements(const llvm::StringRef MainFilePath, in exportReplacements() argument 637 TUD.MainSourceFile = std::string(MainFilePath); in exportReplacements()
|