[clang] [clang][AST] Add 'IgnoreTemplateParmDepth' to structural equivalence cache (PR #115518)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 11 10:34:01 PST 2024
================
@@ -39,6 +39,10 @@ enum class StructuralEquivalenceKind {
};
struct StructuralEquivalenceContext {
+ /// Store declaration pairs already found to be non-equivalent.
+ /// key: (from, to, IgnoreTemplateParmDepth)
+ using NonEquivalentDeclSet = llvm::DenseSet<std::tuple<Decl *, Decl *, int>>;
----------------
NagyDonat wrote:
```suggestion
using NonEquivalentDeclSet =
std::array<llvm::DenseSet<std::pair<Decl *, Decl *>>, 2>;
```
As above.
https://github.com/llvm/llvm-project/pull/115518
More information about the cfe-commits
mailing list