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

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 14 13:47:03 PDT 2025


================
@@ -96,3 +96,23 @@ Note in the LLVM alias, the default value is `false`.
   matched against only the type name (i.e. ``Type``). E.g. to suppress reports
   for ``std::array`` iterators use `std::array<.*>::(const_)?iterator` string.
   The default is an empty string.
+
+.. option:: RespectOpaqueTypes
+
+  If set to `false` the check will use the canonical type to determine the type that ``auto`` is deduced to.
----------------
5chmidti wrote:

`canonical type` is a term that users will not likely understand. Please use something like `underlying type` 

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


More information about the cfe-commits mailing list