c++: make cxx_incomplete_type_diagnostic return bool
commitfdb8c06b3d6c1ec5fb517ce7d1a88ab1d8ec7958
authorJason Merrill <jason@redhat.com>
Thu, 13 Apr 2023 06:11:22 +0000 (13 02:11 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 13 Apr 2023 18:59:31 +0000 (13 14:59 -0400)
tree476a87141b52b7c045c45e1ce4c8da0a03a37353
parent9c2a5db997446a9438a3e01f5229dec3f78b09e7
c++: make cxx_incomplete_type_diagnostic return bool

Like other diagnostic functions that might be silenced by options, it should
return whether or not it actually emitted a diagnostic.

gcc/cp/ChangeLog:

* typeck2.cc (cxx_incomplete_type_diagnostic): Return bool.
* cp-tree.h (cxx_incomplete_type_diagnostic): Adjust.
gcc/cp/cp-tree.h
gcc/cp/typeck2.cc