[clang] [clang] Don't emit the warn_dangling_lifetime_pointer diagnostic for the assignment case. (PR #97408)
    Utkarsh Saxena via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Tue Jul  2 05:46:33 PDT 2024
    
    
  
================
@@ -0,0 +1,15 @@
+
+// RUN: %clang_cc1 -std=c++20 -verify -Wno-dangling-assignment %s
----------------
usx95 wrote:
I would suggest dropping `-Wno-dangling-assignment` and ensuring that we get "only" the dangling assignment and not GSL ones.
This would also not need a new file.
https://github.com/llvm/llvm-project/pull/97408
    
    
More information about the cfe-commits
mailing list