[clang] [clang] adds explanation for why std::is_const is false (PR #235587)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 24 19:55:35 PST 2026


================
@@ -1911,7 +1912,9 @@ def note_unsatisfied_trait_reason
            "%ArrayType{is an array type}|"
            "%UnionType{is a union type}|"
            "%NotStructOrClass{is not a struct or class type}|"
-           "%OverridesAllPureVirtual{overrides all pure virtual functions from base class %1}"
+           "%OverridesAllPureVirtual{overrides all pure virtual functions from base class %1}|"
+           "%FunctionTypeNotConstQualified{is a function type, which are never const-qualified}|"
----------------
NomaTyx wrote:

@Tsche I think that it maybe does make sense to add a new message. is_volatile and I believe is_rvalue_reference will need the exact same error message, and maybe others as well. I can do that if you'd like

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


More information about the cfe-commits mailing list