[clang-tools-extra] [clang-tidy] Add AllowStringArrays option to modernize-avoid-c-arrays (PR #71701)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 29 17:56:58 PST 2024


HerrCai0907 wrote:

> It should not work, as this is not array, but pointer

Agree. But it fulfills the description of this opinion, since it looks like to construct a array from string literals.
It would be better to explain it in document.

> incomplete array types constructed from string literals will be ignored.

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


More information about the cfe-commits mailing list