================ @@ -43,6 +43,9 @@ struct StructuralEquivalenceContext { /// key: (from, to, IgnoreTemplateParmDepth) using NonEquivalentDeclSet = llvm::DenseSet<std::tuple<Decl *, Decl *, int>>; + /// The language options to use for making a structural equivalence check. + const LangOptions &LangOpts; + ---------------- cor3ntin wrote:
We already have 2 ASTContext; why not use the LangOpt from there? Possibly with a small function to make it less verbose. https://github.com/llvm/llvm-project/pull/132939 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits