[clang] [Clang] Diagnose forming references to nullptr (PR #143667)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 11 14:50:42 PDT 2025
================
@@ -174,10 +174,11 @@ def note_constexpr_heap_alloc_limit_exceeded : Note<
def note_constexpr_this : Note<
"%select{|implicit }0use of 'this' pointer is only allowed within the "
"evaluation of a call to a 'constexpr' member function">;
-def access_kind : TextSubstitution<
- "%select{read of|read of|assignment to|increment of|decrement of|"
- "member call on|dynamic_cast of|typeid applied to|construction of|"
- "destruction of|read of}0">;
+def access_kind
+ : TextSubstitution<
+ "%select{read of|read of|assignment to|increment of|decrement of|"
+ "member call on|dynamic_cast of|typeid applied to|construction of|"
+ "destruction of|read of|read of}0">;
----------------
efriedma-quic wrote:
Not sure I like "read of". Maybe we should explicitly mention reference binding?
https://github.com/llvm/llvm-project/pull/143667
More information about the cfe-commits
mailing list