[PATCH] D113118: [clang][AST] Check context of record in structural equivalence.
Balázs Kéri via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 3 08:51:28 PDT 2021
balazske created this revision.
Herald added subscribers: steakhal, martong, gamesh411, Szelethus, dkrupp.
balazske requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The AST structural equivalence check did not differentiate between
a struct and a struct with same name in different namespace. When
type of a member is checked it is possible to encounter such a case
and wrongly decide that the types are similar. This problem is fixed
by check for the namespaces of a record declaration.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113118
Files:
clang/lib/AST/ASTStructuralEquivalence.cpp
clang/unittests/AST/StructuralEquivalenceTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113118.384474.patch
Type: text/x-patch
Size: 7030 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211103/929e290b/attachment.bin>
More information about the cfe-commits
mailing list