[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:02 PST 2024
================
@@ -62,7 +62,8 @@ class TypeSourceInfo;
class ASTImporter {
friend class ASTNodeImporter;
public:
- using NonEquivalentDeclSet = llvm::DenseSet<std::pair<Decl *, Decl *>>;
+ using NonEquivalentDeclSet =
+ llvm::DenseSet<std::tuple<Decl *, Decl *, int>>;
----------------
NagyDonat wrote:
```suggestion
using NonEquivalentDeclSet =
std::array<llvm::DenseSet<std::pair<Decl *, Decl *>>, 2>;
```
If you use two `DenseSet`s and put them into an array, you can use them without significant code changes.
https://github.com/llvm/llvm-project/pull/115518
More information about the cfe-commits
mailing list