[PATCH] D113118: [clang][AST] Check context of record in structural equivalence.
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 29 13:58:43 PST 2021
shafik added inline comments.
================
Comment at: clang/unittests/AST/StructuralEquivalenceTest.cpp:1037
+ "void foo(struct Param { int a; } *p);", Lang_C89);
+ EXPECT_TRUE(testStructuralMatch(Decls));
+}
----------------
I expect this to be `false` the outer `Param` is not the same type as the `Param` in the parameter.
================
Comment at: clang/unittests/AST/StructuralEquivalenceTest.cpp:1051
+ "Param");
+ EXPECT_TRUE(testStructuralMatch(Decls));
+}
----------------
I expect this to be `false` as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113118/new/
https://reviews.llvm.org/D113118
More information about the cfe-commits
mailing list