[all-commits] [llvm/llvm-project] 367efa: [NFC] [Modules] Avoid scanning the stored decl lis...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Sun Apr 28 03:33:37 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 367efa0b0542e6f4171e8c914728946c302ab24b
https://github.com/llvm/llvm-project/commit/367efa0b0542e6f4171e8c914728946c302ab24b
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2024-04-28 (Sun, 28 Apr 2024)
Changed paths:
M clang/include/clang/AST/DeclContextInternals.h
Log Message:
-----------
[NFC] [Modules] Avoid scanning the stored decl list twice when replace
external decls
This patch fixes a FIXME in StoredDeclList::replaceExternalDecls.
StoredDeclList::replaceExternalDecls will iterate the list first to
remove some declarations and iterate the list again to get the tail of
the list.
It should be better to avoid the second iterations.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list