[clang-tools-extra] [clang-tidy] Improve documentation of bugprone-pointer-arithmetic-on-polymorphic-object (PR #108324)

Nicolas van Kempen via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 12 11:07:40 PDT 2024


================
@@ -19,20 +19,23 @@ Example:
 .. code-block:: c++
 
   struct Base {
-    virtual void ~Base();
+    virtual ~Base();
+    int i;
   };
-
----------------
nicovank wrote:

Sorry I wasn't clear, I meant to keep the spacing here between structs/functions, but when there is a blank line to not have any whitespace characters on it ('' vs '  '). A couple blanks lines in this first block between structs/functions and LGTM!

https://github.com/llvm/llvm-project/pull/108324


More information about the cfe-commits mailing list