[all-commits] [llvm/llvm-project] 8e8658: [clang][AST] Check context of record in structural...
Balázs Kéri via All-commits
all-commits at lists.llvm.org
Thu Nov 25 23:39:23 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8e8658b19c057a48264514483f188bf7b6c2db7d
https://github.com/llvm/llvm-project/commit/8e8658b19c057a48264514483f188bf7b6c2db7d
Author: Balázs Kéri <1.int32 at gmail.com>
Date: 2021-11-26 (Fri, 26 Nov 2021)
Changed paths:
M clang/lib/AST/ASTStructuralEquivalence.cpp
M clang/unittests/AST/StructuralEquivalenceTest.cpp
Log Message:
-----------
[clang][AST] Check context of record in structural equivalence.
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.
Reviewed By: martong
Differential Revision: https://reviews.llvm.org/D113118
More information about the All-commits
mailing list