================
@@ -0,0 +1,29 @@
+.. title:: clang-tidy - readability-redundant-qualified-alias
+
+readability-redundant-qualified-alias
+=====================================
+
+Finds redundant identity type aliases that simply re-expose a qualified name
+and can be replaced with a using-declaration.
+
+.. code-block:: c++
+
+  using CommentToken = clang::tidy::utils::lexer::CommentToken;
+
+  // becomes
+
+  using clang::tidy::utils::lexer::CommentToken;
+
+The check is conservative and only warns when the alias name exactly matches
+the unqualified name of a non-dependent, non-specialized named type written
+with a qualifier. It skips alias templates, dependent forms, elaborated
+keywords (``class``, ``struct``, ``enum``, ``typename``), and cases involving
+macros or comments between the alias name and ``=``.
+
+Options
+-------
+
+.. option:: OnlyNamespaceScope
+
+   When false (default), consider aliases declared in any scope. When true,
----------------
EugeneZelenko wrote:

```suggestion
   When `false` (default), consider aliases declared in any scope. When `true`,
```

Default should in separate statement at the end of description.

https://github.com/llvm/llvm-project/pull/180404
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to