diff options
author | Jan Korous <jkorous@apple.com> | 2019-02-28 01:12:27 +0000 |
---|---|---|
committer | Jan Korous <jkorous@apple.com> | 2019-02-28 01:12:27 +0000 |
commit | bdc000ea50e30651f86bff31b440dfdc9ec1c24b (patch) | |
tree | db3b3f0ae5c9f771de23b9877ba2e274afc43fe7 /clang/lib/Index/FileIndexRecord.cpp | |
parent | 07944353fcac9bf78b210a294872c7a67a6d8ca1 (diff) | |
download | bcm5719-llvm-bdc000ea50e30651f86bff31b440dfdc9ec1c24b.tar.gz bcm5719-llvm-bdc000ea50e30651f86bff31b440dfdc9ec1c24b.zip |
[clang][index-while-building][NFC] Comment about implementation detail in FileIndexRecord
llvm-svn: 355061
Diffstat (limited to 'clang/lib/Index/FileIndexRecord.cpp')
-rw-r--r-- | clang/lib/Index/FileIndexRecord.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Index/FileIndexRecord.cpp b/clang/lib/Index/FileIndexRecord.cpp index f968700f503..dd5ad71771d 100644 --- a/clang/lib/Index/FileIndexRecord.cpp +++ b/clang/lib/Index/FileIndexRecord.cpp @@ -35,6 +35,7 @@ void FileIndexRecord::addDeclOccurence(SymbolRoleSet Roles, unsigned Offset, } DeclOccurrence NewInfo(Roles, Offset, D, Relations); + // We keep Decls in order as we need to access them in this order in all cases. auto It = std::upper_bound(Decls.begin(), Decls.end(), NewInfo); Decls.insert(It, std::move(NewInfo)); } |