[PATCH] D141283: [clang] Improve diagnostic for "initializer-string for char array is too long"

Dmitri Gribenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 10 08:30:12 PST 2023


gribozavr2 added a comment.

In D141283#4038703 <https://reviews.llvm.org/D141283#4038703>, @tbaeder wrote:

> When grepping `clang/test/` for "for char array is too long", I get a bunch of other hits for this diagnostic, are the those tests not failing for you (e.g. `clang/test/Sema/array-init.c:149`)?

"expected-error" matches a substring, that's why they are not failing.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141283/new/

https://reviews.llvm.org/D141283



More information about the cfe-commits mailing list