[clang] 0591329 - [Analyzer][WebKit][NFC] Correct documentation to avoid sphinx build error

via cfe-commits cfe-commits at lists.llvm.org
Sat May 23 03:29:39 PDT 2020


Author: mydeveloperday
Date: 2020-05-23T11:28:06+01:00
New Revision: 0591329dd1f1b1691c65e700c2805590a090b7d8

URL: https://github.com/llvm/llvm-project/commit/0591329dd1f1b1691c65e700c2805590a090b7d8
DIFF: https://github.com/llvm/llvm-project/commit/0591329dd1f1b1691c65e700c2805590a090b7d8.diff

LOG: [Analyzer][WebKit][NFC] Correct documentation to avoid sphinx build error

This was introduced with commit 54e91a3c7010

Added: 
    

Modified: 
    clang/docs/analyzer/checkers.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/analyzer/checkers.rst b/clang/docs/analyzer/checkers.rst
index ea3f0e838b6a..dcf1f28994de 100644
--- a/clang/docs/analyzer/checkers.rst
+++ b/clang/docs/analyzer/checkers.rst
@@ -1395,6 +1395,7 @@ All uncounted types used as base classes must have a virtual destructor.
 Ref-counted types hold their ref-countable data by a raw pointer and allow implicit upcasting from ref-counted pointer to derived type to ref-counted pointer to base type. This might lead to an object of (dynamic) derived type being deleted via pointer to the base class type which C++ standard defines as UB in case the base class doesn't have virtual destructor ``[expr.delete]``.
 
 .. code-block:: cpp
+
  struct RefCntblBase {
    void ref() {}
    void deref() {}


        


More information about the cfe-commits mailing list