[clang] [analyzer] Add documentation for std::variant checker (PR #76501)
    via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Dec 28 06:32:07 PST 2023
    
    
  
================
@@ -2097,6 +2097,18 @@ This checker is a part of ``core.StackAddressEscape``, but is temporarily disabl
 
 .. _alpha-core-TestAfterDivZero:
 
+alpha.core.StdVariant (C++)
+"""""""""""""""""""""""""""
+Check if the active value accessed in an ``std::variant`` instance.
----------------
DonatNagyE wrote:
This sentence has no subject (you need to add e.g. "is"). Also consider writing something slightly longer and more specific, using "warn if" instead of "check if" and clarifying what does "accessed" mean.
https://github.com/llvm/llvm-project/pull/76501
    
    
More information about the cfe-commits
mailing list