[clang] [Tooling/Inclusion] Update std symbols mapping (PR #113612)
kadir çetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 29 07:49:32 PDT 2024
================
@@ -115,15 +115,17 @@ static int initialize(Lang Language) {
NSLen = 0;
}
- if (SymIndex >= 0 &&
- Mapping->SymbolNames[SymIndex].qualifiedName() == QName) {
- // Not a new symbol, use the same index.
+ if (SymIndex > 0) {
assert(llvm::none_of(llvm::ArrayRef(Mapping->SymbolNames, SymIndex),
----------------
kadircet wrote:
this assertion is making sure we're inserting all the headers for a symbol consecutively. this is important for correctness as we want to know all the headers providing a symbol not a random set.
we should fix the mappings files instead to not split `any_cast` (and other symbols).
https://github.com/llvm/llvm-project/pull/113612
More information about the cfe-commits
mailing list