================ @@ -174,6 +176,21 @@ void QualifiedAutoCheck::registerMatchers(MatchFinder *Finder) { void QualifiedAutoCheck::check(const MatchFinder::MatchResult &Result) { if (const auto *Var = Result.Nodes.getNodeAs<VarDecl>("auto")) { + if (RespectOpaqueTypes) { ---------------- vbvictor wrote:
I believe we could place this option logic inside ASTMatchers, that is the preferred way. You could write something like `RespectOpaqueTypes ? pointerType(), hasUnqualifiedDesugaredType(pointerType())`. https://github.com/llvm/llvm-project/pull/147060 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits