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

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 26 00:11:56 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:

That website does say "There is no such thing as a cv-qualified function type in the type system", which is why I wrote it the way it did. Please correct me if I'm misunderstanding, happy to change if that's the case.

What is the protocol when reviewers disagree on changes?

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


More information about the cfe-commits mailing list