Also remove the empty StoredDeclsList entry from the lookup table
authorVassil Vassilev <v.g.vassilev@gmail.com>
Fri, 27 May 2022 11:16:24 +0000 (11:16 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Fri, 27 May 2022 12:36:37 +0000 (12:36 +0000)
commit8c0eb32d2aa0bc73c176d7b25f47bdf37f967d3b
tree10dd6c30bf1951f9d6c5504728199e2dd7b8da2b
parent52d79b04b2628d21a328f331428f980a5ef3e2f0
Also remove the empty StoredDeclsList entry from the lookup table

In case where we have removed all declarations for a given declaration name
entry we should remove the whole StoredDeclsMap entry.

This patch improves consistency in the lookup tables and helps cling/clang-repl
error recovery.

Differential revision: https://reviews.llvm.org/D119675
clang/lib/AST/DeclBase.cpp
clang/unittests/AST/ASTImporterTest.cpp