Home
last modified time | relevance | path

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

/external/clang/lib/Rewrite/
DDeltaTree.cpp106 bool DoInsertion(unsigned FileIndex, int Delta, InsertResult *InsertRes);
179 bool DeltaTreeNode::DoInsertion(unsigned FileIndex, int Delta, in DoInsertion() argument
186 while (i != e && FileIndex > getValue(i).FileLoc) in DoInsertion()
191 if (i != e && getValue(i).FileLoc == FileIndex) { in DoInsertion()
208 Values[i] = SourceDelta::get(FileIndex, Delta); in DoInsertion()
218 if (InsertRes->Split.FileLoc > FileIndex) in DoInsertion()
219 InsertRes->LHS->DoInsertion(FileIndex, Delta, nullptr /*can't fail*/); in DoInsertion()
221 InsertRes->RHS->DoInsertion(FileIndex, Delta, nullptr /*can't fail*/); in DoInsertion()
227 if (!IN->Children[i]->DoInsertion(FileIndex, Delta, InsertRes)) in DoInsertion()
404 int DeltaTree::getDeltaAt(unsigned FileIndex) const { in getDeltaAt()
[all …]
/external/llvm-project/clang/lib/Rewrite/
DDeltaTree.cpp109 bool DoInsertion(unsigned FileIndex, int Delta, InsertResult *InsertRes);
184 bool DeltaTreeNode::DoInsertion(unsigned FileIndex, int Delta, in DoInsertion() argument
191 while (i != e && FileIndex > getValue(i).FileLoc) in DoInsertion()
196 if (i != e && getValue(i).FileLoc == FileIndex) { in DoInsertion()
213 Values[i] = SourceDelta::get(FileIndex, Delta); in DoInsertion()
223 if (InsertRes->Split.FileLoc > FileIndex) in DoInsertion()
224 InsertRes->LHS->DoInsertion(FileIndex, Delta, nullptr /*can't fail*/); in DoInsertion()
226 InsertRes->RHS->DoInsertion(FileIndex, Delta, nullptr /*can't fail*/); in DoInsertion()
232 if (!IN->Children[i]->DoInsertion(FileIndex, Delta, InsertRes)) in DoInsertion()
408 int DeltaTree::getDeltaAt(unsigned FileIndex) const { in getDeltaAt()
[all …]
/external/llvm-project/clang-tools-extra/clangd/unittests/
DClangdTests.cpp697 unsigned long FileIndex = std::stoul(FileIndexStr.str()); in TEST() local
703 Stats[FileIndex].HitsWithErrors++; in TEST()
705 Stats[FileIndex].HitsWithoutErrors++; in TEST()
706 Stats[FileIndex].HadErrorsInLastDiags = HadError; in TEST()
728 for (unsigned FileIndex = 0; FileIndex < FilesCount; ++FileIndex) in TEST() local
748 auto UpdateStatsOnAddDocument = [&](unsigned FileIndex, bool HadErrors) { in TEST() argument
749 auto &Stats = ReqStats[FileIndex]; in TEST()
759 auto UpdateStatsOnRemoveDocument = [&](unsigned FileIndex) { in TEST() argument
760 auto &Stats = ReqStats[FileIndex]; in TEST()
765 auto AddDocument = [&](unsigned FileIndex, bool SkipCache) { in TEST() argument
[all …]
DFileIndexTests.cpp169 void update(FileIndex &M, llvm::StringRef Basename, llvm::StringRef Code) { in update()
181 FileIndex M; in TEST()
188 FileIndex M; in TEST()
199 FileIndex M; in TEST()
208 FileIndex M; in TEST()
220 FileIndex M; in TEST()
229 FileIndex M; in TEST()
261 FileIndex M; in TEST()
309 FileIndex Index; in TEST()
348 FileIndex Index; in TEST()
[all …]
DTestWorkspace.cpp15 auto Index = std::make_unique<FileIndex>(); in index()
DIndexTests.cpp355 FileIndex Dyn; in TEST()
356 FileIndex StaticIndex; in TEST()
DTestTU.cpp159 auto Idx = std::make_unique<FileIndex>(/*UseDex=*/true, in index()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFDebugLine.h130 bool hasFileAtIndex(uint64_t FileIndex) const;
133 getFileNameByIndex(uint64_t FileIndex, StringRef CompDir,
257 bool hasFileAtIndex(uint64_t FileIndex) const { in hasFileAtIndex()
258 return Prologue.hasFileAtIndex(FileIndex); in hasFileAtIndex()
266 bool getFileNameByIndex(uint64_t FileIndex, StringRef CompDir, in getFileNameByIndex()
269 return Prologue.getFileNameByIndex(FileIndex, CompDir, Kind, Result); in getFileNameByIndex()
301 getSourceByIndex(uint64_t FileIndex,
/external/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
DDWARFDebugLine.h122 bool hasFileAtIndex(uint64_t FileIndex) const;
127 getFileNameByIndex(uint64_t FileIndex, StringRef CompDir,
252 bool hasFileAtIndex(uint64_t FileIndex) const { in hasFileAtIndex()
253 return Prologue.hasFileAtIndex(FileIndex); in hasFileAtIndex()
265 bool getFileNameByIndex(uint64_t FileIndex, StringRef CompDir, in getFileNameByIndex()
268 return Prologue.getFileNameByIndex(FileIndex, CompDir, Kind, Result); in getFileNameByIndex()
300 getSourceByIndex(uint64_t FileIndex,
/external/clang/include/clang/Rewrite/Core/
DDeltaTree.h41 int getDeltaAt(unsigned FileIndex) const;
46 void AddDelta(unsigned FileIndex, int Delta);
/external/llvm-project/clang/include/clang/Rewrite/Core/
DDeltaTree.h40 int getDeltaAt(unsigned FileIndex) const;
45 void AddDelta(unsigned FileIndex, int Delta);
/external/llvm-project/clang-tools-extra/clangd/index/
DFileIndex.h108 class FileIndex : public MergedIndex {
110 FileIndex(bool UseDex = true, bool CollectMainFileRefs = false);
DFileIndex.cpp409 FileIndex::FileIndex(bool UseDex, bool CollectMainFileRefs) in FileIndex() function in clang::clangd::FileIndex
415 void FileIndex::updatePreamble(PathRef Path, llvm::StringRef Version, in updatePreamble()
453 void FileIndex::updateMain(PathRef Path, ParsedAST &AST) { in updateMain()
478 void FileIndex::profile(MemoryTree &MT) const { in profile()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/DWARF/
DDWARFDebugLine.cpp68 bool DWARFDebugLine::Prologue::hasFileAtIndex(uint64_t FileIndex) const { in hasFileAtIndex()
73 return FileIndex < FileNames.size(); in hasFileAtIndex()
74 return FileIndex != 0 && FileIndex <= FileNames.size(); in hasFileAtIndex()
1029 Optional<StringRef> DWARFDebugLine::LineTable::getSourceByIndex(uint64_t FileIndex, in getSourceByIndex() argument
1031 if (Kind == FileLineInfoKind::None || !Prologue.hasFileAtIndex(FileIndex)) in getSourceByIndex()
1033 const FileNameEntry &Entry = Prologue.getFileNameEntry(FileIndex); in getSourceByIndex()
1048 uint64_t FileIndex, StringRef CompDir, FileLineInfoKind Kind, in getFileNameByIndex() argument
1050 if (Kind == FileLineInfoKind::None || !hasFileAtIndex(FileIndex)) in getFileNameByIndex()
1052 const FileNameEntry &Entry = getFileNameEntry(FileIndex); in getFileNameByIndex()
DDWARFVerifier.cpp713 uint32_t FileIndex = 1; in verifyDebugLineRows() local
722 << "].prologue.file_names[" << FileIndex in verifyDebugLineRows()
730 FileIndex, CU->getCompilationDir(), in verifyDebugLineRows()
736 FullPathMap[FullPath] = FileIndex; in verifyDebugLineRows()
737 else if (It->second != FileIndex) { in verifyDebugLineRows()
741 << "].prologue.file_names[" << FileIndex in verifyDebugLineRows()
745 FileIndex++; in verifyDebugLineRows()
/external/llvm-project/llvm/lib/DebugInfo/DWARF/
DDWARFDebugLine.cpp73 bool DWARFDebugLine::Prologue::hasFileAtIndex(uint64_t FileIndex) const { in hasFileAtIndex()
78 return FileIndex < FileNames.size(); in hasFileAtIndex()
79 return FileIndex != 0 && FileIndex <= FileNames.size(); in hasFileAtIndex()
1329 Optional<StringRef> DWARFDebugLine::LineTable::getSourceByIndex(uint64_t FileIndex, in getSourceByIndex() argument
1331 if (Kind == FileLineInfoKind::None || !Prologue.hasFileAtIndex(FileIndex)) in getSourceByIndex()
1333 const FileNameEntry &Entry = Prologue.getFileNameEntry(FileIndex); in getSourceByIndex()
1348 uint64_t FileIndex, StringRef CompDir, FileLineInfoKind Kind, in getFileNameByIndex() argument
1350 if (Kind == FileLineInfoKind::None || !hasFileAtIndex(FileIndex)) in getFileNameByIndex()
1352 const FileNameEntry &Entry = getFileNameEntry(FileIndex); in getFileNameByIndex()
DDWARFVerifier.cpp770 uint32_t FileIndex = 1; in verifyDebugLineRows() local
779 << "].prologue.file_names[" << FileIndex in verifyDebugLineRows()
787 FileIndex, CU->getCompilationDir(), in verifyDebugLineRows()
793 FullPathMap[FullPath] = FileIndex; in verifyDebugLineRows()
794 else if (It->second != FileIndex) { in verifyDebugLineRows()
798 << "].prologue.file_names[" << FileIndex in verifyDebugLineRows()
802 FileIndex++; in verifyDebugLineRows()
/external/llvm/lib/DebugInfo/DWARF/
DDWARFDebugLine.cpp627 bool DWARFDebugLine::LineTable::getFileNameByIndex(uint64_t FileIndex, in getFileNameByIndex() argument
631 if (FileIndex == 0 || FileIndex > Prologue.FileNames.size() || in getFileNameByIndex()
634 const FileNameEntry &Entry = Prologue.FileNames[FileIndex - 1]; in getFileNameByIndex()
/external/llvm-project/clang/lib/Tooling/
DInterpolatingCompilationDatabase.cpp321 class FileIndex { class
323 FileIndex(std::vector<std::string> Files) in FileIndex() function in clang::tooling::__anond7485b900111::FileIndex
537 FileIndex Index;
/external/llvm/include/llvm/DebugInfo/DWARF/
DDWARFDebugLine.h193 bool getFileNameByIndex(uint64_t FileIndex, const char *CompDir,
/external/llvm-project/llvm/utils/gn/secondary/clang-tools-extra/clangd/
DBUILD.gn116 "index/FileIndex.cpp",
/external/llvm-project/clang-tools-extra/clangd/
DCMakeLists.txt96 index/FileIndex.cpp
DClangdServer.h377 std::unique_ptr<FileIndex> DynamicIdx;
DClangdServer.cpp67 UpdateIndexCallbacks(FileIndex *FIndex, in UpdateIndexCallbacks()
112 FileIndex *FIndex;
144 ? new FileIndex(Opts.HeavyweightDynamicSymbolIndex, in ClangdServer()
/external/llvm-project/clang-tools-extra/clangd/tool/
DCheck.cpp83 FileIndex Index;