HomePhabricator

[clang][AST] Check context of record in structural equivalence.

Authored by balazske on Nov 25 2021, 6:55 AM.

Description

[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

Details

Committed
balazskeNov 25 2021, 11:54 PM
Reviewer
martong
Differential Revision
D113118: [clang][AST] Check context of record in structural equivalence.
Parents
rGc47108c04146: [mlir][Vector] Minor formatting fixes in Vector.md
Branches
Unknown
Tags
Unknown