[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 15 08:29:55 PDT 2025
================
@@ -109,10 +109,32 @@ Note in the LLVM alias, the default value is `false`.
auto bar = foo();
-If RespectOpaqueTypes is set to `false`, it will be transformed into:
+If IgnoreAliasing is set to `true`, it will be transformed into:
.. code-block:: c++
auto *bar = foo();
Otherwise no changes will occur.
+
+Limitations
+-----------
+
+When IgnoreAliasing is set to `false`, there are cases where Clang has not preserved the sugar
+and the canonical type will be used so false positives may occur.
+For example:
+.. code-block:: c++
----------------
EugeneZelenko wrote:
```suggestion
For example:
.. code-block:: c++
```
https://github.com/llvm/llvm-project/pull/147060
More information about the cfe-commits
mailing list