2 Commits

Author SHA1 Message Date
Matheus Izvekov
1ac592c4e7
[clang] fix merging of UsingShadowDecl (#80245)
[clang] fix merging of UsingShadowDecl

Previously, when deciding if two UsingShadowDecls where mergeable,
we would incorrectly only look for both pointing to the exact redecla
ration, whereas the correct thing is to look for declarations to the
same entity.

This problem has existed as far back as 2013, introduced in commit
fd8634a09de71.

This problem could manifest itself as ODR check false positives when
importing modules.

Fixes: #80252
2024-05-30 03:43:27 -03:00
Matheus Izvekov
498da62088
[NFC] [clang] add tests for merging of UsingShadowDecl 2024-05-30 02:56:57 -03:00