[clang-tools-extra] [clang-tidy] offer option to check sugared types in avoid-c-arrays check (PR #131468)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 16 11:48:22 PDT 2025


================
@@ -72,3 +72,9 @@ can be either ``char* argv[]`` or ``char** argv``, but cannot be
   .. code:: c++
 
     const char name[] = "Some name";
+
+.. option:: CheckSugaredTypes
+
+  When set to `true` (default is `false`), type aliases, decltypes as well as
----------------
vbvictor wrote:

Also, previous option `AllowStringArrays` should also be transformed, imo

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


More information about the cfe-commits mailing list