================
@@ -0,0 +1,30 @@
+.. title:: clang-tidy - readability-redundant-qualified-alias
+
+readability-redundant-qualified-alias
+=====================================
+
+Finds redundant identity type aliases that 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;
----------------
localspook wrote:

I think a better example would be something like `std::string`. `CommentToken` 
is some obscure clang-tidy internal, but everyone recognizes `std::string`:
```suggestion
  using string = std::string;

  // becomes

  using std::string;
```

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