[PATCH] D66538: [AST] AST structural equivalence to work internally with pairs.

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 23 08:28:47 PDT 2019


balazske added a comment.

In D66538#1642883 <https://reviews.llvm.org/D66538#1642883>, @martong wrote:

> There is a third test which could be useful to test whether there is no faulty cache entries there:
>
>   +TEST_F(StructuralEquivalenceCacheTest, DISABLED_NonEq) {
>   ...
>   +}
>


This is somewhat the same check that is done in the current tests when the `NonEquivalentDecls` is checked to not contain any pairs of equivalent Decls. (Specially this line:

  EXPECT_FALSE(isInNonEqCache(
        findDeclPair<FunctionDecl>(TU, functionDecl(hasName("x")))));

)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66538/new/

https://reviews.llvm.org/D66538





More information about the cfe-commits mailing list