[all-commits] [llvm/llvm-project] 3ef796: [Clang] Diagnose unsatisfied `std::is_assignable`....

Ross Kirsling via All-commits all-commits at lists.llvm.org
Wed Jun 25 05:35:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ef796b981f1d388b272866873089ae01ee26ee6
      https://github.com/llvm/llvm-project/commit/3ef796b981f1d388b272866873089ae01ee26ee6
  Author: Ross Kirsling <ross.kirsling at sony.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M clang/lib/Sema/SemaTypeTraits.cpp
    M clang/test/SemaCXX/type-traits-unsatisfied-diags-std.cpp
    M clang/test/SemaCXX/type-traits-unsatisfied-diags.cpp

  Log Message:
  -----------
  [Clang] Diagnose unsatisfied `std::is_assignable`. (#144836)

Part of the work for #141911.

Checking `is_assignable<T, U>` boils down to checking the
well-formedness of `declval<T>() = declval<U>()`; this PR recycles logic
from EvaluateBinaryTypeTrait in order to produce the relevant
diagnostics.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list