[clang] [clang] adds explanation for why std::is_const is false (PR #235587)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 5 17:01:10 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:
I agree it reads weirdly, but the message starts with "because it" so I thought it should follow the convention.
https://github.com/llvm/llvm-project/pull/235587
More information about the cfe-commits
mailing list