hanchenye-llvm-project/clang-tools-extra/clangd/index
Kadir Cetinkaya 91e5f4b46b Revert "Revert r366458, r366467 and r366468"
This reverts commit 9c377105da.

[clangd][BackgroundIndexLoader] Directly store DependentTU while loading shard

Summary:
We were deferring the population of DependentTU field in LoadedShard
until BackgroundIndexLoader was consumed. This actually triggers a use after
free since the shards FileToTU was pointing at could've been moved while
consuming the Loader.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D64980

llvm-svn: 366559
2019-07-19 10:18:52 +00:00
..
dex [clangd] Fix off-by-one in CodeComplete and assertion in Dex 2019-07-12 20:35:41 +00:00
Background.cpp Revert "Revert r366458, r366467 and r366468" 2019-07-19 10:18:52 +00:00
Background.h Revert "Revert r366458, r366467 and r366468" 2019-07-19 10:18:52 +00:00
BackgroundIndexLoader.cpp Revert "Revert r366458, r366467 and r366468" 2019-07-19 10:18:52 +00:00
BackgroundIndexLoader.h Revert "Revert r366458, r366467 and r366468" 2019-07-19 10:18:52 +00:00
BackgroundIndexStorage.cpp Revert "Revert r366458, r366467 and r366468" 2019-07-19 10:18:52 +00:00
BackgroundQueue.cpp [clangd] Prioritize indexing of files that share a basename with the open file. 2019-07-12 10:18:42 +00:00
BackgroundRebuild.cpp Revert "Revert r366458, r366467 and r366468" 2019-07-19 10:18:52 +00:00
BackgroundRebuild.h Revert "Revert r366458, r366467 and r366468" 2019-07-19 10:18:52 +00:00
CanonicalIncludes.cpp [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
CanonicalIncludes.h [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
FileIndex.cpp [clangd] Perform merge for main file symbols. 2019-06-17 14:49:18 +00:00
FileIndex.h [clangd] Index API and implementations for relations 2019-06-15 02:26:47 +00:00
Index.cpp [clangd] Index API and implementations for relations 2019-06-15 02:26:47 +00:00
Index.h [clangd] Index API and implementations for relations 2019-06-15 02:26:47 +00:00
IndexAction.cpp [clangd] Add HadErrors field into shards 2019-07-04 09:52:04 +00:00
IndexAction.h [clangd] Index API and implementations for relations 2019-06-15 02:26:47 +00:00
MemIndex.cpp [clangd] Index API and implementations for relations 2019-06-15 02:26:47 +00:00
MemIndex.h [clangd] Index API and implementations for relations 2019-06-15 02:26:47 +00:00
Merge.cpp [clangd] Index API and implementations for relations 2019-06-15 02:26:47 +00:00
Merge.h [clangd] Index API and implementations for relations 2019-06-15 02:26:47 +00:00
Ref.cpp [clangd] Deduplicate Refs on the fly. 2019-03-08 09:26:30 +00:00
Ref.h [clangd] Use capacity() instead of size() in RefSlab::bytes() 2019-04-02 08:24:37 +00:00
Relation.cpp [clangd] Add RelationSlab 2019-06-03 04:55:46 +00:00
Relation.h [clangd] Index API and implementations for relations 2019-06-15 02:26:47 +00:00
Serialization.cpp [clangd] Use xxhash instead of SHA1 for background index file digests. 2019-07-08 11:33:17 +00:00
Serialization.h [clangd] Store hash of command line in index shards. 2019-07-04 09:51:53 +00:00
Symbol.cpp Cleanup: llvm::bsearch -> llvm::partition_point after r364719 2019-06-30 11:19:56 +00:00
Symbol.h [clangd] Fix header-guard check for include insertion, and don't index header guards. 2019-05-03 13:17:29 +00:00
SymbolCollector.cpp [clangd] cleanup: unify the implemenation of checking a location is inside main file. 2019-07-19 08:33:39 +00:00
SymbolCollector.h [clangd] Collect the refs when the main file is header. 2019-07-02 09:16:21 +00:00
SymbolID.cpp [clangd] NFC: fix clang-tidy warnings. 2019-01-25 15:14:03 +00:00
SymbolID.h Moved DenseMap support for SymbolID into SymbolID.h 2019-02-28 11:00:44 +00:00
SymbolLocation.cpp Moved SymbolLocation into its own header and implementation file 2019-02-28 11:02:01 +00:00
SymbolLocation.h [clangd] Support utf-8 offsets (rather than utf-16) as a protocol extension 2019-03-27 17:47:49 +00:00
SymbolOrigin.cpp [clangd] Use identifiers in file as completion candidates when build is not ready. 2019-04-11 09:36:36 +00:00
SymbolOrigin.h [clangd] Use identifiers in file as completion candidates when build is not ready. 2019-04-11 09:36:36 +00:00
YAMLSerialization.cpp [clangd] Serialization support for RelationSlab 2019-06-03 05:07:52 +00:00