[all-commits] [llvm/llvm-project] 7a1fdb: [clang][AST] Add 'IgnoreTemplateParmDepth' to stru...

Balázs Kéri via All-commits all-commits at lists.llvm.org
Wed Nov 13 00:25:43 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a1fdbb9c0f3becdbe539f0518d182f56a9f99f8
      https://github.com/llvm/llvm-project/commit/7a1fdbb9c0f3becdbe539f0518d182f56a9f99f8
  Author: Balázs Kéri <balazs.keri at ericsson.com>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

  Changed paths:
    M clang/include/clang/AST/ASTImporter.h
    M clang/include/clang/AST/ASTStructuralEquivalence.h
    M clang/lib/AST/ASTStructuralEquivalence.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/unittests/AST/StructuralEquivalenceTest.cpp

  Log Message:
  -----------
  [clang][AST] Add 'IgnoreTemplateParmDepth' to structural equivalence cache (#115518)

Structural equivalence check uses a cache to store already found
non-equivalent values. This cache can be reused for calls (ASTImporter
does this). Value of "IgnoreTemplateParmDepth" can have an effect on the
structural equivalence therefore it is wrong to reuse the same cache for
checks with different values of 'IgnoreTemplateParmDepth'. The current
change adds the 'IgnoreTemplateParmDepth' to the cache key to fix the
problem.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list