[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

Juan Besa via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 8 08:39:18 PDT 2025


================
@@ -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) {
----------------
JuanBesa wrote:

Sorry, obviously was thinking of the other comment about auto type. I moved in the matcher now. 

https://github.com/llvm/llvm-project/pull/147060


More information about the cfe-commits mailing list